Commit 4a54008d authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Jérome Perrin

more corrections

parent 46f9359c
...@@ -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" }
} }
......
...@@ -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",
......
...@@ -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",
......
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment