Commit 5ed0999b authored by Jérome Perrin's avatar Jérome Perrin

Only show jobshop stations in jobshop mode

parent 8392366b
......@@ -174,24 +174,6 @@ class Simulation(object):
"Dream-Exit": {
"_class": 'Dream.Exit'
},
"Dream-MachineJobShop": {
"property_list": [
schema["processingTime"],
schema["failures"]
],
"_class": 'Dream.MachineJobShop'
},
"Dream-QueueJobShop": {
"property_list": [
schema["capacity"],
schema["isDummy"],
schema["schedulingRule"]
],
"_class": 'Dream.QueueJobShop'
},
"Dream-ExitJobShop": {
"_class": 'Dream.ExitJobShop'
},
"Dream-Repairman": {
"property_list": [schema["capacity"]],
"_class": 'Dream.Repairman'
......
......@@ -5,10 +5,30 @@ import random
import operator
from dream.simulation.GUI import ACO
from dream.simulation.GUI.Default import schema
class Simulation(ACO.Simulation):
def getConfigurationDict(self):
conf = ACO.Simulation.getConfigurationDict(self)
conf["Dream-MachineJobShop"] = {
"property_list": [
schema["processingTime"],
schema["failures"]
],
"_class": 'Dream.MachineJobShop'
}
conf["Dream-QueueJobShop"] = {
"property_list": [
schema["capacity"],
schema["isDummy"],
schema["schedulingRule"]
],
"_class": 'Dream.QueueJobShop'
}
conf["Dream-ExitJobShop"] = {
"_class": 'Dream.ExitJobShop'
}
# XXX remove default machines etc ?
conf["Dream-Configuration"]["gui"]["wip_spreasheet"] = 1
conf["Dream-Configuration"]["gui"]["job_schedule_spreadsheet"] = 1
conf["Dream-Configuration"]["gui"]["job_gantt"] = 1
......
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