Commit 76388990 authored by Sebastien Robin's avatar Sebastien Robin

another possible format

parent 5126cb74
{ {
"_class": "Dream.Simulation", "_class": "Dream.Simulation",
"elementList": [ "edges": {
{ "0": [
"_class": "Dream.Repairman", "M1",
"W1",
{}
],
"1": [
"M2",
"W1",
{}
],
"2": [
"DummyQ",
"S1",
{}
],
"3": [
"Q1",
"M1",
{}
],
"4": [
"E1",
"M2",
{}
],
"5": [
"M1",
"DummyQ",
{}
],
"6": [
"M2",
"Q1",
{}
]
},
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
},
"nodes": {
"DummyQ": {
"_class": "Dream.Queue",
"capacity": "1", "capacity": "1",
"id": "W1", "isDummy": "1",
"name": "W1", "name": "DummyQ"
"successorList": [
"M1",
"M2"
]
}, },
{ "E1": {
"_class": "Dream.Source", "_class": "Dream.Exit",
"entity": "Part", "name": "Stock"
"id": "S1",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
},
"name": "Raw Material",
"successorList": [
"DummyQ"
]
}, },
{ "M1": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "60", "MTTF": "60",
"MTTR": "5", "MTTR": "5",
"failureDistribution": "Fixed" "failureDistribution": "Fixed"
}, },
"id": "M1",
"name": "Machine1", "name": "Machine1",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "0.25" "mean": "0.25"
}, }
"successorList": [
"Q1"
]
}, },
{ "M2": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "40", "MTTF": "40",
"MTTR": "10", "MTTR": "10",
"failureDistribution": "Fixed" "failureDistribution": "Fixed"
}, },
"id": "M2",
"name": "Machine2", "name": "Machine2",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1.5" "mean": "1.5"
}, }
"successorList": [
"E1"
]
}, },
{ "Q1": {
"_class": "Dream.Queue", "_class": "Dream.Queue",
"capacity": "1", "capacity": "1",
"id": "DummyQ",
"isDummy": "1",
"name": "DummyQ",
"successorList": [
"M1"
]
},
{
"_class": "Dream.Queue",
"capacity": "1",
"id": "Q1",
"isDummy": "0", "isDummy": "0",
"name": "Q1", "name": "Q1",
"predecessorList": [ "predecessorList": [
"M1" "M1"
],
"successorList": [
"M2"
] ]
}, },
{ "S1": {
"_class": "Dream.Exit", "_class": "Dream.Source",
"id": "E1", "entity": "Part",
"name": "Stock" "interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
},
"name": "Raw Material"
},
"W1": {
"_class": "Dream.Repairman",
"capacity": "1",
"name": "W1"
}
},
"preferences": {
"DummyQ": {
"left": 0.6979166666666667,
"top": 0.7720588235294118
},
"E1": {
"left": 0.296875,
"top": 0.04656862745098034
},
"M1": {
"left": 0.4375,
"top": 0.5906862745098039
},
"M2": {
"left": 0.296875,
"top": 0.2279411764705882
},
"Q1": {
"left": 0.4375,
"top": 0.40931372549019607
},
"S1": {
"left": 0.6979166666666667,
"top": 0.9534313725490196
},
"W1": {
"left": 0.15104166666666663,
"top": 0.7720588235294118
} }
],
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
} }
} }
\ No newline at end of file
{ {
"_class": "Dream.Simulation", "_class": "Dream.Simulation",
"elementList": [ "edges": {
{ "0": [
"_class": "Dream.Source", "A1",
"entity": "Part", "S1",
"id": "S1", {}
"interarrivalTime": { ],
"distributionType": "Fixed", "1": [
"mean": "0.5" "A1",
}, "S2",
"name": "Parts", {}
"successorList": [ ],
"A1" "2": [
] "M1",
}, "A1",
{ {}
"_class": "Dream.Source", ],
"entity": "Frame", "3": [
"id": "S2", "E1",
"interarrivalTime": { "M1",
"distributionType": "Fixed", {}
"mean": "2" ]
}, },
"name": "Frames", "general": {
"successorList": [ "_class": "Dream.Configuration",
"A1" "confidenceLevel": "0.95",
] "maxSimTime": "1440",
}, "numberOfReplications": "1",
{ "trace": "No"
},
"nodes": {
"A1": {
"_class": "Dream.Assembly", "_class": "Dream.Assembly",
"id": "A1",
"name": "Assembly", "name": "Assembly",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "2" "mean": "2"
}, }
"successorList": [ },
"M1" "E1": {
] "_class": "Dream.Exit",
"name": "Stock"
}, },
{ "M1": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "60", "MTTF": "60",
...@@ -47,27 +50,51 @@ ...@@ -47,27 +50,51 @@
"failureDistribution": "Fixed", "failureDistribution": "Fixed",
"repairman": "None" "repairman": "None"
}, },
"id": "M1",
"name": "Moulding", "name": "Moulding",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "0.25" "mean": "0.25"
}
},
"S1": {
"_class": "Dream.Source",
"entity": "Part",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
}, },
"successorList": [ "name": "Parts"
"E1"
]
}, },
{ "S2": {
"_class": "Dream.Exit", "_class": "Dream.Source",
"id": "E1", "entity": "Frame",
"name": "Stock" "interarrivalTime": {
"distributionType": "Fixed",
"mean": "2"
},
"name": "Frames"
}
},
"preferences": {
"A1": {
"left": 0.5,
"top": 0.6423076923076922
},
"E1": {
"left": 0.5,
"top": 0.07307692307692304
},
"M1": {
"left": 0.5,
"top": 0.35769230769230764
},
"S1": {
"left": 0.7857142857142857,
"top": 0.926923076923077
},
"S2": {
"left": 0.2142857142857143,
"top": 0.926923076923077
} }
],
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
} }
} }
\ No newline at end of file
{ {
"_class": "Dream.Simulation", "_class": "Dream.Simulation",
"elementList": [ "edges": {
{ "0": [
"_class": "Dream.Repairman", "M1",
"W1",
{}
],
"1": [
"M2",
"W1",
{}
],
"2": [
"DummyQ",
"S1",
{}
],
"3": [
"M2",
"M1",
{}
],
"4": [
"E1",
"M2",
{}
],
"5": [
"M1",
"DummyQ",
{}
]
},
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
},
"nodes": {
"DummyQ": {
"_class": "Dream.Queue",
"capacity": "1", "capacity": "1",
"id": "W1", "isDummy": "1",
"name": "W1", "name": "DummyQ"
"successorList": [
"M1",
"M2"
]
}, },
{ "E1": {
"_class": "Dream.Source", "_class": "Dream.Exit"
"entity": "Part",
"id": "S1",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
},
"name": "Raw Material",
"successorList": [
"DummyQ"
]
}, },
{ "M1": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "60", "MTTF": "60",
"MTTR": "5", "MTTR": "5",
"failureDistribution": "Fixed" "failureDistribution": "Fixed"
}, },
"id": "M1",
"name": "Machine1", "name": "Machine1",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "0.25" "mean": "0.25"
}, }
"successorList": [
"M2"
]
}, },
{ "M2": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "40", "MTTF": "40",
"MTTR": "10", "MTTR": "10",
"failureDistribution": "Fixed" "failureDistribution": "Fixed"
}, },
"id": "M2",
"name": "Machine2", "name": "Machine2",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1.5" "mean": "1.5"
}
},
"S1": {
"_class": "Dream.Source",
"entity": "Part",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
}, },
"successorList": [ "name": "Raw Material"
"E1"
]
}, },
{ "W1": {
"_class": "Dream.Queue", "_class": "Dream.Repairman",
"capacity": "1", "capacity": "1",
"id": "DummyQ", "name": "W1"
"isDummy": "1", }
"name": "DummyQ", },
"successorList": [ "preferences": {
"M1" "DummyQ": {
] "left": 0.30208333333333337,
"top": 0.721556886227545
},
"E1": {
"left": 0.7083333333333333,
"top": 0.05688622754491013
}, },
{ "M1": {
"_class": "Dream.Exit", "left": 0.5625,
"id": "E1" "top": 0.5
},
"M2": {
"left": 0.7083333333333333,
"top": 0.2784431137724551
},
"S1": {
"left": 0.30208333333333337,
"top": 0.9431137724550899
},
"W1": {
"left": 0.8489583333333334,
"top": 0.721556886227545
} }
],
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
} }
} }
\ No newline at end of file
{ {
"_class": "Dream.Simulation", "_class": "Dream.Simulation",
"elementList": [ "edges": {
{ "0": [
"_class": "Dream.Repairman", "M1",
"W1",
{}
],
"1": [
"M2",
"W1",
{}
],
"2": [
"DummyQ",
"S1",
{}
],
"3": [
"E1",
"M1",
{}
],
"4": [
"Q1",
"M2",
{}
],
"5": [
"M2",
"DummyQ",
{}
],
"6": [
"M1",
"Q1",
{}
]
},
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
},
"nodes": {
"DummyQ": {
"_class": "Dream.Queue",
"capacity": "1", "capacity": "1",
"id": "W1", "isDummy": "1",
"name": "W1", "name": "DummyQ"
"successorList": [
"M1",
"M2"
]
}, },
{ "E1": {
"_class": "Dream.Source", "_class": "Dream.Exit",
"entity": "Part", "name": "Stock"
"id": "S1",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
},
"name": "Raw Material",
"successorList": [
"DummyQ"
]
}, },
{ "M1": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "60", "MTTF": "60",
"MTTR": "5", "MTTR": "5",
"failureDistribution": "Fixed" "failureDistribution": "Fixed"
}, },
"id": "M1",
"name": "Machine1", "name": "Machine1",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "0.25" "mean": "0.25"
}, }
"successorList": [
"E1"
]
}, },
{ "M2": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "40", "MTTF": "40",
"MTTR": "10", "MTTR": "10",
"failureDistribution": "Fixed" "failureDistribution": "Fixed"
}, },
"id": "M2",
"name": "Machine2", "name": "Machine2",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1.5" "mean": "1.5"
}, }
"successorList": [
"Q1"
]
}, },
{ "Q1": {
"_class": "Dream.Queue", "_class": "Dream.Queue",
"capacity": "1", "capacity": "1",
"id": "DummyQ", "isDummy": "0",
"isDummy": "1", "name": "Q1"
"name": "DummyQ",
"successorList": [
"M2"
]
}, },
{ "S1": {
"_class": "Dream.Queue", "_class": "Dream.Source",
"entity": "Part",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
},
"name": "Raw Material"
},
"W1": {
"_class": "Dream.Repairman",
"capacity": "1", "capacity": "1",
"id": "Q1", "name": "W1"
"isDummy": "0", }
"name": "Q1", },
"successorList": [ "preferences": {
"M1" "DummyQ": {
] "left": 0.6979166666666667,
"top": 0.7720588235294118
}, },
{ "E1": {
"_class": "Dream.Exit", "left": 0.296875,
"id": "E1", "top": 0.04656862745098034
"name": "Stock" },
"M1": {
"left": 0.296875,
"top": 0.2279411764705882
},
"M2": {
"left": 0.4375,
"top": 0.5906862745098039
},
"Q1": {
"left": 0.4375,
"top": 0.40931372549019607
},
"S1": {
"left": 0.6979166666666667,
"top": 0.9534313725490196
},
"W1": {
"left": 0.15104166666666663,
"top": 0.7720588235294118
} }
],
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
} }
} }
\ No newline at end of file
{ {
"_class": "Dream.Simulation", "_class": "Dream.Simulation",
"elementList": [ "edges": {
{ "0": [
"_class": "Dream.Source", "A1",
"entity": "Part", "S1",
"id": "S1", {}
"interarrivalTime": { ],
"distributionType": "Fixed", "1": [
"mean": "0.5" "A1",
}, "S2",
"name": "Parts", {}
"successorList": [ ],
"A1" "2": [
] "M1",
}, "A1",
{ {}
"_class": "Dream.Source", ],
"entity": "Frame", "3": [
"id": "S2", "Q1",
"interarrivalTime": { "M1",
"distributionType": "Fixed", {}
"mean": "2" ],
}, "4": [
"name": "Frames", "E1",
"successorList": [ "M2",
"A1" {}
] ],
}, "5": [
{ "M2",
"Q1",
{}
]
},
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
},
"nodes": {
"A1": {
"_class": "Dream.Assembly", "_class": "Dream.Assembly",
"id": "A1",
"name": "Assembly", "name": "Assembly",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "2" "mean": "2"
}, }
"successorList": [
"M1"
]
}, },
{ "E1": {
"_class": "Dream.Exit",
"name": "Stock"
},
"M1": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "60", "MTTF": "60",
...@@ -47,17 +60,13 @@ ...@@ -47,17 +60,13 @@
"failureDistribution": "Fixed", "failureDistribution": "Fixed",
"repairman": "None" "repairman": "None"
}, },
"id": "M1",
"name": "Moulding", "name": "Moulding",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "0.25" "mean": "0.25"
}, }
"successorList": [
"Q1"
]
}, },
{ "M2": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "40", "MTTF": "40",
...@@ -65,37 +74,65 @@ ...@@ -65,37 +74,65 @@
"failureDistribution": "Fixed", "failureDistribution": "Fixed",
"repairman": "None" "repairman": "None"
}, },
"id": "M2",
"name": "Machine2", "name": "Machine2",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1.5" "mean": "1.5"
}, }
"successorList": [
"E1"
]
}, },
{ "Q1": {
"_class": "Dream.Queue", "_class": "Dream.Queue",
"capacity": "1", "capacity": "1",
"id": "Q1",
"isDummy": "0", "isDummy": "0",
"name": "Q1", "name": "Q1"
"successorList": [
"M2"
]
}, },
{ "S1": {
"_class": "Dream.Exit", "_class": "Dream.Source",
"id": "E1", "entity": "Part",
"name": "Stock" "interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
},
"name": "Parts"
},
"S2": {
"_class": "Dream.Source",
"entity": "Frame",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "2"
},
"name": "Frames"
}
},
"preferences": {
"A1": {
"left": 0.5,
"top": 0.7720588235294118
},
"E1": {
"left": 0.5,
"top": 0.04656862745098034
},
"M1": {
"left": 0.5,
"top": 0.5906862745098039
},
"M2": {
"left": 0.5,
"top": 0.2279411764705882
},
"Q1": {
"left": 0.5,
"top": 0.40931372549019607
},
"S1": {
"left": 0.2142857142857143,
"top": 0.9534313725490196
},
"S2": {
"left": 0.7857142857142857,
"top": 0.9534313725490196
} }
],
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
} }
} }
\ No newline at end of file
{ {
"_class": "Dream.Simulation", "_class": "Dream.Simulation",
"elementList": [ "edges": {
{ "0": [
"_class": "Dream.Repairman", "M1",
"W1",
{}
],
"1": [
"M2",
"W1",
{}
],
"2": [
"DummyQ",
"S1",
{}
],
"3": [
"Q1",
"M1",
{}
],
"4": [
"M3",
"M2",
{}
],
"5": [
"E1",
"M3",
{}
],
"6": [
"M1",
"DummyQ",
{}
],
"7": [
"M2",
"Q1",
{}
]
},
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
},
"nodes": {
"DummyQ": {
"_class": "Dream.Queue",
"capacity": "1", "capacity": "1",
"id": "W1", "isDummy": "1",
"name": "W1", "name": "DummyQ"
"successorList": [
"M1",
"M2"
]
}, },
{ "E1": {
"_class": "Dream.Source", "_class": "Dream.Exit",
"entity": "Part", "name": "Stock"
"id": "S1",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
},
"name": "Raw Material",
"successorList": [
"DummyQ"
]
}, },
{ "M1": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "60", "MTTF": "60",
"MTTR": "5", "MTTR": "5",
"failureDistribution": "Fixed" "failureDistribution": "Fixed"
}, },
"id": "M1",
"name": "Machine1", "name": "Machine1",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "0.25" "mean": "0.25"
}, }
"successorList": [
"Q1"
]
}, },
{ "M2": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "40", "MTTF": "40",
"MTTR": "10", "MTTR": "10",
"failureDistribution": "Fixed" "failureDistribution": "Fixed"
}, },
"id": "M2",
"name": "Machine2", "name": "Machine2",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1.5" "mean": "1.5"
}, }
"successorList": [
"M3"
]
}, },
{ "M3": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M3",
"name": "Machine3", "name": "Machine3",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "3" "mean": "3"
}, }
"successorList": [
"E1"
]
}, },
{ "Q1": {
"_class": "Dream.Queue", "_class": "Dream.Queue",
"capacity": "1", "capacity": "1",
"id": "DummyQ", "isDummy": "0",
"isDummy": "1", "name": "Q1"
"name": "DummyQ",
"successorList": [
"M1"
]
}, },
{ "S1": {
"_class": "Dream.Queue", "_class": "Dream.Source",
"entity": "Part",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
},
"name": "Raw Material"
},
"W1": {
"_class": "Dream.Repairman",
"capacity": "1", "capacity": "1",
"id": "Q1", "name": "W1"
"isDummy": "0", }
"name": "Q1", },
"successorList": [ "preferences": {
"M2" "DummyQ": {
] "left": 0.6979166666666667,
"top": 0.8070539419087137
}, },
{ "E1": {
"_class": "Dream.Exit", "left": 0.296875,
"id": "E1", "top": 0.03941908713692943
"name": "Stock" },
"M1": {
"left": 0.4375,
"top": 0.6535269709543569
},
"M2": {
"left": 0.296875,
"top": 0.34647302904564314
},
"M3": {
"left": 0.296875,
"top": 0.1929460580912863
},
"Q1": {
"left": 0.4375,
"top": 0.5
},
"S1": {
"left": 0.6979166666666667,
"top": 0.9605809128630706
},
"W1": {
"left": 0.15104166666666663,
"top": 0.8070539419087137
} }
],
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
} }
} }
\ No newline at end of file
{ {
"_class": "Dream.Simulation", "_class": "Dream.Simulation",
"elementList": [ "edges": {
{ "0": [
"_class": "Dream.Source", "M1",
"entity": "Part", "S1",
"id": "S1", {}
"interarrivalTime": { ],
"distributionType": "Fixed", "1": [
"mean": "0.5" "M2",
}, "S2",
"name": "Raw Material 1", {}
"successorList": [ ],
"M1" "2": [
] "Q1",
}, "M1",
{ {}
"_class": "Dream.Source", ],
"entity": "Part", "3": [
"id": "S2", "Q1",
"interarrivalTime": { "M2",
"distributionType": "Fixed", {}
"mean": "1" ],
}, "4": [
"name": "Raw Material 2", "E1",
"successorList": [ "M3",
"M2" {}
] ],
"5": [
"M3",
"Q1",
{}
]
},
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
},
"nodes": {
"E1": {
"_class": "Dream.Exit",
"name": "Stock"
}, },
{ "M1": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "60", "MTTF": "60",
...@@ -35,17 +52,13 @@ ...@@ -35,17 +52,13 @@
"failureDistribution": "Fixed", "failureDistribution": "Fixed",
"repairman": "None" "repairman": "None"
}, },
"id": "M1",
"name": "Machine1", "name": "Machine1",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "0.25" "mean": "0.25"
}, }
"successorList": [
"Q1"
]
}, },
{ "M2": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "40", "MTTF": "40",
...@@ -53,52 +66,76 @@ ...@@ -53,52 +66,76 @@
"failureDistribution": "Fixed", "failureDistribution": "Fixed",
"repairman": "None" "repairman": "None"
}, },
"id": "M2",
"name": "Machine2", "name": "Machine2",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1.5" "mean": "1.5"
}, }
"successorList": [
"Q1"
]
}, },
{ "M3": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M3",
"name": "Machine3", "name": "Machine3",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1" "mean": "1"
}, }
"successorList": [
"E1"
]
}, },
{ "Q1": {
"_class": "Dream.Queue", "_class": "Dream.Queue",
"capacity": "1", "capacity": "1",
"id": "Q1",
"isDummy": "0", "isDummy": "0",
"name": "Q1", "name": "Q1"
"successorList": [
"M3"
]
}, },
{ "S1": {
"_class": "Dream.Exit", "_class": "Dream.Source",
"id": "E1", "entity": "Part",
"name": "Stock" "interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
},
"name": "Raw Material 1"
},
"S2": {
"_class": "Dream.Source",
"entity": "Part",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "1"
},
"name": "Raw Material 2"
}
},
"preferences": {
"E1": {
"left": 0.5,
"top": 0.05688622754491013
},
"M1": {
"left": 0.7857142857142857,
"top": 0.721556886227545
},
"M2": {
"left": 0.2142857142857143,
"top": 0.721556886227545
},
"M3": {
"left": 0.5,
"top": 0.2784431137724551
},
"Q1": {
"left": 0.5,
"top": 0.5
},
"S1": {
"left": 0.7857142857142857,
"top": 0.9431137724550899
},
"S2": {
"left": 0.2142857142857143,
"top": 0.9431137724550899
} }
],
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
} }
} }
\ No newline at end of file
{ {
"_class": "Dream.Simulation", "_class": "Dream.Simulation",
"elementList": [ "edges": {
{ "0": [
"_class": "Dream.Source", "M1",
"entity": "Part", "S1",
"id": "S1", {}
"interarrivalTime": { ],
"distributionType": "Fixed", "1": [
"mean": "0.5" "M2",
}, "S2",
"name": "Raw Material 1", {}
"successorList": [ ],
"M1" "2": [
] "M3",
}, "S3",
{ {}
"_class": "Dream.Source", ],
"entity": "Part", "3": [
"id": "S2", "Q1",
"interarrivalTime": { "M1",
"distributionType": "Fixed", {}
"mean": "1" ],
}, "4": [
"name": "Raw Material 2", "Q1",
"successorList": [ "M2",
"M2" {}
] ],
}, "5": [
{ "Q1",
"_class": "Dream.Source", "M3",
"entity": "Part", {}
"id": "S3", ],
"interarrivalTime": { "6": [
"distributionType": "Fixed", "E1",
"mean": "2" "M4",
}, {}
"name": "Raw Material 3", ],
"successorList": [ "7": [
"M3" "M4",
] "Q1",
{}
]
},
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
},
"nodes": {
"E1": {
"_class": "Dream.Exit",
"name": "Stock"
}, },
{ "M1": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M1",
"name": "Machine1", "name": "Machine1",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "0.25" "mean": "0.25"
}, }
"successorList": [
"Q1"
]
}, },
{ "M2": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M2",
"name": "Machine2", "name": "Machine2",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1.5" "mean": "1.5"
}, }
"successorList": [
"Q1"
]
}, },
{ "M3": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M3",
"name": "Machine3", "name": "Machine3",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1" "mean": "1"
}, }
"successorList": [
"Q1"
]
}, },
{ "M4": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M4",
"name": "Machine4", "name": "Machine4",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1.25" "mean": "1.25"
}, }
"successorList": [
"E1"
]
}, },
{ "Q1": {
"_class": "Dream.Queue", "_class": "Dream.Queue",
"capacity": "1", "capacity": "1",
"id": "Q1",
"isDummy": "0", "isDummy": "0",
"name": "Q1", "name": "Q1"
"successorList": [
"M4"
]
}, },
{ "S1": {
"_class": "Dream.Exit", "_class": "Dream.Source",
"id": "E1", "entity": "Part",
"name": "Stock" "interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
},
"name": "Raw Material 1"
},
"S2": {
"_class": "Dream.Source",
"entity": "Part",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "1"
},
"name": "Raw Material 2"
},
"S3": {
"_class": "Dream.Source",
"entity": "Part",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "2"
},
"name": "Raw Material 3"
}
},
"preferences": {
"E1": {
"left": 0.5,
"top": 0.05688622754491013
},
"M1": {
"left": 0.8636363636363636,
"top": 0.721556886227545
},
"M2": {
"left": 0.13636363636363635,
"top": 0.721556886227545
},
"M3": {
"left": 0.5,
"top": 0.721556886227545
},
"M4": {
"left": 0.5,
"top": 0.2784431137724551
},
"Q1": {
"left": 0.5,
"top": 0.5
},
"S1": {
"left": 0.8636363636363636,
"top": 0.9431137724550899
},
"S2": {
"left": 0.13636363636363635,
"top": 0.9431137724550899
},
"S3": {
"left": 0.5,
"top": 0.9431137724550899
} }
],
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
} }
} }
\ No newline at end of file
{ {
"_class": "Dream.Simulation", "_class": "Dream.Simulation",
"elementList": [ "edges": {
{ "0": [
"_class": "Dream.Source", "M1",
"entity": "Part", "S1",
"id": "S1", {}
"interarrivalTime": { ],
"distributionType": "Fixed", "1": [
"mean": "0.5" "E1",
}, "M1",
"name": "Raw Material", {}
"successorList": [ ]
"M1" },
] "general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
},
"nodes": {
"E1": {
"_class": "Dream.Exit",
"name": "Stock"
}, },
{ "M1": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M1",
"name": "Moulding", "name": "Moulding",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "0.25" "mean": "0.25"
}
},
"S1": {
"_class": "Dream.Source",
"entity": "Part",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
}, },
"successorList": [ "name": "Raw Material"
"E1" }
] },
"preferences": {
"E1": {
"left": 0.5,
"top": 0.10215053763440862
}, },
{ "M1": {
"_class": "Dream.Exit", "left": 0.5,
"id": "E1", "top": 0.5
"name": "Stock" },
"S1": {
"left": 0.5,
"top": 0.8978494623655914
} }
],
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
} }
} }
\ No newline at end of file
{ {
"_class": "Dream.Simulation", "_class": "Dream.Simulation",
"elementList": [ "edges": {
{ "0": [
"_class": "Dream.Source", "M1",
"entity": "Part", "S1",
"id": "S1", {}
"interarrivalTime": { ],
"distributionType": "Fixed", "1": [
"mean": "0.5" "M2",
}, "S2",
"name": "Raw Material 1", {}
"successorList": [ ],
"M1" "2": [
] "Q1",
}, "M1",
{ {}
"_class": "Dream.Source", ],
"entity": "Part", "3": [
"id": "S2", "Q1",
"interarrivalTime": { "M2",
"distributionType": "Fixed", {}
"mean": "1" ],
}, "4": [
"name": "Raw Material 2", "E1",
"successorList": [ "M3",
"M2" {}
] ],
"5": [
"E1",
"M4",
{}
],
"6": [
"M3",
"Q1",
{}
],
"7": [
"M4",
"Q1",
{}
]
},
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
},
"nodes": {
"E1": {
"_class": "Dream.Exit",
"name": "Stock"
}, },
{ "M1": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M1",
"name": "Machine1", "name": "Machine1",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "0.25" "mean": "0.25"
}, }
"successorList": [
"Q1"
]
}, },
{ "M2": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M2",
"name": "Machine2", "name": "Machine2",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1.5" "mean": "1.5"
}, }
"successorList": [
"Q1"
]
}, },
{ "M3": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M3",
"name": "Machine3", "name": "Machine3",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1" "mean": "1"
}, }
"successorList": [
"E1"
]
}, },
{ "M4": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M4",
"name": "Machine4", "name": "Machine4",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1.25" "mean": "1.25"
}, }
"successorList": [
"E1"
]
}, },
{ "Q1": {
"_class": "Dream.Queue", "_class": "Dream.Queue",
"capacity": "1", "capacity": "1",
"id": "Q1",
"isDummy": "0", "isDummy": "0",
"name": "Q1", "name": "Q1"
"successorList": [
"M3",
"M4"
]
}, },
{ "S1": {
"_class": "Dream.Exit", "_class": "Dream.Source",
"id": "E1", "entity": "Part",
"name": "Stock" "interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
},
"name": "Raw Material 1"
},
"S2": {
"_class": "Dream.Source",
"entity": "Part",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "1"
},
"name": "Raw Material 2"
}
},
"preferences": {
"E1": {
"left": 0.5,
"top": 0.05688622754491013
},
"M1": {
"left": 0.7857142857142857,
"top": 0.721556886227545
},
"M2": {
"left": 0.2142857142857143,
"top": 0.721556886227545
},
"M3": {
"left": 0.2142857142857143,
"top": 0.2784431137724551
},
"M4": {
"left": 0.7857142857142857,
"top": 0.2784431137724551
},
"Q1": {
"left": 0.5,
"top": 0.5
},
"S1": {
"left": 0.7857142857142857,
"top": 0.9431137724550899
},
"S2": {
"left": 0.2142857142857143,
"top": 0.9431137724550899
} }
],
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
} }
} }
\ No newline at end of file
{ {
"_class": "Dream.Simulation", "_class": "Dream.Simulation",
"elementList": [ "edges": {
{ "0": [
"_class": "Dream.Repairman", "M1",
"W1",
{}
],
"1": [
"M2",
"W1",
{}
],
"2": [
"DummyQ",
"S1",
{}
],
"3": [
"M3",
"M1",
{}
],
"4": [
"M3",
"M2",
{}
],
"5": [
"E1",
"M3",
{}
],
"6": [
"Q1",
"DummyQ",
{}
],
"7": [
"M1",
"Q1",
{}
],
"8": [
"M2",
"Q1",
{}
]
},
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
},
"nodes": {
"DummyQ": {
"_class": "Dream.Queue",
"capacity": "1", "capacity": "1",
"id": "W1", "isDummy": "1",
"name": "W1", "name": "DummyQ"
"successorList": [
"M1",
"M2"
]
}, },
{ "E1": {
"_class": "Dream.Source", "_class": "Dream.Exit",
"entity": "Part", "name": "Stock"
"id": "S1",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
},
"name": "Raw Material",
"successorList": [
"DummyQ"
]
}, },
{ "M1": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "60", "MTTF": "60",
"MTTR": "5", "MTTR": "5",
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M1",
"name": "Machine1", "name": "Machine1",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1.5" "mean": "1.5"
}, }
"successorList": [
"M3"
]
}, },
{ "M2": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "40", "MTTF": "40",
"MTTR": "10", "MTTR": "10",
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M2",
"name": "Machine2", "name": "Machine2",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1.5" "mean": "1.5"
}, }
"successorList": [
"M3"
]
}, },
{ "M3": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M3",
"name": "Machine3", "name": "Machine3",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "2" "mean": "2"
}, }
"successorList": [
"E1"
]
}, },
{ "Q1": {
"_class": "Dream.Queue", "_class": "Dream.Queue",
"capacity": "1", "capacity": "1",
"id": "DummyQ", "isDummy": "0",
"isDummy": "1", "name": "Q1"
"name": "DummyQ",
"successorList": [
"Q1"
]
}, },
{ "S1": {
"_class": "Dream.Queue", "_class": "Dream.Source",
"entity": "Part",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
},
"name": "Raw Material"
},
"W1": {
"_class": "Dream.Repairman",
"capacity": "1", "capacity": "1",
"id": "Q1", "name": "W1"
"isDummy": "0", }
"name": "Q1", },
"successorList": [ "preferences": {
"M1", "DummyQ": {
"M2" "left": 0.639751552795031,
] "top": 0.7720588235294118
}, },
{ "E1": {
"_class": "Dream.Exit", "left": 0.40993788819875776,
"id": "E1", "top": 0.04656862745098034
"name": "Stock" },
"M1": {
"left": 0.6335403726708074,
"top": 0.40931372549019607
},
"M2": {
"left": 0.1863354037267081,
"top": 0.40931372549019607
},
"M3": {
"left": 0.40993788819875776,
"top": 0.2279411764705882
},
"Q1": {
"left": 0.639751552795031,
"top": 0.5906862745098039
},
"S1": {
"left": 0.639751552795031,
"top": 0.9534313725490196
},
"W1": {
"left": 0.18012422360248448,
"top": 0.5906862745098039
} }
],
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
} }
} }
\ No newline at end of file
{ {
"_class": "Dream.Simulation", "_class": "Dream.Simulation",
"elementList": [ "edges": {
{ "0": [
"_class": "Dream.Repairman", "M1",
"W1",
{}
],
"1": [
"M2",
"W1",
{}
],
"2": [
"DummyQ",
"S1",
{}
],
"3": [
"M3",
"M1",
{}
],
"4": [
"M4",
"M1",
{}
],
"5": [
"M3",
"M2",
{}
],
"6": [
"M4",
"M2",
{}
],
"7": [
"E1",
"M3",
{}
],
"8": [
"E1",
"M4",
{}
],
"9": [
"Q1",
"DummyQ",
{}
],
"10": [
"M1",
"Q1",
{}
],
"11": [
"M2",
"Q1",
{}
]
},
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
},
"nodes": {
"DummyQ": {
"_class": "Dream.Queue",
"capacity": "1", "capacity": "1",
"id": "W1", "isDummy": "1",
"name": "W1", "name": "DummyQ"
"successorList": [ },
"M1", "E1": {
"M2" "_class": "Dream.Exit",
] "name": "Stock"
},
{
"_class": "Dream.Source",
"entity": "Part",
"id": "S1",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
},
"name": "Raw Material",
"successorList": [
"DummyQ"
]
}, },
{ "M1": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "60", "MTTF": "60",
"MTTR": "5", "MTTR": "5",
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M1",
"name": "Machine1", "name": "Machine1",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1.5" "mean": "1.5"
}, }
"successorList": [
"M3",
"M4"
]
}, },
{ "M2": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "40", "MTTF": "40",
"MTTR": "10", "MTTR": "10",
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M2",
"name": "Machine2", "name": "Machine2",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1.5" "mean": "1.5"
}, }
"successorList": [
"M3",
"M4"
]
}, },
{ "M3": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M3",
"name": "Machine3", "name": "Machine3",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "2" "mean": "2"
}, }
"successorList": [
"E1"
]
}, },
{ "M4": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M4",
"name": "Machine4", "name": "Machine4",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "2" "mean": "2"
}, }
"successorList": [
"E1"
]
}, },
{ "Q1": {
"_class": "Dream.Queue", "_class": "Dream.Queue",
"capacity": "1", "capacity": "1",
"id": "DummyQ", "isDummy": "0",
"isDummy": "1", "name": "Q1"
"name": "DummyQ",
"successorList": [
"Q1"
]
}, },
{ "S1": {
"_class": "Dream.Queue", "_class": "Dream.Source",
"entity": "Part",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
},
"name": "Raw Material"
},
"W1": {
"_class": "Dream.Repairman",
"capacity": "1", "capacity": "1",
"id": "Q1", "name": "W1"
"isDummy": "0", }
"name": "Q1", },
"successorList": [ "preferences": {
"M1", "DummyQ": {
"M2" "left": 0.639751552795031,
] "top": 0.7720588235294118
}, },
{ "E1": {
"_class": "Dream.Exit", "left": 0.40993788819875776,
"id": "E1", "top": 0.04656862745098034
"name": "Stock" },
"M1": {
"left": 0.6335403726708074,
"top": 0.40931372549019607
},
"M2": {
"left": 0.1863354037267081,
"top": 0.40931372549019607
},
"M3": {
"left": 0.1863354037267081,
"top": 0.2279411764705882
},
"M4": {
"left": 0.6335403726708074,
"top": 0.2279411764705882
},
"Q1": {
"left": 0.639751552795031,
"top": 0.5906862745098039
},
"S1": {
"left": 0.639751552795031,
"top": 0.9534313725490196
},
"W1": {
"left": 0.18012422360248448,
"top": 0.5906862745098039
} }
],
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
} }
} }
\ No newline at end of file
{ {
"_class": "Dream.Simulation", "_class": "Dream.Simulation",
"elementList": [ "edges": {
{ "0": [
"_class": "Dream.Source", "S1",
"entity": "Part", "A1",
"id": "S1", {
"interarrivalTime": { "entity": "Part"
"distributionType": "Fixed", }
"mean": "0.5" ],
}, "1": [
"name": "Parts", "S2",
"successorList": [ "A1",
"A1" {
] "entity": "Frame"
}, }
{ ],
"_class": "Dream.Source", "2": [
"entity": "Frame", "A1",
"id": "S2", "M1",
"interarrivalTime": { {}
"distributionType": "Fixed", ],
"mean": "2" "3": [
}, "M1",
"name": "Frames", "D1",
"successorList": [ {}
"A1" ],
] "4": [
}, "D1",
{ "E1",
{
"entity": "Frame"
}
],
"5": [
"D1",
"E2",
{
"entity": "Part"
}
]
},
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
},
"nodes": {
"A1": {
"_class": "Dream.Assembly", "_class": "Dream.Assembly",
"id": "A1",
"name": "Assembly", "name": "Assembly",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "2" "mean": "2"
}, }
"successorList": [ },
"M1" "D1": {
] "_class": "Dream.Dismantle",
"name": "Dismantle",
"processingTime": {
"distributionType": "Fixed",
"mean": "1"
}
},
"E1": {
"_class": "Dream.Exit",
"name": "Parts Stock"
},
"E2": {
"_class": "Dream.Exit",
"name": "Frames Stock"
}, },
{ "M1": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "60", "MTTF": "60",
...@@ -47,51 +80,59 @@ ...@@ -47,51 +80,59 @@
"failureDistribution": "Fixed", "failureDistribution": "Fixed",
"repairman": "None" "repairman": "None"
}, },
"id": "M1",
"name": "Moulding", "name": "Moulding",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "0.25" "mean": "0.25"
}
},
"S1": {
"_class": "Dream.Source",
"entity": "Part",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
}, },
"successorList": [ "name": "Parts"
"D1"
]
}, },
{ "S2": {
"_class": "Dream.Dismantle", "_class": "Dream.Source",
"id": "D1", "entity": "Frame",
"name": "Dismantle", "interarrivalTime": {
"processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1" "mean": "2"
}, },
"successorFrameList": [ "name": "Frames"
"E1" }
], },
"successorList": [ "preferences": {
"E1", "A1": {
"E2" "left": 0.5,
], "top": 0.2784431137724551
"successorPartList": [
"E2"
]
}, },
{ "D1": {
"_class": "Dream.Exit", "left": 0.5,
"id": "E1", "top": 0.721556886227545
"name": "Parts Stock"
}, },
{ "E1": {
"_class": "Dream.Exit", "left": 0.7857142857142857,
"id": "E2", "top": 0.9431137724550899
"name": "Frames Stock" },
"E2": {
"left": 0.2142857142857143,
"top": 0.9431137724550899
},
"M1": {
"left": 0.5,
"top": 0.5
},
"S1": {
"left": 0.2142857142857143,
"top": 0.05688622754491013
},
"S2": {
"left": 0.7857142857142857,
"top": 0.05688622754491013
} }
],
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
} }
} }
\ No newline at end of file
{ {
"_class": "Dream.Simulation", "_class": "Dream.Simulation",
"elementList": [ "edges": {
{ "0": [
"_class": "Dream.Source", "A1",
"entity": "Part", "S1",
"id": "S1", {}
"interarrivalTime": { ],
"distributionType": "Fixed", "1": [
"mean": "0.5" "A1",
}, "S2",
"name": "Parts", {}
"successorList": [ ],
"A1" "2": [
] "M1",
}, "A1",
{ {}
"_class": "Dream.Source", ],
"entity": "Frame", "3": [
"id": "S2", "D1",
"interarrivalTime": { "M1",
"distributionType": "Fixed", {}
"mean": "2" ],
}, "4": [
"name": "Frames", "M2",
"successorList": [ "D1",
"A1" {}
] ],
}, "5": [
{ "M3",
"D1",
{}
],
"6": [
"E1",
"M2",
{}
],
"7": [
"E2",
"M3",
{}
]
},
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
},
"nodes": {
"A1": {
"_class": "Dream.Assembly", "_class": "Dream.Assembly",
"id": "A1",
"name": "Assembly", "name": "Assembly",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "2" "mean": "2"
}
},
"D1": {
"_class": "Dream.Dismantle",
"name": "Dismantle",
"processingTime": {
"distributionType": "Fixed",
"mean": "1"
}, },
"successorList": [ "successorFrameList": [
"M1" "M2"
],
"successorPartList": [
"M3"
] ]
}, },
{ "E1": {
"_class": "Dream.Exit",
"name": "Parts Stock"
},
"E2": {
"_class": "Dream.Exit",
"name": "Frames Stock"
},
"M1": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "60", "MTTF": "60",
...@@ -47,36 +88,13 @@ ...@@ -47,36 +88,13 @@
"failureDistribution": "Fixed", "failureDistribution": "Fixed",
"repairman": "None" "repairman": "None"
}, },
"id": "M1",
"name": "Moulding", "name": "Moulding",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "0.25" "mean": "0.25"
}, }
"successorList": [
"D1"
]
}, },
{ "M2": {
"_class": "Dream.Dismantle",
"id": "D1",
"name": "Dismantle",
"processingTime": {
"distributionType": "Fixed",
"mean": "1"
},
"successorFrameList": [
"M2"
],
"successorList": [
"M2",
"M3"
],
"successorPartList": [
"M3"
]
},
{
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "60", "MTTF": "60",
...@@ -84,17 +102,13 @@ ...@@ -84,17 +102,13 @@
"failureDistribution": "No", "failureDistribution": "No",
"repairman": "None" "repairman": "None"
}, },
"id": "M2",
"name": "Frame Wash", "name": "Frame Wash",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1" "mean": "1"
}, }
"successorList": [
"E1"
]
}, },
{ "M3": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "60", "MTTF": "60",
...@@ -102,32 +116,67 @@ ...@@ -102,32 +116,67 @@
"failureDistribution": "No", "failureDistribution": "No",
"repairman": "None" "repairman": "None"
}, },
"id": "M3",
"name": "Part Wash", "name": "Part Wash",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "0.20" "mean": "0.20"
}
},
"S1": {
"_class": "Dream.Source",
"entity": "Part",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
}, },
"successorList": [ "name": "Parts"
"E2"
]
}, },
{ "S2": {
"_class": "Dream.Exit", "_class": "Dream.Source",
"id": "E1", "entity": "Frame",
"name": "Parts Stock" "interarrivalTime": {
"distributionType": "Fixed",
"mean": "2"
},
"name": "Frames"
}
},
"preferences": {
"A1": {
"left": 0.5,
"top": 0.7720588235294118
}, },
{ "D1": {
"_class": "Dream.Exit", "left": 0.5,
"id": "E2", "top": 0.40931372549019607
"name": "Frames Stock" },
"E1": {
"left": 0.2142857142857143,
"top": 0.04656862745098034
},
"E2": {
"left": 0.7857142857142857,
"top": 0.04656862745098034
},
"M1": {
"left": 0.5,
"top": 0.5906862745098039
},
"M2": {
"left": 0.2142857142857143,
"top": 0.2279411764705882
},
"M3": {
"left": 0.7857142857142857,
"top": 0.2279411764705882
},
"S1": {
"left": 0.2142857142857143,
"top": 0.9534313725490196
},
"S2": {
"left": 0.7857142857142857,
"top": 0.9534313725490196
} }
],
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
} }
} }
\ No newline at end of file
{ {
"_class": "Dream.Simulation", "_class": "Dream.Simulation",
"elementList": [ "edges": {
{ "0": [
"_class": "Dream.Repairman", "M1",
"W1",
{}
],
"1": [
"M2",
"W1",
{}
],
"2": [
"DummyQ",
"S1",
{}
],
"3": [
"C1",
"M1",
{}
],
"4": [
"E1",
"M2",
{}
],
"5": [
"M1",
"DummyQ",
{}
],
"6": [
"M2",
"C1",
{}
]
},
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
},
"nodes": {
"C1": {
"_class": "Dream.Conveyer",
"length": "8",
"name": "C1",
"speed": "1"
},
"DummyQ": {
"_class": "Dream.Queue",
"capacity": "1", "capacity": "1",
"id": "W1", "isDummy": "1",
"name": "W1", "name": "DummyQ"
"successorList": [
"M1",
"M2"
]
}, },
{ "E1": {
"_class": "Dream.Source", "_class": "Dream.Exit",
"entity": "Part", "name": "Stock"
"id": "S1",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
},
"name": "Raw Material",
"successorList": [
"DummyQ"
]
}, },
{ "M1": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "60", "MTTF": "60",
"MTTR": "5", "MTTR": "5",
"failureDistribution": "Fixed" "failureDistribution": "Fixed"
}, },
"id": "M1",
"name": "Machine1", "name": "Machine1",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "0.25" "mean": "0.25"
}, }
"successorList": [
"C1"
]
}, },
{ "M2": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "40", "MTTF": "40",
"MTTR": "10", "MTTR": "10",
"failureDistribution": "Fixed" "failureDistribution": "Fixed"
}, },
"id": "M2",
"name": "Machine2", "name": "Machine2",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1.5" "mean": "1.5"
}
},
"S1": {
"_class": "Dream.Source",
"entity": "Part",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
}, },
"successorList": [ "name": "Raw Material"
"E1"
]
}, },
{ "W1": {
"_class": "Dream.Queue", "_class": "Dream.Repairman",
"capacity": "1", "capacity": "1",
"id": "DummyQ", "name": "W1"
"isDummy": "1", }
"name": "DummyQ", },
"successorList": [ "preferences": {
"M1" "C1": {
] "left": 0.5625,
"top": 0.40931372549019607
}, },
{ "DummyQ": {
"_class": "Dream.Conveyer", "left": 0.30208333333333337,
"id": "C1", "top": 0.7720588235294118
"length": "8",
"name": "C1",
"speed": "1",
"successorList": [
"M2"
]
}, },
{ "E1": {
"_class": "Dream.Exit", "left": 0.7083333333333333,
"id": "E1", "top": 0.04656862745098034
"name": "Stock" },
"M1": {
"left": 0.5625,
"top": 0.5906862745098039
},
"M2": {
"left": 0.7083333333333333,
"top": 0.2279411764705882
},
"S1": {
"left": 0.30208333333333337,
"top": 0.9534313725490196
},
"W1": {
"left": 0.8489583333333334,
"top": 0.7720588235294118
} }
],
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
} }
} }
\ No newline at end of file
{ {
"_class": "Dream.Simulation", "_class": "Dream.Simulation",
"elementList": [ "edges": {
{ "0": [
"_class": "Dream.Repairman", "M1",
"W1",
{}
],
"1": [
"M2",
"W1",
{}
],
"2": [
"DummyQ",
"S1",
{}
],
"3": [
"C1",
"M1",
{}
],
"4": [
"M3",
"M2",
{}
],
"5": [
"M1",
"DummyQ",
{}
],
"6": [
"M2",
"C1",
{}
],
"7": [
"E1",
"M3",
{}
]
},
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
},
"nodes": {
"C1": {
"_class": "Dream.Conveyer",
"length": "8",
"name": "C1",
"speed": "1"
},
"DummyQ": {
"_class": "Dream.Queue",
"capacity": "1", "capacity": "1",
"id": "W1", "isDummy": "1",
"name": "W1", "name": "DummyQ"
"successorList": [
"M1",
"M2"
]
}, },
{ "E1": {
"_class": "Dream.Source", "_class": "Dream.Exit",
"entity": "Part", "name": "Stock"
"id": "S1",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
},
"name": "Raw Material",
"successorList": [
"DummyQ"
]
}, },
{ "M1": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "60", "MTTF": "60",
"MTTR": "5", "MTTR": "5",
"failureDistribution": "Fixed" "failureDistribution": "Fixed"
}, },
"id": "M1",
"name": "Machine1", "name": "Machine1",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "0.25" "mean": "0.25"
}, }
"successorList": [
"C1"
]
}, },
{ "M2": {
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"MTTF": "40", "MTTF": "40",
"MTTR": "10", "MTTR": "10",
"failureDistribution": "Fixed" "failureDistribution": "Fixed"
}, },
"id": "M2",
"name": "Machine2", "name": "Machine2",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "1.5" "mean": "1.5"
}, }
"successorList": [
"M3"
]
}, },
{ "M3": {
"_class": "Dream.Queue",
"capacity": "1",
"id": "DummyQ",
"isDummy": "1",
"name": "DummyQ",
"successorList": [
"M1"
]
},
{
"_class": "Dream.Conveyer",
"id": "C1",
"length": "8",
"name": "C1",
"speed": "1",
"successorList": [
"M2"
]
},
{
"_class": "Dream.Machine", "_class": "Dream.Machine",
"failures": { "failures": {
"failureDistribution": "No" "failureDistribution": "No"
}, },
"id": "M3",
"name": "Machine3", "name": "Machine3",
"processingTime": { "processingTime": {
"distributionType": "Fixed", "distributionType": "Fixed",
"mean": "3" "mean": "3"
}
},
"S1": {
"_class": "Dream.Source",
"entity": "Part",
"interarrivalTime": {
"distributionType": "Fixed",
"mean": "0.5"
}, },
"successorList": [ "name": "Raw Material"
"E1"
]
}, },
{ "W1": {
"_class": "Dream.Exit", "_class": "Dream.Repairman",
"id": "E1", "capacity": "1",
"name": "Stock" "name": "W1"
}
},
"preferences": {
"C1": {
"left": 0.5625,
"top": 0.5
},
"DummyQ": {
"left": 0.30208333333333337,
"top": 0.8070539419087137
},
"E1": {
"left": 0.7083333333333333,
"top": 0.03941908713692943
},
"M1": {
"left": 0.5625,
"top": 0.6535269709543569
},
"M2": {
"left": 0.7083333333333333,
"top": 0.34647302904564314
},
"M3": {
"left": 0.7083333333333333,
"top": 0.1929460580912863
},
"S1": {
"left": 0.30208333333333337,
"top": 0.9605809128630706
},
"W1": {
"left": 0.8489583333333334,
"top": 0.8070539419087137
} }
],
"general": {
"_class": "Dream.Configuration",
"confidenceLevel": "0.95",
"maxSimTime": "1440",
"numberOfReplications": "1",
"trace": "No"
} }
} }
\ No newline at end of file
...@@ -81,10 +81,21 @@ def readGeneralInput(): ...@@ -81,10 +81,21 @@ def readGeneralInput():
#creates the simulation objects #creates the simulation objects
def createObjects(): def createObjects():
json_data = G.JSONData
#Read the json data #Read the json data
elementList = G.JSONData['elementList'] nodes = json_data['nodes']
#modelResourceList = G.JSONData['modelResource'] edges = json_data['edges']
# XXX slow implementation
def getSuccessorList(node_id, predicate=lambda source, destination, edge_data: True):
successor_list = []
for source, destination, edge_data in edges:
if source == node_id:
if predicate(source, destination, edge_data):
successor_list.append(destination)
return successor_list
#define the lists #define the lists
G.SourceList=[] G.SourceList=[]
G.MachineList=[] G.MachineList=[]
...@@ -94,26 +105,25 @@ def createObjects(): ...@@ -94,26 +105,25 @@ def createObjects():
G.AssemblyList=[] G.AssemblyList=[]
G.DismantleList=[] G.DismantleList=[]
G.ConveyerList=[] G.ConveyerList=[]
#loop through all the model resources #loop through all the model resources
#search for repairmen in order to create them #search for repairmen in order to create them
#read the data and create them #read the data and create them
for element in elementList: for (element_id, element) in nodes.iteritems():
element['id'] = element_id
resourceClass = element.get('_class', 'not found') resourceClass = element.get('_class', 'not found')
if resourceClass=='Dream.Repairman': if resourceClass=='Dream.Repairman':
id = element.get('id', 'not found') id = element.get('id', 'not found')
name = element.get('name', 'not found') name = element.get('name', 'not found')
capacity = int(element.get('capacity', '1')) capacity = int(element.get('capacity', '1'))
successorList=element.get('successorList', 'not found') R = Repairman(element_id, name, capacity)
R = Repairman(id, name, capacity) R.coreObjectIds=getSuccessorList(id)
R.coreObjectIds=successorList
G.RepairmanList.append(R) G.RepairmanList.append(R)
#loop through all the elements #loop through all the elements
#read the data and create them #read the data and create them
for element in elementList: for (element_id, element) in nodes.iteritems():
element['id'] = element_id
objClass=element.get('_class', 'not found') objClass=element.get('_class', 'not found')
if objClass=='Dream.Source': if objClass=='Dream.Source':
id=element.get('id', 'not found') id=element.get('id', 'not found')
...@@ -122,9 +132,8 @@ def createObjects(): ...@@ -122,9 +132,8 @@ def createObjects():
distributionType=interarrivalTime.get('distributionType', 'not found') distributionType=interarrivalTime.get('distributionType', 'not found')
mean=float(interarrivalTime.get('mean', '0')) mean=float(interarrivalTime.get('mean', '0'))
entity=str_to_class(element.get('entity', 'not found')) entity=str_to_class(element.get('entity', 'not found'))
successorList=element.get('successorList', 'not found')
S=Source(id, name, distributionType, mean, entity) S=Source(id, name, distributionType, mean, entity)
S.nextIds=successorList S.nextIds=getSuccessorList(id)
G.SourceList.append(S) G.SourceList.append(S)
G.ObjList.append(S) G.ObjList.append(S)
...@@ -147,10 +156,9 @@ def createObjects(): ...@@ -147,10 +156,9 @@ def createObjects():
if(id in repairman.coreObjectIds): if(id in repairman.coreObjectIds):
r=repairman r=repairman
successorList=element.get('successorList', 'not found')
M=Machine(id, name, 1, distributionType, [mean,stdev,min,max], failureDistribution, M=Machine(id, name, 1, distributionType, [mean,stdev,min,max], failureDistribution,
MTTF, MTTR, availability, r) MTTF, MTTR, availability, r)
M.nextIds=successorList M.nextIds=getSuccessorList(id)
G.MachineList.append(M) G.MachineList.append(M)
G.ObjList.append(M) G.ObjList.append(M)
...@@ -164,11 +172,10 @@ def createObjects(): ...@@ -164,11 +172,10 @@ def createObjects():
elif objClass=='Dream.Queue': elif objClass=='Dream.Queue':
id=element.get('id', 'not found') id=element.get('id', 'not found')
name=element.get('name', 'not found') name=element.get('name', 'not found')
successorList=element.get('successorList', 'not found')
capacity=int(element.get('capacity', '1')) capacity=int(element.get('capacity', '1'))
isDummy=bool(int(element.get('isDummy', '0'))) isDummy=bool(int(element.get('isDummy', '0')))
Q=Queue(id, name, capacity, isDummy) Q=Queue(id, name, capacity, isDummy)
Q.nextIds=successorList Q.nextIds=getSuccessorList(id)
G.QueueList.append(Q) G.QueueList.append(Q)
G.ObjList.append(Q) G.ObjList.append(Q)
...@@ -194,11 +201,10 @@ def createObjects(): ...@@ -194,11 +201,10 @@ def createObjects():
max=float(processingTime.get('max', '0')) max=float(processingTime.get('max', '0'))
#predecessorPartList=element.get('predecessorPartList', 'not found') #predecessorPartList=element.get('predecessorPartList', 'not found')
#predecessorFrameList=element.get('predecessorFrameList', 'not found') #predecessorFrameList=element.get('predecessorFrameList', 'not found')
successorList=element.get('successorList', 'not found')
A=Assembly(id, name, distributionType, [mean,stdev,min,max]) A=Assembly(id, name, distributionType, [mean,stdev,min,max])
#A.previousPartIds=predecessorPartList #A.previousPartIds=predecessorPartList
#A.previousFrameIds=predecessorFrameList #A.previousFrameIds=predecessorFrameList
A.nextIds=successorList A.nextIds=getSuccessorList(id)
G.AssemblyList.append(A) G.AssemblyList.append(A)
G.ObjList.append(A) G.ObjList.append(A)
...@@ -211,13 +217,10 @@ def createObjects(): ...@@ -211,13 +217,10 @@ def createObjects():
stdev=float(processingTime.get('stdev', '0')) stdev=float(processingTime.get('stdev', '0'))
min=float(processingTime.get('min', '0')) min=float(processingTime.get('min', '0'))
max=float(processingTime.get('max', '0')) max=float(processingTime.get('max', '0'))
successorList=element.get('successorList', 'not found')
successorPartList=element.get('successorPartList', 'not found')
successorFrameList=element.get('successorFrameList', 'not found')
D=Dismantle(id, name, distributionType, [mean,stdev,min,max]) D=Dismantle(id, name, distributionType, [mean,stdev,min,max])
D.nextPartIds=successorPartList D.nextPartIds=getSuccessorList(id, lambda source, destination, edge_data: edge_data.get('entity') == 'Part')
D.nextFrameIds=successorFrameList D.nextFrameIds=getSuccessorList(id, lambda source, destination, edge_data: edge_data.get('entity') == 'Frame')
D.nextIds=successorList D.nextIds=getSuccessorList(id)
G.DismantleList.append(D) G.DismantleList.append(D)
G.ObjList.append(D) G.ObjList.append(D)
...@@ -226,9 +229,8 @@ def createObjects(): ...@@ -226,9 +229,8 @@ def createObjects():
name=element.get('name', 'not found') name=element.get('name', 'not found')
length=float(element.get('length', '10')) length=float(element.get('length', '10'))
speed=float(element.get('speed', '1')) speed=float(element.get('speed', '1'))
successorList=element.get('successorList', 'not found')
C=Conveyer(id, name, length, speed) C=Conveyer(id, name, length, speed)
C.nextIds=successorList C.nextIds=getSuccessorList(id)
G.ObjList.append(C) G.ObjList.append(C)
G.ConveyerList.append(C) G.ConveyerList.append(C)
......
...@@ -13,7 +13,7 @@ def positionGraph(g): ...@@ -13,7 +13,7 @@ def positionGraph(g):
graph = pydot.Dot() graph = pydot.Dot()
for node in g['nodes']: for node in g['nodes']:
graph.add_node(pydot.Node(node)) graph.add_node(pydot.Node(node))
for source, destination, data in g['edges']: for edge, (source, destination, data) in g['edges'].items():
graph.add_edge(pydot.Edge(source, destination)) graph.add_edge(pydot.Edge(source, destination))
new_graph = pydot.graph_from_dot_data(graph.create_dot()) new_graph = pydot.graph_from_dot_data(graph.create_dot())
...@@ -37,7 +37,10 @@ def positionGraph(g): ...@@ -37,7 +37,10 @@ def positionGraph(g):
return preference_dict return preference_dict
def format(m): def format(m):
# hack here edges = m.pop('edges')
m['edges'] = {}
for i, (s, d, data) in enumerate(edges):
m['edges'][i] = s, d, data
return m return m
with open(sys.argv[1]) as infile: with open(sys.argv[1]) as infile:
......
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