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
Expand all
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
This diff is collapsed.
Click to expand it.
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