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

scheduled maintenance updated

parent ba8c230d
{ {
"graph": { "graph": {
"node": { "node": {
"Q1": { "Q1": {
"capacity": -1, "capacity": -1,
"name": "Queue1", "name": "Queue1",
"isDummy": "0", "isDummy": "0",
"interruptions": {}, "interruptions": {},
"_class": "Dream.Queue", "_class": "Dream.Queue",
"id": "Q1" "id": "Q1"
}, },
"E1": { "E1": {
"interruptions": {}, "interruptions": {},
"top": 0.10215053763440862, "top": 0.10215053763440862,
"_class": "Dream.Exit", "_class": "Dream.Exit",
"name": "Stock", "name": "Stock",
"left": 0.5 "left": 0.5
}, },
"S1": { "S1": {
"name": "Raw Material", "name": "Raw Material",
"top": 0.8978494623655914, "top": 0.8978494623655914,
"entity": "Dream.Part", "entity": "Dream.Part",
"interArrivalTime": { "interArrivalTime": {
"Fixed": { "Fixed": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": 0.5 "mean": 0.5
} }
}, },
"interruptions": {}, "interruptions": {},
"_class": "Dream.Source", "_class": "Dream.Source",
"left": 0.5 "left": 0.5
}, },
"M1": { "M1": {
"name": "Moulding",
"top": 0.5,
"processingTime": {
"Fixed": {
"mean": 0.25
}
},
"interruptions": {
"scheduledMaintenance": { "scheduledMaintenance": {
"duration": "60", "duration": "60",
"start": "120" "start": "120"
}, }
"name": "Moulding", },
"top": 0.5, "_class": "Dream.Machine",
"processingTime": { "left": 0.5
"Fixed": { }
"mean": 0.25 },
} "edge": {
}, "0": {
"interruptions": {}, "source": "S1",
"_class": "Dream.Machine", "destination": "Q1",
"left": 0.5 "data": {},
} "_class": "Dream.Edge"
}, },
"edge": { "1": {
"1": { "source": "Q1",
"source": "Q1", "destination": "M1",
"destination": "M1", "data": {},
"data": {}, "_class": "Dream.Edge"
"_class": "Dream.Edge" },
}, "2": {
"0": { "source": "M1",
"source": "S1", "destination": "E1",
"destination": "Q1", "data": {},
"data": {}, "_class": "Dream.Edge"
"_class": "Dream.Edge" }
}, }
"2": { },
"source": "M1", "_class": "Dream.Simulation",
"destination": "E1", "general": {
"data": {}, "maxSimTime": "240",
"_class": "Dream.Edge" "_class": "Dream.Configuration",
} "confidenceLevel": "0.95",
} "trace": "No",
}, "numberOfReplications": "1"
"_class": "Dream.Simulation", }
"general": {
"maxSimTime": "240",
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"trace": "No",
"numberOfReplications": "1"
}
} }
\ No newline at end of file
...@@ -281,7 +281,7 @@ def createObjectInterruptions(): ...@@ -281,7 +281,7 @@ def createObjectInterruptions():
from dream.simulation.ShiftScheduler import ShiftScheduler from dream.simulation.ShiftScheduler import ShiftScheduler
for (element_id, element) in nodes.iteritems(): for (element_id, element) in nodes.iteritems():
element['id'] = element_id element['id'] = element_id
scheduledMaintenance=element.get('scheduledMaintenance', {}) scheduledMaintenance=element.get('interruptions',{}).get('scheduledMaintenance', {})
# if there is a scheduled maintenance initiate it and append it # if there is a scheduled maintenance initiate it and append it
# to the interruptions- and scheduled maintenances- list # to the interruptions- and scheduled maintenances- list
if len(scheduledMaintenance): if len(scheduledMaintenance):
......
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