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
ced624d9
Commit
ced624d9
authored
Feb 27, 2014
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PartJobShop: use MouldAssemblyBuffer insteaf of queue
parent
138b37b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
50 deletions
+57
-50
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
+47
-47
dream/simulation/GUI/PartJobShop.py
dream/simulation/GUI/PartJobShop.py
+9
-2
No files found.
dream/platform/static/css/demo-new.css
View file @
ced624d9
...
@@ -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%
);
...
...
dream/simulation/Examples/PartJobShop.json
View file @
ced624d9
{
{
"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_2
5
"
:
[
"con_2
0
"
:
[
"CAD2"
,
"CAD2"
,
"Decomposition"
,
"Decomposition"
,
{}
{}
],
],
"con_
30
"
:
[
"con_
25
"
:
[
"Decomposition"
,
"Decomposition"
,
"QCAM"
,
"QCAM"
,
{}
{}
],
],
"con_3
5
"
:
[
"con_3
0
"
:
[
"QMILL"
,
"QMILL"
,
"MILL2"
,
"MILL2"
,
{}
{}
],
],
"con_
40
"
:
[
"con_
35
"
:
[
"QMILL"
,
"QMILL"
,
"MILL1"
,
"MILL1"
,
{}
{}
],
],
"con_4
5
"
:
[
"con_4
0
"
:
[
"QStart"
,
"QStart"
,
"CAD2"
,
"CAD2"
,
{}
{}
],
],
"con_5"
:
[
"con_
4
5"
:
[
"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_8
5
"
:
[
"con_8
2
"
:
[
"
MASS2
"
,
"
QMASS
"
,
"
QIM
"
,
"
MASS1
"
,
{}
{}
],
],
"con_9
0
"
:
[
"con_9
5
"
:
[
"
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_2
0
"
,
"element_id"
:
"DreamNode_2
2
"
,
"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_2
1
"
,
"element_id"
:
"DreamNode_2
0
"
,
"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_2
2
"
,
"element_id"
:
"DreamNode_2
1
"
,
"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.3
8256911560405105
,
"left"
:
0.3
9359833360679664
,
"top"
:
0.7
012616778705337
"top"
:
0.7
621221762426658
},
},
"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
dream/simulation/GUI/PartJobShop.py
View file @
ced624d9
...
@@ -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
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