Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
4a54008d
Commit
4a54008d
authored
Nov 05, 2014
by
Georgios Dagkakis
Committed by
Jérome Perrin
Feb 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more corrections
parent
46f9359c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
42 deletions
+42
-42
dream/simulation/JSONInputs/CapacityStationAssembly1.json
dream/simulation/JSONInputs/CapacityStationAssembly1.json
+19
-19
dream/simulation/JSONInputs/CapacityStationSpace2.json
dream/simulation/JSONInputs/CapacityStationSpace2.json
+11
-11
dream/simulation/JSONInputs/CapacityStationSpace3.json
dream/simulation/JSONInputs/CapacityStationSpace3.json
+11
-11
dream/simulation/applications/CapacityStations/CapacityStation.py
...mulation/applications/CapacityStations/CapacityStation.py
+1
-1
No files found.
dream/simulation/JSONInputs/CapacityStationAssembly1.json
View file @
4a54008d
...
@@ -52,17 +52,17 @@
...
@@ -52,17 +52,17 @@
},
},
"nodes"
:
{
"nodes"
:
{
"CB1"
:
{
"CB1"
:
{
"_class"
:
"
Dream
.CapacityStationBuffer"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationBuffer
.CapacityStationBuffer"
,
"name"
:
"SMFBuffer"
,
"name"
:
"SMFBuffer"
,
"wip"
:
[
"wip"
:
[
{
{
"_class"
:
"
Dream
.CapacityEntity"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityEntity
.CapacityEntity"
,
"capacityProjectId"
:
"P1"
,
"capacityProjectId"
:
"P1"
,
"name"
:
"P1_SMF_100"
,
"name"
:
"P1_SMF_100"
,
"requiredCapacity"
:
100
"requiredCapacity"
:
100
},
},
{
{
"_class"
:
"
Dream
.CapacityEntity"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityEntity
.CapacityEntity"
,
"capacityProjectId"
:
"P2"
,
"capacityProjectId"
:
"P2"
,
"name"
:
"P2_SMF_50"
,
"name"
:
"P2_SMF_50"
,
"requiredCapacity"
:
50
"requiredCapacity"
:
50
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
]
]
},
},
"CS1"
:
{
"CS1"
:
{
"_class"
:
"
Dream
.CapacityStation"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStation
.CapacityStation"
,
"name"
:
"SMF"
,
"name"
:
"SMF"
,
"intervalCapacity"
:
[
"intervalCapacity"
:
[
100
,
100
,
...
@@ -82,16 +82,16 @@
...
@@ -82,16 +82,16 @@
]
]
},
},
"CE1"
:
{
"CE1"
:
{
"_class"
:
"
Dream
.CapacityStationExit"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationExit
.CapacityStationExit"
,
"nextCapacityStationBufferId"
:
"CB2"
,
"nextCapacityStationBufferId"
:
"CB2"
,
"name"
:
"SMFExit"
"name"
:
"SMFExit"
},
},
"CB2"
:
{
"CB2"
:
{
"_class"
:
"
Dream
.CapacityStationBuffer"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationBuffer
.CapacityStationBuffer"
,
"name"
:
"WELDBuffer"
"name"
:
"WELDBuffer"
},
},
"CS2"
:
{
"CS2"
:
{
"_class"
:
"
Dream
.CapacityStation"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStation
.CapacityStation"
,
"name"
:
"WELD"
,
"name"
:
"WELD"
,
"intervalCapacity"
:
[
"intervalCapacity"
:
[
150
,
150
,
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
]
]
},
},
"CE2"
:
{
"CE2"
:
{
"_class"
:
"
Dream
.CapacityStationExit"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationExit
.CapacityStationExit"
,
"nextCapacityStationBufferId"
:
"CB4"
,
"nextCapacityStationBufferId"
:
"CB4"
,
"name"
:
"WELDExit"
"name"
:
"WELDExit"
},
},
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
"name"
:
"DUMMY"
,
"name"
:
"DUMMY"
,
"wip"
:
[
"wip"
:
[
{
{
"_class"
:
"
Dream
.CapacityProject"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityProject
.CapacityProject"
,
"id"
:
"P1"
,
"id"
:
"P1"
,
"name"
:
"P1"
,
"name"
:
"P1"
,
"capacityRequirementDict"
:
{
"capacityRequirementDict"
:
{
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
}
}
},
},
{
{
"_class"
:
"
Dream
.CapacityProject"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityProject
.CapacityProject"
,
"id"
:
"P2"
,
"id"
:
"P2"
,
"name"
:
"P2"
,
"name"
:
"P2"
,
"capacityRequirementDict"
:
{
"capacityRequirementDict"
:
{
...
@@ -138,17 +138,17 @@
...
@@ -138,17 +138,17 @@
]
]
},
},
"CB3"
:
{
"CB3"
:
{
"_class"
:
"
Dream
.CapacityStationBuffer"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationBuffer
.CapacityStationBuffer"
,
"name"
:
"CNCBuffer"
,
"name"
:
"CNCBuffer"
,
"wip"
:
[
"wip"
:
[
{
{
"_class"
:
"
Dream
.CapacityEntity"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityEntity
.CapacityEntity"
,
"capacityProjectId"
:
"P1"
,
"capacityProjectId"
:
"P1"
,
"name"
:
"P1_CNC_50"
,
"name"
:
"P1_CNC_50"
,
"requiredCapacity"
:
50
"requiredCapacity"
:
50
},
},
{
{
"_class"
:
"
Dream
.CapacityEntity"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityEntity
.CapacityEntity"
,
"capacityProjectId"
:
"P2"
,
"capacityProjectId"
:
"P2"
,
"name"
:
"P2_CNC_100"
,
"name"
:
"P2_CNC_100"
,
"requiredCapacity"
:
100
"requiredCapacity"
:
100
...
@@ -156,7 +156,7 @@
...
@@ -156,7 +156,7 @@
]
]
},
},
"CS3"
:
{
"CS3"
:
{
"_class"
:
"
Dream
.CapacityStation"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStation
.CapacityStation"
,
"name"
:
"CNC"
,
"name"
:
"CNC"
,
"intervalCapacity"
:
[
"intervalCapacity"
:
[
50
,
50
,
...
@@ -168,18 +168,18 @@
...
@@ -168,18 +168,18 @@
]
]
},
},
"CE3"
:
{
"CE3"
:
{
"_class"
:
"
Dream
.CapacityStationExit"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationExit
.CapacityStationExit"
,
"nextCapacityStationBufferId"
:
"CB4"
,
"nextCapacityStationBufferId"
:
"CB4"
,
"name"
:
"CNCExit"
"name"
:
"CNCExit"
},
},
"CB4"
:
{
"CB4"
:
{
"_class"
:
"
Dream
.CapacityStationBuffer"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationBuffer
.CapacityStationBuffer"
,
"name"
:
"AssemblyBuffer"
,
"name"
:
"AssemblyBuffer"
,
"requireFullProject"
:
1
,
"requireFullProject"
:
1
,
"wip"
:
[]
"wip"
:
[]
},
},
"CS4"
:
{
"CS4"
:
{
"_class"
:
"
Dream
.CapacityStation"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStation
.CapacityStation"
,
"name"
:
"Assembly"
,
"name"
:
"Assembly"
,
"intervalCapacity"
:
[
"intervalCapacity"
:
[
50
,
50
,
...
@@ -191,11 +191,11 @@
...
@@ -191,11 +191,11 @@
]
]
},
},
"CE4"
:
{
"CE4"
:
{
"_class"
:
"
Dream
.CapacityStationExit"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationExit
.CapacityStationExit"
,
"name"
:
"AssemblyExit"
"name"
:
"AssemblyExit"
},
},
"CSC"
:
{
"CSC"
:
{
"_class"
:
"
Dream
.CapacityStationController"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationController
.CapacityStationController"
,
"name"
:
"CSC"
,
"name"
:
"CSC"
,
"interval"
:
"1"
}
"interval"
:
"1"
}
}
}
...
...
dream/simulation/JSONInputs/CapacityStationSpace2.json
View file @
4a54008d
...
@@ -34,18 +34,18 @@
...
@@ -34,18 +34,18 @@
},
},
"nodes"
:
{
"nodes"
:
{
"CB1"
:
{
"CB1"
:
{
"_class"
:
"
Dream
.CapacityStationBuffer"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationBuffer
.CapacityStationBuffer"
,
"name"
:
"PPASBBuffer"
,
"name"
:
"PPASBBuffer"
,
"requireFullProject"
:
1
,
"requireFullProject"
:
1
,
"wip"
:
[
"wip"
:
[
{
{
"_class"
:
"
Dream
.CapacityEntity"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityEntity
.CapacityEntity"
,
"capacityProjectId"
:
"P1"
,
"capacityProjectId"
:
"P1"
,
"name"
:
"P1_ASBTST_50"
,
"name"
:
"P1_ASBTST_50"
,
"requiredCapacity"
:
50
"requiredCapacity"
:
50
},
},
{
{
"_class"
:
"
Dream
.CapacityEntity"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityEntity
.CapacityEntity"
,
"capacityProjectId"
:
"P2"
,
"capacityProjectId"
:
"P2"
,
"name"
:
"P2_ASBTST_50"
,
"name"
:
"P2_ASBTST_50"
,
"requiredCapacity"
:
50
"requiredCapacity"
:
50
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
]
]
},
},
"CS1"
:
{
"CS1"
:
{
"_class"
:
"
Dream
.CapacityStation"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStation
.CapacityStation"
,
"name"
:
"PPASB"
,
"name"
:
"PPASB"
,
"intervalCapacity"
:
[
"intervalCapacity"
:
[
100
,
100
,
...
@@ -71,17 +71,17 @@
...
@@ -71,17 +71,17 @@
}
}
},
},
"CE1"
:
{
"CE1"
:
{
"_class"
:
"
Dream
.CapacityStationExit"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationExit
.CapacityStationExit"
,
"name"
:
"PPASBExit"
,
"name"
:
"PPASBExit"
,
"nextCapacityStationBufferId"
:
"CB2"
"nextCapacityStationBufferId"
:
"CB2"
},
},
"CB2"
:
{
"CB2"
:
{
"_class"
:
"
Dream
.CapacityStationBuffer"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationBuffer
.CapacityStationBuffer"
,
"name"
:
"ASBTSTBuffer"
,
"name"
:
"ASBTSTBuffer"
,
"requireFullProject"
:
1
"requireFullProject"
:
1
},
},
"CS2"
:
{
"CS2"
:
{
"_class"
:
"
Dream
.CapacityStation"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStation
.CapacityStation"
,
"name"
:
"ASBTST"
,
"name"
:
"ASBTST"
,
"intervalCapacity"
:
[
"intervalCapacity"
:
[
100
,
100
,
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
}
}
},
},
"CE2"
:
{
"CE2"
:
{
"_class"
:
"
Dream
.CapacityStationExit"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationExit
.CapacityStationExit"
,
"name"
:
"ASBTSTExit"
"name"
:
"ASBTSTExit"
},
},
"QD"
:
{
"QD"
:
{
...
@@ -109,7 +109,7 @@
...
@@ -109,7 +109,7 @@
"name"
:
"DUMMY"
,
"name"
:
"DUMMY"
,
"wip"
:
[
"wip"
:
[
{
{
"_class"
:
"
Dream
.CapacityProject"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityProject
.CapacityProject"
,
"id"
:
"P1"
,
"id"
:
"P1"
,
"name"
:
"P1"
,
"name"
:
"P1"
,
"capacityRequirementDict"
:
{
"capacityRequirementDict"
:
{
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
"assemblySpaceRequirement"
:
50
"assemblySpaceRequirement"
:
50
},
},
{
{
"_class"
:
"
Dream
.CapacityProject"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityProject
.CapacityProject"
,
"id"
:
"P2"
,
"id"
:
"P2"
,
"name"
:
"P2"
,
"name"
:
"P2"
,
"capacityRequirementDict"
:
{
"capacityRequirementDict"
:
{
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
]
]
},
},
"CSC"
:
{
"CSC"
:
{
"_class"
:
"
Dream
.CapacityStationController"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationController
.CapacityStationController"
,
"name"
:
"CSC"
,
"name"
:
"CSC"
,
"start"
:
"0"
,
"start"
:
"0"
,
"interval"
:
"1"
,
"interval"
:
"1"
,
...
...
dream/simulation/JSONInputs/CapacityStationSpace3.json
View file @
4a54008d
...
@@ -34,12 +34,12 @@
...
@@ -34,12 +34,12 @@
},
},
"nodes"
:
{
"nodes"
:
{
"CB1"
:
{
"CB1"
:
{
"_class"
:
"
Dream
.CapacityStationBuffer"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationBuffer
.CapacityStationBuffer"
,
"name"
:
"PPASBBuffer"
,
"name"
:
"PPASBBuffer"
,
"requireFullProject"
:
1
,
"requireFullProject"
:
1
,
"wip"
:
[
"wip"
:
[
{
{
"_class"
:
"
Dream
.CapacityEntity"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityEntity
.CapacityEntity"
,
"capacityProjectId"
:
"P1"
,
"capacityProjectId"
:
"P1"
,
"name"
:
"P1_ASBTST_50"
,
"name"
:
"P1_ASBTST_50"
,
"requiredCapacity"
:
50
"requiredCapacity"
:
50
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
]
]
},
},
"CS1"
:
{
"CS1"
:
{
"_class"
:
"
Dream
.CapacityStation"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStation
.CapacityStation"
,
"name"
:
"PPASB"
,
"name"
:
"PPASB"
,
"intervalCapacity"
:
[
"intervalCapacity"
:
[
80
,
80
,
...
@@ -65,17 +65,17 @@
...
@@ -65,17 +65,17 @@
}
}
},
},
"CE1"
:
{
"CE1"
:
{
"_class"
:
"
Dream
.CapacityStationExit"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationExit
.CapacityStationExit"
,
"name"
:
"PPASBExit"
,
"name"
:
"PPASBExit"
,
"nextCapacityStationBufferId"
:
"CB2"
"nextCapacityStationBufferId"
:
"CB2"
},
},
"CB2"
:
{
"CB2"
:
{
"_class"
:
"
Dream
.CapacityStationBuffer"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationBuffer
.CapacityStationBuffer"
,
"name"
:
"ASBTSTBuffer"
,
"name"
:
"ASBTSTBuffer"
,
"requireFullProject"
:
1
,
"requireFullProject"
:
1
,
"wip"
:
[
"wip"
:
[
{
{
"_class"
:
"
Dream
.CapacityEntity"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityEntity
.CapacityEntity"
,
"capacityProjectId"
:
"P2"
,
"capacityProjectId"
:
"P2"
,
"name"
:
"P2_ASBTST_50"
,
"name"
:
"P2_ASBTST_50"
,
"requiredCapacity"
:
50
"requiredCapacity"
:
50
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
]
]
},
},
"CS2"
:
{
"CS2"
:
{
"_class"
:
"
Dream
.CapacityStation"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStation
.CapacityStation"
,
"name"
:
"ASBTST"
,
"name"
:
"ASBTST"
,
"sharedResources"
:
{
"sharedResources"
:
{
"stationIds"
:
[
"stationIds"
:
[
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
}
}
},
},
"CE2"
:
{
"CE2"
:
{
"_class"
:
"
Dream
.CapacityStationExit"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationExit
.CapacityStationExit"
,
"name"
:
"ASBTSTExit"
"name"
:
"ASBTSTExit"
},
},
"QD"
:
{
"QD"
:
{
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
"name"
:
"DUMMY"
,
"name"
:
"DUMMY"
,
"wip"
:
[
"wip"
:
[
{
{
"_class"
:
"
Dream
.CapacityProject"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityProject
.CapacityProject"
,
"id"
:
"P1"
,
"id"
:
"P1"
,
"name"
:
"P1"
,
"name"
:
"P1"
,
"capacityRequirementDict"
:
{
"capacityRequirementDict"
:
{
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
"assemblySpaceRequirement"
:
50
"assemblySpaceRequirement"
:
50
},
},
{
{
"_class"
:
"
Dream
.CapacityProject"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityProject
.CapacityProject"
,
"id"
:
"P2"
,
"id"
:
"P2"
,
"name"
:
"P2"
,
"name"
:
"P2"
,
"capacityRequirementDict"
:
{
"capacityRequirementDict"
:
{
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
]
]
},
},
"CSC"
:
{
"CSC"
:
{
"_class"
:
"
Dream
.CapacityStationController"
,
"_class"
:
"
dream.simulation.applications.CapacityStations.CapacityStationController
.CapacityStationController"
,
"name"
:
"CSC"
,
"name"
:
"CSC"
,
"start"
:
"0"
,
"start"
:
"0"
,
"interval"
:
"1"
,
"interval"
:
"1"
,
...
...
dream/simulation/applications/CapacityStations/CapacityStation.py
View file @
4a54008d
...
@@ -57,7 +57,7 @@ class CapacityStation(Queue):
...
@@ -57,7 +57,7 @@ class CapacityStation(Queue):
# then read it from some other of the sharing stations
# then read it from some other of the sharing stations
if
not
self
.
intervalCapacity
and
self
.
sharedResources
:
if
not
self
.
intervalCapacity
and
self
.
sharedResources
:
for
stationId
in
self
.
sharedResources
.
get
(
'stationIds'
,[]):
for
stationId
in
self
.
sharedResources
.
get
(
'stationIds'
,[]):
import
dream.simulation.Globals
import
dream.simulation.Globals
as
Globals
station
=
Globals
.
findObjectById
(
stationId
)
station
=
Globals
.
findObjectById
(
stationId
)
if
station
.
intervalCapacity
:
if
station
.
intervalCapacity
:
self
.
intervalCapacity
=
station
.
intervalCapacity
self
.
intervalCapacity
=
station
.
intervalCapacity
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment