Commit ced624d9 authored by Sebastien Robin's avatar Sebastien Robin

PartJobShop: use MouldAssemblyBuffer insteaf of queue

parent 138b37b3
...@@ -281,7 +281,7 @@ path, ._jsPlumb_endpoint { ...@@ -281,7 +281,7 @@ path, ._jsPlumb_endpoint {
background-image: linear-gradient(to bottom, #fef 0%, #ede 100%); background-image: linear-gradient(to bottom, #fef 0%, #ede 100%);
} }
.Dream-Queue, .Dream-QueueJobShop, .Dream-LineClearance, .Dream-QueueManagedJob, .Dream-ConditionalBuffer, .Dream-OrderDecomposition { .Dream-Queue, .Dream-QueueJobShop, .Dream-LineClearance, .Dream-QueueManagedJob, .Dream-ConditionalBuffer, .Dream-OrderDecomposition, .Dream-MouldAssemblyBuffer {
border: 1px solid #bcc; border: 1px solid #bcc;
background-color:#eff; background-color:#eff;
background-image: linear-gradient(to bottom, #eff 0%, #dee 100%); background-image: linear-gradient(to bottom, #eff 0%, #dee 100%);
......
{ {
"edges": { "edges": {
"con_10": [ "con_10": [
"QCAM",
"CAM2",
{}
],
"con_15": [
"QStart", "QStart",
"CAD1", "CAD1",
{} {}
], ],
"con_20": [ "con_108": [
"QMASS",
"MASS3",
{}
],
"con_15": [
"CAD1", "CAD1",
"Decomposition", "Decomposition",
{} {}
], ],
"con_25": [ "con_20": [
"CAD2", "CAD2",
"Decomposition", "Decomposition",
{} {}
], ],
"con_30": [ "con_25": [
"Decomposition", "Decomposition",
"QCAM", "QCAM",
{} {}
], ],
"con_35": [ "con_30": [
"QMILL", "QMILL",
"MILL2", "MILL2",
{} {}
], ],
"con_40": [ "con_35": [
"QMILL", "QMILL",
"MILL1", "MILL1",
{} {}
], ],
"con_45": [ "con_40": [
"QStart", "QStart",
"CAD2", "CAD2",
{} {}
], ],
"con_5": [ "con_45": [
"QCAM", "QCAM",
"CAM1", "CAM1",
{} {}
], ],
"con_5": [
"QCAM",
"CAM2",
{}
],
"con_50": [ "con_50": [
"QEDM", "QEDM",
"EDM", "EDM",
...@@ -61,33 +66,28 @@ ...@@ -61,33 +66,28 @@
{} {}
], ],
"con_65": [ "con_65": [
"QMASS", "MASS3",
"MASS1", "QIM",
{} {}
], ],
"con_70": [ "con_70": [
"QMASS",
"MASS2", "MASS2",
"QIM",
{} {}
], ],
"con_75": [ "con_75": [
"QMASS", "MASS1",
"MASS3",
{}
],
"con_80": [
"MASS3",
"QIM", "QIM",
{} {}
], ],
"con_85": [ "con_82": [
"MASS2", "QMASS",
"QIM", "MASS1",
{} {}
], ],
"con_90": [ "con_95": [
"MASS1", "QMASS",
"QIM", "MASS2",
{} {}
] ]
}, },
...@@ -362,9 +362,9 @@ ...@@ -362,9 +362,9 @@
"schedulingRule": "FIFO" "schedulingRule": "FIFO"
}, },
"QMASS": { "QMASS": {
"_class": "Dream.QueueManagedJob", "_class": "Dream.MouldAssemblyBuffer",
"capacity": "1", "capacity": "1",
"element_id": "DreamNode_20", "element_id": "DreamNode_22",
"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_21", "element_id": "DreamNode_20",
"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_22", "element_id": "DreamNode_21",
"isDummy": "0", "isDummy": "0",
"name": "QStart", "name": "QStart",
"schedulingRule": "FIFO" "schedulingRule": "FIFO"
...@@ -465,8 +465,8 @@ ...@@ -465,8 +465,8 @@
"top": 0.7069073434280151 "top": 0.7069073434280151
}, },
"QMASS": { "QMASS": {
"left": 0.38256911560405105, "left": 0.39359833360679664,
"top": 0.7012616778705337 "top": 0.7621221762426658
}, },
"QMILL": { "QMILL": {
"left": 0.024330940806924675, "left": 0.024330940806924675,
...@@ -590,7 +590,7 @@ ...@@ -590,7 +590,7 @@
"Design", "Design",
"Design", "Design",
"CAD", "CAD",
"2", "7",
"" ""
], ],
[ [
...@@ -605,10 +605,10 @@ ...@@ -605,10 +605,10 @@
"Design" "Design"
], ],
[ [
"", null,
"", null,
"", null,
"", null,
"Part2", "Part2",
"Basic", "Basic",
"CAM-MILL-EDM-CAM-IM", "CAM-MILL-EDM-CAM-IM",
...@@ -616,15 +616,15 @@ ...@@ -616,15 +616,15 @@
"Design" "Design"
], ],
[ [
"", null,
"", null,
"", null,
"", null,
"", null,
"", null,
"", null,
"", null,
"" null
] ]
] ]
} }
\ No newline at end of file
...@@ -39,6 +39,14 @@ class Simulation(ACO.Simulation): ...@@ -39,6 +39,14 @@ class Simulation(ACO.Simulation):
"_class": 'Dream.ConditionalBuffer', "_class": 'Dream.ConditionalBuffer',
"name": 'Buffer' "name": 'Buffer'
} }
conf["Dream-MouldAssemblyBuffer"] = {
"property_list": [
schema["capacity"],
schema["isDummy"],
schema["schedulingRule"]
],
"name": 'AssBuffer'
}
conf["Dream-ExitJobShop"] = { conf["Dream-ExitJobShop"] = {
"_class": 'Dream.ExitJobShop', "_class": 'Dream.ExitJobShop',
"name": 'Exit' "name": 'Exit'
...@@ -202,7 +210,6 @@ class Simulation(ACO.Simulation): ...@@ -202,7 +210,6 @@ class Simulation(ACO.Simulation):
order_dict["componentsList"] = component_list order_dict["componentsList"] = component_list
data["nodes"]["QStart"]["wip"] = wip_list data["nodes"]["QStart"]["wip"] = wip_list
del(data['wip_part_spreadsheet']) del(data['wip_part_spreadsheet'])
from pprint import pprint
print "PartJobShop, data after preprocess :" print "PartJobShop, data after preprocess :"
print pprint(data) print json.dumps(data,indent=4)
return data return data
\ 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