Commit adc27dc6 authored by Jérome Perrin's avatar Jérome Perrin

expose more configuration options

parent 5b6f57d3
......@@ -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)))
......@@ -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.
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment