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
7d466347
Commit
7d466347
authored
Feb 27, 2014
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PartJobShop: improve example
parent
b6a5911e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
63 deletions
+61
-63
dream/platform/static/src/dream.js
dream/platform/static/src/dream.js
+0
-2
dream/simulation/Examples/PartJobShop.json
dream/simulation/Examples/PartJobShop.json
+61
-61
No files found.
dream/platform/static/src/dream.js
View file @
7d466347
...
...
@@ -437,7 +437,6 @@
// task_start_date.setDate(task_start_date.getDate() + schedule['entranceTime']);
// for simulation time unit as days hours
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
({
id
:
input_order
[
0
]
+
'
.
'
+
idx
+
'
_
'
+
i
,
text
:
schedule
[
'
stationId
'
],
...
...
@@ -585,7 +584,6 @@
gantt_data
.
data
.
sort
(
function
(
a
,
b
)
{
// sort gantt data in a chronological order
var
result
;
console
.
log
(
"
sorting gantt, a, b
"
,
a
.
start_date
,
b
.
start_date
);
if
(
a
.
start_date
===
undefined
&&
b
.
start_date
!==
undefined
)
{
result
=
1
;
}
else
if
(
a
.
start_date
!==
undefined
&&
b
.
start_date
===
undefined
)
{
...
...
dream/simulation/Examples/PartJobShop.json
View file @
7d466347
{
"edges"
:
{
"con_10"
:
[
"QCAM"
,
"CAM1"
,
{}
],
"con_15"
:
[
"QCAM"
,
"CAM2"
,
{}
],
"con_
20
"
:
[
"con_
15
"
:
[
"QStart"
,
"CAD1"
,
{}
],
"con_2
5
"
:
[
"con_2
0
"
:
[
"CAD1"
,
"Decomposition"
,
{}
],
"con_
30
"
:
[
"con_
25
"
:
[
"CAD2"
,
"Decomposition"
,
{}
],
"con_3
5
"
:
[
"con_3
0
"
:
[
"Decomposition"
,
"QCAM"
,
{}
],
"con_
40
"
:
[
"con_
35
"
:
[
"QMILL"
,
"MILL2"
,
{}
],
"con_4
5
"
:
[
"con_4
0
"
:
[
"QMILL"
,
"MILL1"
,
{}
],
"con_5"
:
[
"con_
4
5"
:
[
"QStart"
,
"CAD2"
,
{}
],
"con_5"
:
[
"QCAM"
,
"CAM1"
,
{}
],
"con_50"
:
[
"QEDM"
,
"EDM"
,
...
...
@@ -95,8 +95,8 @@
"confidenceLevel"
:
"0.95"
,
"currentDate"
:
""
,
"maxSimTime"
:
"-1"
,
"numberOfAntsPerGenerations"
:
"
1
"
,
"numberOfGenerations"
:
"
3
"
,
"numberOfAntsPerGenerations"
:
"
2
"
,
"numberOfGenerations"
:
"
4
"
,
"numberOfReplications"
:
"1"
,
"numberOfSolutions"
:
"4"
,
"processTimeout"
:
"2000"
...
...
@@ -176,16 +176,16 @@
},
"Decomposition"
:
{
"_class"
:
"Dream.OrderDecomposition"
,
"element_id"
:
"DreamNode_
10
"
,
"element_id"
:
"DreamNode_
5
"
,
"name"
:
"Decomposition"
},
"E1"
:
{
"_class"
:
"Dream.ExitJobShop"
,
"element_id"
:
"DreamNode_
5
"
"element_id"
:
"DreamNode_
6
"
},
"EDM"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_
15
"
,
"element_id"
:
"DreamNode_
7
"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
...
...
@@ -203,7 +203,7 @@
},
"IM1"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_
17
"
,
"element_id"
:
"DreamNode_
8
"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
...
...
@@ -221,7 +221,7 @@
},
"IM2"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_
18
"
,
"element_id"
:
"DreamNode_
9
"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
...
...
@@ -239,7 +239,7 @@
},
"MASS1"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_1
9
"
,
"element_id"
:
"DreamNode_1
0
"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
...
...
@@ -257,7 +257,7 @@
},
"MASS2"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_
20
"
,
"element_id"
:
"DreamNode_
11
"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
...
...
@@ -275,7 +275,7 @@
},
"MASS3"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_
21
"
,
"element_id"
:
"DreamNode_
12
"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
...
...
@@ -293,7 +293,7 @@
},
"MILL1"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_1
2
"
,
"element_id"
:
"DreamNode_1
3
"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
...
...
@@ -311,7 +311,7 @@
},
"MILL2"
:
{
"_class"
:
"Dream.MachineManagedJob"
,
"element_id"
:
"DreamNode_1
3
"
,
"element_id"
:
"DreamNode_1
4
"
,
"failures"
:
{
"MTTF"
:
"40"
,
"MTTR"
:
"10"
,
...
...
@@ -329,18 +329,18 @@
},
"PM1"
:
{
"_class"
:
"Dream.Operator"
,
"element_id"
:
"DreamNode_
6
"
,
"element_id"
:
"DreamNode_
15
"
,
"name"
:
"PM1"
},
"PM2"
:
{
"_class"
:
"Dream.Operator"
,
"element_id"
:
"DreamNode_
7
"
,
"element_id"
:
"DreamNode_
16
"
,
"name"
:
"PM2"
},
"QCAM"
:
{
"_class"
:
"Dream.ConditionalBuffer"
,
"capacity"
:
"1"
,
"element_id"
:
"DreamNode_
8
"
,
"element_id"
:
"DreamNode_
17
"
,
"isDummy"
:
"0"
,
"name"
:
"QCAM"
,
"schedulingRule"
:
"FIFO"
...
...
@@ -348,7 +348,7 @@
"QEDM"
:
{
"_class"
:
"Dream.QueueManagedJob"
,
"capacity"
:
"1"
,
"element_id"
:
"DreamNode_1
4
"
,
"element_id"
:
"DreamNode_1
8
"
,
"isDummy"
:
"0"
,
"name"
:
"QEDM"
,
"schedulingRule"
:
"FIFO"
...
...
@@ -356,7 +356,7 @@
"QIM"
:
{
"_class"
:
"Dream.QueueManagedJob"
,
"capacity"
:
"1"
,
"element_id"
:
"DreamNode_1
6
"
,
"element_id"
:
"DreamNode_1
9
"
,
"isDummy"
:
"0"
,
"name"
:
"QIM"
,
"schedulingRule"
:
"FIFO"
...
...
@@ -364,7 +364,7 @@
"QMASS"
:
{
"_class"
:
"Dream.QueueManagedJob"
,
"capacity"
:
"1"
,
"element_id"
:
"DreamNode_2
2
"
,
"element_id"
:
"DreamNode_2
0
"
,
"isDummy"
:
"0"
,
"name"
:
"QMASS"
,
"schedulingRule"
:
"FIFO"
...
...
@@ -372,7 +372,7 @@
"QMILL"
:
{
"_class"
:
"Dream.QueueManagedJob"
,
"capacity"
:
"-1"
,
"element_id"
:
"DreamNode_
1
1"
,
"element_id"
:
"DreamNode_
2
1"
,
"isDummy"
:
"0"
,
"name"
:
"QMILL"
,
"schedulingRule"
:
"FIFO"
...
...
@@ -380,7 +380,7 @@
"QStart"
:
{
"_class"
:
"Dream.QueueManagedJob"
,
"capacity"
:
"1"
,
"element_id"
:
"DreamNode_
9
"
,
"element_id"
:
"DreamNode_
22
"
,
"isDummy"
:
"0"
,
"name"
:
"QStart"
,
"schedulingRule"
:
"FIFO"
...
...
@@ -510,7 +510,7 @@
"2014/03/15"
,
"1"
,
"PM1"
,
"
Mould1
Design"
,
"Design"
,
"Design"
,
"CAD"
,
"6"
,
...
...
@@ -525,7 +525,7 @@
"Basic"
,
"CAM-MILL-EDM-MILL-IM"
,
"8-4-2-8-12"
,
null
"Design"
],
[
null
,
...
...
@@ -536,7 +536,7 @@
"Basic"
,
"CAM-MILL-EDM-CAM-IM"
,
"20-15-8-4-13"
,
""
"
Design
"
],
[
""
,
...
...
@@ -547,17 +547,17 @@
"Basic"
,
"MASS-IM"
,
"8-12"
,
""
"
Part1-Part2
"
],
[
"Order 2"
,
"2014/03/15"
,
"1"
,
"PM1"
,
"
Mould1
Design"
,
"Design"
,
"Design"
,
"CAD"
,
"
2
"
,
"
8
"
,
""
],
[
...
...
@@ -567,9 +567,9 @@
""
,
"Part1"
,
"Basic"
,
"CAM"
,
"
4
"
,
""
"CAM
-MILL-EDM-MILL
"
,
"
20-15-8-12
"
,
"
Design
"
],
[
""
,
...
...
@@ -578,16 +578,16 @@
""
,
"Part2"
,
"Basic"
,
"CAM"
,
"
3
"
,
""
"CAM
-MIL
"
,
"
2-4
"
,
"
Design
"
],
[
"Order 3"
,
"2014/03/15"
,
"1"
,
"PM1"
,
"
Mould1
Design"
,
"Design"
,
"Design"
,
"CAD"
,
"2"
,
...
...
@@ -600,9 +600,9 @@
""
,
"Part1"
,
"Basic"
,
"CAM"
,
"
4
"
,
""
"CAM
-MILL-EDM-MILL-IM
"
,
"
12-7-3-6-9
"
,
"
Design
"
],
[
""
,
...
...
@@ -611,20 +611,20 @@
""
,
"Part2"
,
"Basic"
,
"CAM"
,
"
3
"
,
""
"CAM
-MILL-EDM-CAM-IM
"
,
"
20-14-9-3-12
"
,
"
Design
"
],
[
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
]
]
}
}
\ No newline at end of file
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