Commit 7d466347 authored by Sebastien Robin's avatar Sebastien Robin

PartJobShop: improve example

parent b6a5911e
...@@ -437,7 +437,6 @@ ...@@ -437,7 +437,6 @@
// task_start_date.setDate(task_start_date.getDate() + schedule['entranceTime']); // task_start_date.setDate(task_start_date.getDate() + schedule['entranceTime']);
// for simulation time unit as days hours // for simulation time unit as days hours
task_start_date.setTime(task_start_date.getTime() + schedule['entranceTime']*1000*3600); task_start_date.setTime(task_start_date.getTime() + schedule['entranceTime']*1000*3600);
console.log("going to push gantt by job", input_order[0], schedule, i);
gantt_data.data.push({ gantt_data.data.push({
id: input_order[0] + '.' + idx + '_' + i, id: input_order[0] + '.' + idx + '_' + i,
text: schedule['stationId'], text: schedule['stationId'],
...@@ -585,7 +584,6 @@ ...@@ -585,7 +584,6 @@
gantt_data.data.sort(function (a, b) { gantt_data.data.sort(function (a, b) {
// sort gantt data in a chronological order // sort gantt data in a chronological order
var result; var result;
console.log("sorting gantt, a, b", a.start_date, b.start_date);
if (a.start_date === undefined && b.start_date !== undefined) { if (a.start_date === undefined && b.start_date !== undefined) {
result = 1; result = 1;
} else if (a.start_date !== undefined && b.start_date === undefined) { } else if (a.start_date !== undefined && b.start_date === undefined) {
......
{ {
"edges": { "edges": {
"con_10": [ "con_10": [
"QCAM",
"CAM1",
{}
],
"con_15": [
"QCAM", "QCAM",
"CAM2", "CAM2",
{} {}
], ],
"con_20": [ "con_15": [
"QStart", "QStart",
"CAD1", "CAD1",
{} {}
], ],
"con_25": [ "con_20": [
"CAD1", "CAD1",
"Decomposition", "Decomposition",
{} {}
], ],
"con_30": [ "con_25": [
"CAD2", "CAD2",
"Decomposition", "Decomposition",
{} {}
], ],
"con_35": [ "con_30": [
"Decomposition", "Decomposition",
"QCAM", "QCAM",
{} {}
], ],
"con_40": [ "con_35": [
"QMILL", "QMILL",
"MILL2", "MILL2",
{} {}
], ],
"con_45": [ "con_40": [
"QMILL", "QMILL",
"MILL1", "MILL1",
{} {}
], ],
"con_5": [ "con_45": [
"QStart", "QStart",
"CAD2", "CAD2",
{} {}
], ],
"con_5": [
"QCAM",
"CAM1",
{}
],
"con_50": [ "con_50": [
"QEDM", "QEDM",
"EDM", "EDM",
...@@ -95,8 +95,8 @@ ...@@ -95,8 +95,8 @@
"confidenceLevel": "0.95", "confidenceLevel": "0.95",
"currentDate": "", "currentDate": "",
"maxSimTime": "-1", "maxSimTime": "-1",
"numberOfAntsPerGenerations": "1", "numberOfAntsPerGenerations": "2",
"numberOfGenerations": "3", "numberOfGenerations": "4",
"numberOfReplications": "1", "numberOfReplications": "1",
"numberOfSolutions": "4", "numberOfSolutions": "4",
"processTimeout": "2000" "processTimeout": "2000"
...@@ -176,16 +176,16 @@ ...@@ -176,16 +176,16 @@
}, },
"Decomposition": { "Decomposition": {
"_class": "Dream.OrderDecomposition", "_class": "Dream.OrderDecomposition",
"element_id": "DreamNode_10", "element_id": "DreamNode_5",
"name": "Decomposition" "name": "Decomposition"
}, },
"E1": { "E1": {
"_class": "Dream.ExitJobShop", "_class": "Dream.ExitJobShop",
"element_id": "DreamNode_5" "element_id": "DreamNode_6"
}, },
"EDM": { "EDM": {
"_class": "Dream.MachineManagedJob", "_class": "Dream.MachineManagedJob",
"element_id": "DreamNode_15", "element_id": "DreamNode_7",
"failures": { "failures": {
"MTTF": "40", "MTTF": "40",
"MTTR": "10", "MTTR": "10",
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
}, },
"IM1": { "IM1": {
"_class": "Dream.MachineManagedJob", "_class": "Dream.MachineManagedJob",
"element_id": "DreamNode_17", "element_id": "DreamNode_8",
"failures": { "failures": {
"MTTF": "40", "MTTF": "40",
"MTTR": "10", "MTTR": "10",
...@@ -221,7 +221,7 @@ ...@@ -221,7 +221,7 @@
}, },
"IM2": { "IM2": {
"_class": "Dream.MachineManagedJob", "_class": "Dream.MachineManagedJob",
"element_id": "DreamNode_18", "element_id": "DreamNode_9",
"failures": { "failures": {
"MTTF": "40", "MTTF": "40",
"MTTR": "10", "MTTR": "10",
...@@ -239,7 +239,7 @@ ...@@ -239,7 +239,7 @@
}, },
"MASS1": { "MASS1": {
"_class": "Dream.MachineManagedJob", "_class": "Dream.MachineManagedJob",
"element_id": "DreamNode_19", "element_id": "DreamNode_10",
"failures": { "failures": {
"MTTF": "40", "MTTF": "40",
"MTTR": "10", "MTTR": "10",
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
}, },
"MASS2": { "MASS2": {
"_class": "Dream.MachineManagedJob", "_class": "Dream.MachineManagedJob",
"element_id": "DreamNode_20", "element_id": "DreamNode_11",
"failures": { "failures": {
"MTTF": "40", "MTTF": "40",
"MTTR": "10", "MTTR": "10",
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
}, },
"MASS3": { "MASS3": {
"_class": "Dream.MachineManagedJob", "_class": "Dream.MachineManagedJob",
"element_id": "DreamNode_21", "element_id": "DreamNode_12",
"failures": { "failures": {
"MTTF": "40", "MTTF": "40",
"MTTR": "10", "MTTR": "10",
...@@ -293,7 +293,7 @@ ...@@ -293,7 +293,7 @@
}, },
"MILL1": { "MILL1": {
"_class": "Dream.MachineManagedJob", "_class": "Dream.MachineManagedJob",
"element_id": "DreamNode_12", "element_id": "DreamNode_13",
"failures": { "failures": {
"MTTF": "40", "MTTF": "40",
"MTTR": "10", "MTTR": "10",
...@@ -311,7 +311,7 @@ ...@@ -311,7 +311,7 @@
}, },
"MILL2": { "MILL2": {
"_class": "Dream.MachineManagedJob", "_class": "Dream.MachineManagedJob",
"element_id": "DreamNode_13", "element_id": "DreamNode_14",
"failures": { "failures": {
"MTTF": "40", "MTTF": "40",
"MTTR": "10", "MTTR": "10",
...@@ -329,18 +329,18 @@ ...@@ -329,18 +329,18 @@
}, },
"PM1": { "PM1": {
"_class": "Dream.Operator", "_class": "Dream.Operator",
"element_id": "DreamNode_6", "element_id": "DreamNode_15",
"name": "PM1" "name": "PM1"
}, },
"PM2": { "PM2": {
"_class": "Dream.Operator", "_class": "Dream.Operator",
"element_id": "DreamNode_7", "element_id": "DreamNode_16",
"name": "PM2" "name": "PM2"
}, },
"QCAM": { "QCAM": {
"_class": "Dream.ConditionalBuffer", "_class": "Dream.ConditionalBuffer",
"capacity": "1", "capacity": "1",
"element_id": "DreamNode_8", "element_id": "DreamNode_17",
"isDummy": "0", "isDummy": "0",
"name": "QCAM", "name": "QCAM",
"schedulingRule": "FIFO" "schedulingRule": "FIFO"
...@@ -348,7 +348,7 @@ ...@@ -348,7 +348,7 @@
"QEDM": { "QEDM": {
"_class": "Dream.QueueManagedJob", "_class": "Dream.QueueManagedJob",
"capacity": "1", "capacity": "1",
"element_id": "DreamNode_14", "element_id": "DreamNode_18",
"isDummy": "0", "isDummy": "0",
"name": "QEDM", "name": "QEDM",
"schedulingRule": "FIFO" "schedulingRule": "FIFO"
...@@ -356,7 +356,7 @@ ...@@ -356,7 +356,7 @@
"QIM": { "QIM": {
"_class": "Dream.QueueManagedJob", "_class": "Dream.QueueManagedJob",
"capacity": "1", "capacity": "1",
"element_id": "DreamNode_16", "element_id": "DreamNode_19",
"isDummy": "0", "isDummy": "0",
"name": "QIM", "name": "QIM",
"schedulingRule": "FIFO" "schedulingRule": "FIFO"
...@@ -364,7 +364,7 @@ ...@@ -364,7 +364,7 @@
"QMASS": { "QMASS": {
"_class": "Dream.QueueManagedJob", "_class": "Dream.QueueManagedJob",
"capacity": "1", "capacity": "1",
"element_id": "DreamNode_22", "element_id": "DreamNode_20",
"isDummy": "0", "isDummy": "0",
"name": "QMASS", "name": "QMASS",
"schedulingRule": "FIFO" "schedulingRule": "FIFO"
...@@ -372,7 +372,7 @@ ...@@ -372,7 +372,7 @@
"QMILL": { "QMILL": {
"_class": "Dream.QueueManagedJob", "_class": "Dream.QueueManagedJob",
"capacity": "-1", "capacity": "-1",
"element_id": "DreamNode_11", "element_id": "DreamNode_21",
"isDummy": "0", "isDummy": "0",
"name": "QMILL", "name": "QMILL",
"schedulingRule": "FIFO" "schedulingRule": "FIFO"
...@@ -380,7 +380,7 @@ ...@@ -380,7 +380,7 @@
"QStart": { "QStart": {
"_class": "Dream.QueueManagedJob", "_class": "Dream.QueueManagedJob",
"capacity": "1", "capacity": "1",
"element_id": "DreamNode_9", "element_id": "DreamNode_22",
"isDummy": "0", "isDummy": "0",
"name": "QStart", "name": "QStart",
"schedulingRule": "FIFO" "schedulingRule": "FIFO"
...@@ -510,7 +510,7 @@ ...@@ -510,7 +510,7 @@
"2014/03/15", "2014/03/15",
"1", "1",
"PM1", "PM1",
"Mould1 Design", "Design",
"Design", "Design",
"CAD", "CAD",
"6", "6",
...@@ -525,7 +525,7 @@ ...@@ -525,7 +525,7 @@
"Basic", "Basic",
"CAM-MILL-EDM-MILL-IM", "CAM-MILL-EDM-MILL-IM",
"8-4-2-8-12", "8-4-2-8-12",
null "Design"
], ],
[ [
null, null,
...@@ -536,7 +536,7 @@ ...@@ -536,7 +536,7 @@
"Basic", "Basic",
"CAM-MILL-EDM-CAM-IM", "CAM-MILL-EDM-CAM-IM",
"20-15-8-4-13", "20-15-8-4-13",
"" "Design"
], ],
[ [
"", "",
...@@ -547,17 +547,17 @@ ...@@ -547,17 +547,17 @@
"Basic", "Basic",
"MASS-IM", "MASS-IM",
"8-12", "8-12",
"" "Part1-Part2"
], ],
[ [
"Order 2", "Order 2",
"2014/03/15", "2014/03/15",
"1", "1",
"PM1", "PM1",
"Mould1 Design", "Design",
"Design", "Design",
"CAD", "CAD",
"2", "8",
"" ""
], ],
[ [
...@@ -567,9 +567,9 @@ ...@@ -567,9 +567,9 @@
"", "",
"Part1", "Part1",
"Basic", "Basic",
"CAM", "CAM-MILL-EDM-MILL",
"4", "20-15-8-12",
"" "Design"
], ],
[ [
"", "",
...@@ -578,16 +578,16 @@ ...@@ -578,16 +578,16 @@
"", "",
"Part2", "Part2",
"Basic", "Basic",
"CAM", "CAM-MIL",
"3", "2-4",
"" "Design"
], ],
[ [
"Order 3", "Order 3",
"2014/03/15", "2014/03/15",
"1", "1",
"PM1", "PM1",
"Mould1 Design", "Design",
"Design", "Design",
"CAD", "CAD",
"2", "2",
...@@ -600,9 +600,9 @@ ...@@ -600,9 +600,9 @@
"", "",
"Part1", "Part1",
"Basic", "Basic",
"CAM", "CAM-MILL-EDM-MILL-IM",
"4", "12-7-3-6-9",
"" "Design"
], ],
[ [
"", "",
...@@ -611,20 +611,20 @@ ...@@ -611,20 +611,20 @@
"", "",
"Part2", "Part2",
"Basic", "Basic",
"CAM", "CAM-MILL-EDM-CAM-IM",
"3", "20-14-9-3-12",
"" "Design"
], ],
[ [
null, "",
null, "",
null, "",
null, "",
null, "",
null, "",
null, "",
null, "",
null ""
] ]
] ]
} }
\ No newline at end of file
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