Commit d8231222 authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Ioannis Papagiannopoulos

Shifts to be read in the new way

parent 44ede8cc
{ {
"graph": { "graph": {
"node": { "node": {
"M1": { "M1": {
"name": "Moulding", "name": "Moulding",
"top": 0.5,
"processingTime": {
"Fixed": {
"mean": 0.25
}
},
"interruptions": {
"shift": { "shift": {
"endUnfinished": 0, "endUnfinished": 0,
"receiveBeforeEndThreshold": 2, "receiveBeforeEndThreshold": 2,
"shiftPattern": [ "shiftPattern": [
[ [
0, 0,
5 5
], ],
[ [
10, 10,
15 15
] ]
] ]
}, }
"top": 0.5, },
"processingTime": { "_class": "Dream.Machine",
"Fixed": { "left": 0.5
"mean": 0.25 },
} "S1": {
}, "name": "Raw Material",
"interruptions": {}, "top": 0.8978494623655914,
"_class": "Dream.Machine", "entity": "Dream.Part",
"left": 0.5 "interArrivalTime": {
}, "Fixed": {
"S1": { "distributionType": "Fixed",
"name": "Raw Material", "mean": 0.5
"top": 0.8978494623655914, }
"entity": "Dream.Part", },
"interArrivalTime": { "interruptions": {},
"Fixed": { "_class": "Dream.Source",
"distributionType": "Fixed", "left": 0.5
"mean": 0.5 },
} "E1": {
}, "interruptions": {},
"interruptions": {}, "top": 0.10215053763440862,
"_class": "Dream.Source", "_class": "Dream.Exit",
"left": 0.5 "name": "Stock",
}, "left": 0.5
"E1": { }
"interruptions": {}, },
"top": 0.10215053763440862, "edge": {
"_class": "Dream.Exit", "0": {
"name": "Stock", "source": "S1",
"left": 0.5 "destination": "M1",
} "data": {},
}, "_class": "Dream.Edge"
"edge": { },
"1": { "1": {
"source": "M1", "source": "M1",
"destination": "E1", "destination": "E1",
"data": {}, "data": {},
"_class": "Dream.Edge" "_class": "Dream.Edge"
}, }
"0": { }
"source": "S1", },
"destination": "M1", "_class": "Dream.Simulation",
"data": {}, "general": {
"_class": "Dream.Edge" "trace": "No",
} "_class": "Dream.Configuration",
} "confidenceLevel": "0.95",
}, "maxSimTime": "20",
"_class": "Dream.Simulation", "numberOfReplications": "1"
"general": { }
"trace": "No",
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "20",
"numberOfReplications": "1"
}
} }
\ No newline at end of file
...@@ -313,7 +313,7 @@ def createObjectInterruptions(): ...@@ -313,7 +313,7 @@ def createObjectInterruptions():
G.PeriodicMaintenanceList.append(PM) G.PeriodicMaintenanceList.append(PM)
# if there is a shift pattern defined # if there is a shift pattern defined
# initiate them # initiate them
shift=element.get('shift', {}) shift=element.get('interruptions',{}).get('shift', {})
if len(shift): if len(shift):
victim=Globals.findObjectById(element['id']) victim=Globals.findObjectById(element['id'])
shiftPattern=list(shift.get('shiftPattern', [])) shiftPattern=list(shift.get('shiftPattern', []))
......
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