Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
39dbf389
Commit
39dbf389
authored
Mar 03, 2014
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PartJobShop: update case thanks to George comments
parent
753a0f50
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
673 additions
and
626 deletions
+673
-626
dream/platform/static/css/demo-new.css
dream/platform/static/css/demo-new.css
+1
-1
dream/simulation/Examples/PartJobShop.json
dream/simulation/Examples/PartJobShop.json
+647
-623
dream/simulation/GUI/PartJobShop.py
dream/simulation/GUI/PartJobShop.py
+25
-2
No files found.
dream/platform/static/css/demo-new.css
View file @
39dbf389
...
...
@@ -275,7 +275,7 @@ path, ._jsPlumb_endpoint {
background-image
:
linear-gradient
(
to
bottom
,
#ffe
0%
,
#dde
100%
);
}
.Dream-Machine
,
.Dream-MachineJobShop
,
.Dream-BatchScrapMachine
,
.Dream-MachineManagedJob
{
.Dream-Machine
,
.Dream-MachineJobShop
,
.Dream-BatchScrapMachine
,
.Dream-MachineManagedJob
,
.Dream-MouldAssembly
{
border
:
1px
solid
#cbc
;
background-color
:
#fef
;
background-image
:
linear-gradient
(
to
bottom
,
#fef
0%
,
#ede
100%
);
...
...
dream/simulation/Examples/PartJobShop.json
View file @
39dbf389
{
"edges"
:
{
"con_10"
:
[
"QStart"
,
"CAD1"
,
{}
],
"con_108"
:
[
"QMASS"
,
"MASS3"
,
{}
],
"con_15"
:
[
"CAD1"
,
"Decomposition"
,
{}
],
"con_20"
:
[
"CAD2"
,
"Decomposition"
,
{}
],
"con_25"
:
[
"Decomposition"
,
"QCAM"
,
{}
],
"con_30"
:
[
"QMILL"
,
"MILL2"
,
{}
],
"con_35"
:
[
"QMILL"
,
"MILL1"
,
{}
],
"con_40"
:
[
"QStart"
,
"CAD2"
,
{}
],
"con_45"
:
[
"QCAM"
,
"CAM1"
,
{}
],
"con_5"
:
[
"QCAM"
,
"CAM2"
,
{}
],
"con_50"
:
[
"QEDM"
,
"EDM"
,
{}
],
"con_55"
:
[
"QIM"
,
"IM1"
,
{}
],
"con_60"
:
[
"QIM"
,
"IM2"
,
{}
],
"con_65"
:
[
"MASS3"
,
"QIM"
,
{}
],
"con_70"
:
[
"MASS2"
,
"QIM"
,
{}
],
"con_75"
:
[
"MASS1"
,
"QIM"
,
{}
],
"con_82"
:
[
"QMASS"
,
"MASS1"
,
{}
],
"con_95"
:
[
"QMASS"
,
"MASS2"
,
{}
]
"edges"
:
{
"con_10"
:
[
"CAD1"
,
"Decomposition"
,
{}
],
"con_15"
:
[
"CAD2"
,
"Decomposition"
,
{}
],
"con_20"
:
[
"Decomposition"
,
"QCAM"
,
{}
],
"con_25"
:
[
"QMILL"
,
"MILL2"
,
{}
],
"con_30"
:
[
"QMILL"
,
"MILL1"
,
{}
],
"con_35"
:
[
"QStart"
,
"CAD2"
,
{}
],
"con_40"
:
[
"QCAM"
,
"CAM1"
,
{}
],
"con_45"
:
[
"QCAM"
,
"CAM2"
,
{}
],
"con_5"
:
[
"QStart"
,
"CAD1"
,
{}
],
"con_50"
:
[
"QEDM"
,
"EDM"
,
{}
],
"con_55"
:
[
"QIM"
,
"IM1"
,
{}
],
"con_60"
:
[
"QIM"
,
"IM2"
,
{}
],
"con_65"
:
[
"MASS3"
,
"QIM"
,
{}
],
"con_70"
:
[
"MASS2"
,
"QIM"
,
{}
],
"con_75"
:
[
"MASS1"
,
"QIM"
,
{}
],
"con_80"
:
[
"QMASS"
,
"MASS1"
,
{}
],
"con_85"
:
[
"QMASS"
,
"MASS2"
,
{}
],
"con_90"
:
[
"QMASS"
,
"MASS3"
,
{}
]
},
"general"
:
{
"confidenceLevel"
:
0.95
,
"currentDate"
:
""
,
"maxSimTime"
:
-1
,
"numberOfAntsPerGenerations"
:
2
,
"numberOfGenerations"
:
4
,
"numberOfReplications"
:
1
,
"numberOfSolutions"
:
4
,
"processTimeout"
:
2000
,
"trace"
:
"Yes"
},
"nodes"
:
{
"CAD1"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_1"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"CAD1"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
"0.9"
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"CAD2"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_2"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"CAD2"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
"0.9"
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"CAM1"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_3"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"CAM1"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
"0.9"
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"CAM2"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_4"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"CAM2"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
"0.9"
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"Decomposition"
:
{
"_class"
:
"Dream.OrderDecomposition"
,
"element_id"
:
"DreamNode_5"
,
"name"
:
"Decomposition"
},
"E1"
:
{
"_class"
:
"Dream.ExitJobShop"
,
"element_id"
:
"DreamNode_6"
,
"name"
:
"Exit"
},
"EDM"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_7"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"EDM"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
"0.9"
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"IM1"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_8"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"IM1"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
"0.9"
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"general"
:
{
"confidenceLevel"
:
0.95
,
"currentDate"
:
"2014/02/01"
,
"maxSimTime"
:
-1
,
"numberOfAntsPerGenerations"
:
2
,
"numberOfGenerations"
:
4
,
"numberOfReplications"
:
1
,
"numberOfSolutions"
:
4
,
"processTimeout"
:
200
"IM2"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_9"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"IM2"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
"0.9"
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"nodes"
:
{
"CAD1"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_1"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"CAD1"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
0.9
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"CAD2"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_2"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"CAD2"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
0.9
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"CAM1"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_3"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"CAM1"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
0.9
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"CAM2"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_4"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"CAM2"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
0.9
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"Decomposition"
:
{
"_class"
:
"Dream.OrderDecomposition"
,
"element_id"
:
"DreamNode_5"
,
"name"
:
"Decomposition"
},
"E1"
:
{
"_class"
:
"Dream.ExitJobShop"
,
"element_id"
:
"DreamNode_6"
},
"EDM"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_7"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"EDM"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
0.9
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"IM1"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_8"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"IM1"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
0.9
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"IM2"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_9"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"IM2"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
0.9
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"MASS1"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_10"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"MASS1"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
0.9
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"MASS2"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_11"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"MASS2"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
0.9
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"MASS3"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_12"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"MASS3"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
0.9
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"MILL1"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_13"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"MILL1"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
0.9
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"MILL2"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_14"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"MILL2"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
0.9
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"PM1"
:
{
"_class"
:
"Dream.Operator"
,
"element_id"
:
"DreamNode_15"
,
"name"
:
"PM1"
},
"PM2"
:
{
"_class"
:
"Dream.Operator"
,
"element_id"
:
"DreamNode_16"
,
"name"
:
"PM2"
},
"QCAM"
:
{
"_class"
:
"Dream.ConditionalBuffer"
,
"capacity"
:
"1"
,
"element_id"
:
"DreamNode_17"
,
"isDummy"
:
"0"
,
"name"
:
"QCAM"
,
"schedulingRule"
:
"FIFO"
},
"QEDM"
:
{
"_class"
:
"Dream.QueueManagedJob"
,
"capacity"
:
"1"
,
"element_id"
:
"DreamNode_18"
,
"isDummy"
:
"0"
,
"name"
:
"QEDM"
,
"schedulingRule"
:
"FIFO"
},
"QIM"
:
{
"_class"
:
"Dream.QueueManagedJob"
,
"capacity"
:
"1"
,
"element_id"
:
"DreamNode_19"
,
"isDummy"
:
"0"
,
"name"
:
"QIM"
,
"schedulingRule"
:
"FIFO"
},
"QMASS"
:
{
"_class"
:
"Dream.MouldAssemblyBuffer"
,
"capacity"
:
"1"
,
"element_id"
:
"DreamNode_22"
,
"isDummy"
:
"0"
,
"name"
:
"QMASS"
,
"schedulingRule"
:
"FIFO"
},
"QMILL"
:
{
"_class"
:
"Dream.QueueManagedJob"
,
"capacity"
:
"-1"
,
"element_id"
:
"DreamNode_20"
,
"isDummy"
:
"0"
,
"name"
:
"QMILL"
,
"schedulingRule"
:
"FIFO"
},
"QStart"
:
{
"_class"
:
"Dream.QueueManagedJob"
,
"capacity"
:
"1"
,
"element_id"
:
"DreamNode_21"
,
"isDummy"
:
"0"
,
"name"
:
"QStart"
,
"schedulingRule"
:
"FIFO"
}
"MASS1"
:
{
"_class"
:
"Dream.MouldAssembly"
,
"element_id"
:
"DreamNode_10"
,
"failures"
:
{
"MTTF"
:
40
,
"MTTR"
:
10
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"MouldAss"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
1
,
"mean"
:
0.9
,
"min"
:
0.1
,
"stdev"
:
0.1
}
},
"preference"
:
{
"coordinates"
:
{
"CAD1"
:
{
"left"
:
0.32963397636897157
,
"top"
:
0.2680049626379991
},
"CAD2"
:
{
"left"
:
0.35914551462607636
,
"top"
:
0.023577079050914163
},
"CAM1"
:
{
"left"
:
0.8156850502215475
,
"top"
:
0.03770447816866011
},
"CAM2"
:
{
"left"
:
0.7965020644878134
,
"top"
:
0.3105076307737342
},
"Decomposition"
:
{
"left"
:
0.5277238535086819
,
"top"
:
0.10475955623433687
},
"E1"
:
{
"left"
:
0.967876137039781
,
"top"
:
0.39355726466863505
},
"EDM"
:
{
"left"
:
0.18964688721194897
,
"top"
:
0.9220848382145941
},
"IM1"
:
{
"left"
:
0.8751810178550912
,
"top"
:
0.6049810252492097
},
"IM2"
:
{
"left"
:
0.8845462397808385
,
"top"
:
0.8560412718675537
},
"MASS1"
:
{
"left"
:
0.5486473277825593
,
"top"
:
0.5247930837013548
},
"MASS2"
:
{
"left"
:
0.5441103624829352
,
"top"
:
0.7115787006319392
},
"MASS3"
:
{
"left"
:
0.5501964991975471
,
"top"
:
0.9108024938023543
},
"MILL1"
:
{
"left"
:
0.1877564659501795
,
"top"
:
0.6841812972040019
},
"MILL2"
:
{
"left"
:
0.18401596464596484
,
"top"
:
0.44453459509694726
},
"PM1"
:
{
"left"
:
0.001216264249816622
,
"top"
:
0.021371774115389482
},
"PM2"
:
{
"left"
:
0.002151852134290946
,
"top"
:
0.2275242854939252
},
"QCAM"
:
{
"left"
:
0.6798946482505993
,
"top"
:
0.04336252204503648
},
"QEDM"
:
{
"left"
:
0.05041752133280548
,
"top"
:
0.9193157852349616
},
"QIM"
:
{
"left"
:
0.7084640625588505
,
"top"
:
0.7069073434280151
},
"QMASS"
:
{
"left"
:
0.39359833360679664
,
"top"
:
0.7621221762426658
},
"QMILL"
:
{
"left"
:
0.024330940806924675
,
"top"
:
0.571934442232598
},
"QStart"
:
{
"left"
:
0.15404040948036557
,
"top"
:
0.05376099760119495
}
},
"zoom_level"
:
0.99999
"MASS2"
:
{
"_class"
:
"Dream.MouldAssembly"
,
"element_id"
:
"DreamNode_11"
,
"failures"
:
{
"MTTF"
:
40
,
"MTTR"
:
10
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"MouldAss"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
1
,
"mean"
:
0.9
,
"min"
:
0.1
,
"stdev"
:
0.1
}
},
"shift_spreadsheet"
:
[
[
"Day"
,
"Machines"
,
"Start"
,
"End"
],
[
null
,
null
,
null
,
null
]
"MASS3"
:
{
"_class"
:
"Dream.MouldAssembly"
,
"element_id"
:
"DreamNode_12"
,
"failures"
:
{
"MTTF"
:
40
,
"MTTR"
:
10
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"MouldAss"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
1
,
"mean"
:
0.9
,
"min"
:
0.1
,
"stdev"
:
0.1
}
},
"MILL1"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_13"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"MILL1"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
"0.9"
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"MILL2"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_14"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
"failureDistribution"
:
"No"
,
"repairman"
:
"None"
},
"name"
:
"MILL2"
,
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"max"
:
"1"
,
"mean"
:
"0.9"
,
"min"
:
"0.1"
,
"stdev"
:
"0.1"
}
},
"PM1"
:
{
"_class"
:
"Dream.Operator"
,
"element_id"
:
"DreamNode_15"
,
"name"
:
"PM1"
},
"PM2"
:
{
"_class"
:
"Dream.Operator"
,
"element_id"
:
"DreamNode_16"
,
"name"
:
"PM2"
},
"QCAM"
:
{
"_class"
:
"Dream.ConditionalBuffer"
,
"capacity"
:
"1"
,
"element_id"
:
"DreamNode_17"
,
"isDummy"
:
"0"
,
"name"
:
"QCAM"
,
"schedulingRule"
:
"FIFO"
},
"QEDM"
:
{
"_class"
:
"Dream.QueueManagedJob"
,
"capacity"
:
"1"
,
"element_id"
:
"DreamNode_18"
,
"isDummy"
:
"0"
,
"name"
:
"QEDM"
,
"schedulingRule"
:
"FIFO"
},
"QIM"
:
{
"_class"
:
"Dream.QueueManagedJob"
,
"capacity"
:
-1
,
"element_id"
:
"DreamNode_19"
,
"isDummy"
:
"0"
,
"name"
:
"QIM"
,
"schedulingRule"
:
"FIFO"
},
"QMASS"
:
{
"_class"
:
"Dream.MouldAssemblyBuffer"
,
"capacity"
:
-1
,
"element_id"
:
"DreamNode_20"
,
"isDummy"
:
"0"
,
"name"
:
"QMASS"
,
"schedulingRule"
:
"FIFO"
},
"QMILL"
:
{
"_class"
:
"Dream.QueueManagedJob"
,
"capacity"
:
"-1"
,
"element_id"
:
"DreamNode_21"
,
"isDummy"
:
"0"
,
"name"
:
"QMILL"
,
"schedulingRule"
:
"FIFO"
},
"QStart"
:
{
"_class"
:
"Dream.QueueManagedJob"
,
"capacity"
:
"1"
,
"element_id"
:
"DreamNode_22"
,
"isDummy"
:
"0"
,
"name"
:
"QStart"
,
"schedulingRule"
:
"FIFO"
}
},
"preference"
:
{
"coordinates"
:
{
"CAD1"
:
{
"left"
:
0.32963397636897157
,
"top"
:
0.2680049626379991
},
"CAD2"
:
{
"left"
:
0.35914551462607636
,
"top"
:
0.023577079050914163
},
"CAM1"
:
{
"left"
:
0.8156850502215475
,
"top"
:
0.03770447816866011
},
"CAM2"
:
{
"left"
:
0.7965020644878134
,
"top"
:
0.3105076307737342
},
"Decomposition"
:
{
"left"
:
0.5277238535086819
,
"top"
:
0.10475955623433687
},
"E1"
:
{
"left"
:
0.967876137039781
,
"top"
:
0.39355726466863505
},
"EDM"
:
{
"left"
:
0.18964688721194897
,
"top"
:
0.9220848382145941
},
"IM1"
:
{
"left"
:
0.8751810178550912
,
"top"
:
0.6049810252492097
},
"IM2"
:
{
"left"
:
0.8845462397808385
,
"top"
:
0.8560412718675537
},
"MASS1"
:
{
"left"
:
0.5486473277825593
,
"top"
:
0.5247930837013548
},
"MASS2"
:
{
"left"
:
0.5441103624829352
,
"top"
:
0.7115787006319392
},
"MASS3"
:
{
"left"
:
0.5501964991975471
,
"top"
:
0.9108024938023543
},
"MILL1"
:
{
"left"
:
0.1877564659501795
,
"top"
:
0.6841812972040019
},
"MILL2"
:
{
"left"
:
0.18401596464596484
,
"top"
:
0.44453459509694726
},
"PM1"
:
{
"left"
:
0.001216264249816622
,
"top"
:
0.021371774115389482
},
"PM2"
:
{
"left"
:
0.002151852134290946
,
"top"
:
0.2275242854939252
},
"QCAM"
:
{
"left"
:
0.6798946482505993
,
"top"
:
0.04336252204503648
},
"QEDM"
:
{
"left"
:
0.05041752133280548
,
"top"
:
0.9193157852349616
},
"QIM"
:
{
"left"
:
0.7084640625588505
,
"top"
:
0.7069073434280151
},
"QMASS"
:
{
"left"
:
0.39359833360679664
,
"top"
:
0.7621221762426658
},
"QMILL"
:
{
"left"
:
0.024330940806924675
,
"top"
:
0.571934442232598
},
"QStart"
:
{
"left"
:
0.15404040948036557
,
"top"
:
0.05376099760119495
}
},
"zoom_level"
:
0.8099919000000001
},
"shift_spreadsheet"
:
[
[
"Day"
,
"Machines"
,
"Start"
,
"End"
],
[
null
,
null
,
null
,
null
]
],
"wip_part_spreadsheet"
:
[
[
"Order ID"
,
"Due Date"
,
"Priority"
,
"Project Manager"
,
"Part"
,
"Part Type"
,
"Sequence"
,
"Processing Times"
,
"Prerequisites Parts"
],
[
"Order 1"
,
"2014/03/15"
,
"1"
,
"PM1"
,
"Design"
,
"Design"
,
"CAD"
,
"6"
,
null
],
[
null
,
null
,
null
,
null
,
"Part1"
,
"Basic"
,
"CAM-MILL-EDM-MILL-MASS"
,
"8-4-2-8-8"
,
""
],
[
null
,
null
,
null
,
null
,
"Part2"
,
"Basic"
,
"CAM-MILL-EDM-MILL-EDM-MASS"
,
"10-7-8-4-13-8-8"
,
""
],
[
""
,
""
,
""
,
""
,
"Assemble"
,
"Mould"
,
"MASS-IM"
,
"2-12"
,
""
],
[
"Order 2"
,
"2014/03/15"
,
"1"
,
"PM1"
,
"Design"
,
"Design"
,
"CAD"
,
"6"
,
""
],
[
""
,
""
,
""
,
""
,
"Part1"
,
"Basic"
,
"CAM-MILL-EDM-MILL-MASS"
,
"8-4-2-8-8"
,
""
],
[
""
,
""
,
""
,
""
,
"Part2"
,
"Basic"
,
"CAM-MILL-EDM-MASS"
,
"20-15-8-8-8"
,
""
],
[
""
,
""
,
""
,
""
,
"Assemble"
,
"Mould"
,
"MASS-IM"
,
"1-12"
,
""
],
[
"Order 3"
,
"2014/03/15"
,
"1"
,
"PM1"
,
"Design"
,
"Design"
,
"CAD"
,
"6"
,
""
],
[
""
,
""
,
""
,
""
,
"Part1"
,
"Basic"
,
"CAM-MILL-EDM-MASS"
,
"8-4-2-8-"
,
""
],
[
""
,
""
,
""
,
""
,
"Part2"
,
"Basic"
,
"CAM-MILL-EDM-MASS"
,
"7-15-8-8-8"
,
""
],
[
""
,
""
,
""
,
""
,
"Assemble"
,
"Mould"
,
"MASS-IM"
,
"1-3"
,
""
],
"wip_part_spreadsheet"
:
[
[
"Order ID"
,
"Due Date"
,
"Priority"
,
"Project Manager"
,
"Part"
,
"Part Type"
,
"Sequence"
,
"Processing Times"
,
"Prerequisites Parts"
],
[
"Order 1"
,
"2014/03/15"
,
"1"
,
"PM1"
,
"Design"
,
"Design"
,
"CAD"
,
"6"
,
null
],
[
null
,
null
,
null
,
null
,
"Part1"
,
"Basic"
,
"CAM-MILL-EDM-MILL-IM"
,
"8-4-2-8-12"
,
"Design"
],
[
null
,
null
,
null
,
null
,
"Part2"
,
"Basic"
,
"CAM-MILL-EDM-CAM-IM"
,
"20-15-8-4-13"
,
"Design"
],
[
""
,
""
,
""
,
""
,
"Assemble"
,
"Basic"
,
"MASS-IM"
,
"8-12"
,
"Part1-Part2"
],
[
"Order 2"
,
"2014/03/15"
,
"1"
,
"PM1"
,
"Design"
,
"Design"
,
"CAD"
,
"8"
,
""
],
[
""
,
""
,
""
,
""
,
"Part1"
,
"Basic"
,
"CAM-MILL-EDM-MILL"
,
"20-15-8-12"
,
"Design"
],
[
""
,
""
,
""
,
""
,
"Part2"
,
"Basic"
,
"CAM-MIL"
,
"2-4"
,
"Design"
],
[
"Order 3"
,
"2014/03/15"
,
"1"
,
"PM1"
,
"Design"
,
"Design"
,
"CAD"
,
"7"
,
""
],
[
""
,
""
,
""
,
""
,
"Part1"
,
"Basic"
,
"CAM-MILL-EDM-MILL-IM"
,
"12-7-3-6-9"
,
"Design"
],
[
null
,
null
,
null
,
null
,
"Part2"
,
"Basic"
,
"CAM-MILL-EDM-CAM-IM"
,
"20-14-9-3-12"
,
"Design"
],
[
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
]
[
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
]
}
]
}
\ No newline at end of file
dream/simulation/GUI/PartJobShop.py
View file @
39dbf389
...
...
@@ -8,7 +8,7 @@ from datetime import datetime
from
dream.simulation.GUI
import
ACO
from
dream.simulation.GUI.Default
import
schema
MACHINE_TYPE_SET
=
set
([
"Dream.MachineManagedJob"
])
MACHINE_TYPE_SET
=
set
([
"Dream.MachineManagedJob"
,
"Dream.MouldAssembly"
])
class
Simulation
(
ACO
.
Simulation
):
def
getConfigurationDict
(
self
):
...
...
@@ -21,6 +21,14 @@ class Simulation(ACO.Simulation):
"_class"
:
'Dream.MachineManagedJob'
,
"name"
:
'Machine'
}
conf
[
"Dream-MouldAssembly"
]
=
{
"property_list"
:
[
schema
[
"processingTime"
],
schema
[
"failures"
]
],
"_class"
:
'Dream.MouldAssembly'
,
"name"
:
'MouldAss'
}
conf
[
"Dream-QueueManagedJob"
]
=
{
"property_list"
:
[
schema
[
"capacity"
],
...
...
@@ -63,7 +71,7 @@ class Simulation(ACO.Simulation):
conf
[
"Dream-Configuration"
][
"gui"
][
"job_schedule_spreadsheet"
]
=
1
conf
[
"Dream-Configuration"
][
"gui"
][
"job_gantt"
]
=
1
#
conf["Dream-Configuration"]["gui"]["debug_json"] = 1
conf
[
"Dream-Configuration"
][
"gui"
][
"debug_json"
]
=
1
# remove tools that does not make sense here
conf
.
pop
(
'Dream-Machine'
)
...
...
@@ -131,6 +139,13 @@ class Simulation(ACO.Simulation):
route
[
"prerequisites"
]
=
prerequisite_list
route_list
.
append
(
route
)
route_counter
+=
1
"""
if sequence_step == "IM":
route_counter += 1
route_list.append({"stationIdsList": ["E1"],
"stepNumber": "%i" % route_counter})
route_counter += 1
"""
return
route_list
def
getListFromString
(
self
,
my_string
):
...
...
@@ -198,12 +213,20 @@ class Simulation(ACO.Simulation):
processing_time_list
=
processing_time_list
.
split
(
'-'
)
component_dict
=
{}
component_dict
[
"_class"
]
=
"Dream.OrderComponent"
if
part_type
==
"Mould"
:
component_dict
[
"_class"
]
=
"Dream.Mould"
component_dict
[
"componentType"
]
=
part_type
component_dict
[
"id"
]
=
"%i"
%
i
# XXX hack, we use it in UI to retrieve spreadsheet line
component_dict
[
"name"
]
=
part
component_list
.
append
(
component_dict
)
route_list
=
self
.
getRouteList
(
sequence_list
,
processing_time_list
,
prerequisite_list
)
if
part_type
==
"Mould"
:
route_list
=
route_list
[
1
:]
counter
=
0
for
route
in
route_list
:
route
[
"stepNumber"
]
=
"%i"
%
counter
counter
+=
1
component_dict
[
"route"
]
=
route_list
i
+=
1
order_dict
[
"componentsList"
]
=
component_list
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment