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
adc27dc6
Commit
adc27dc6
authored
Jan 26, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expose more configuration options
parent
5b6f57d3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
9 deletions
+19
-9
dream/simulation/GUI/Default.py
dream/simulation/GUI/Default.py
+8
-9
dream/simulation/GUI/JobShop.py
dream/simulation/GUI/JobShop.py
+6
-0
dream/simulation/GUI/Shifts.py
dream/simulation/GUI/Shifts.py
+5
-0
No files found.
dream/simulation/GUI/Default.py
View file @
adc27dc6
...
...
@@ -205,18 +205,17 @@ class Simulation(object):
schema
[
"confidenceLevel"
],
schema
[
"processTimeout"
]
],
"gui"
:
{
'wip_spreadsheet'
:
0
,
'shift_spreadsheet'
:
0
,
'station_utilisation_graph'
:
1
,
'job_schedule_spreadsheet'
:
0
,
'job_gantt'
:
0
,
},
"_class"
:
'Dream.Configuration'
},
}
def
getOutputIdList
(
self
):
"""Returns the enabled outputs
(the divs ?)
"""
def
getInputIdList
(
self
):
"""Returns the enabled inputs
"""
def
run
(
self
,
data
):
return
json
.
loads
(
simulate_line_json
(
input_data
=
json
.
dumps
(
data
)))
dream/simulation/GUI/JobShop.py
View file @
adc27dc6
...
...
@@ -7,6 +7,12 @@ import operator
from
dream.simulation.GUI
import
ACO
class
Simulation
(
ACO
.
Simulation
):
def
getConfigurationDict
(
self
):
conf
=
ACO
.
Simulation
.
getConfigurationDict
(
self
)
conf
[
"Dream-Configuration"
][
"gui"
][
"wip_spreasheet"
]
=
1
conf
[
"Dream-Configuration"
][
"gui"
][
"job_schedule_spreadsheet"
]
=
1
conf
[
"Dream-Configuration"
][
"gui"
][
"job_gantt"
]
=
1
return
conf
def
_preprocess
(
self
,
in_data
):
""" Set the WIP in queue from spreadsheet data.
...
...
dream/simulation/GUI/Shifts.py
View file @
adc27dc6
...
...
@@ -8,6 +8,11 @@ from dream.simulation.GUI.Default import Simulation as DefaultSimulation
class
Simulation
(
DefaultSimulation
):
def
getConfigurationDict
(
self
):
conf
=
DefaultSimulation
.
getConfigurationDict
(
self
)
conf
[
"Dream-Configuration"
][
"gui"
][
"shift_spreadsheet"
]
=
1
return
conf
def
_preprocess
(
self
,
data
):
"""Preprocess data, reading shift spreadsheet"""
# TODO
...
...
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