Commit 62c35c9e authored by Jérome Perrin's avatar Jérome Perrin

customize some default properties

parent 109b05ad
...@@ -14,22 +14,33 @@ class Simulation(ShiftsSimulation): ...@@ -14,22 +14,33 @@ class Simulation(ShiftsSimulation):
"_class": "Dream.LineClearance", "_class": "Dream.LineClearance",
"name": "Clearance", "name": "Clearance",
"property_list": conf['Dream-Queue']['property_list']} "property_list": conf['Dream-Queue']['property_list']}
batch_source_entity = copy(schema["entity"])
batch_source_entity['_default'] = "Dream.Batch"
conf['Dream-BatchSource'] = { conf['Dream-BatchSource'] = {
"_class": "Dream.BatchSource", "_class": "Dream.BatchSource",
"name": "Source", "name": "Source",
"property_list": conf['Dream-Source']['property_list']\ "property_list": [schema['interarrivalTime'],
+ [schema['batchNumberOfUnits']] batch_source_entity,
schema['batchNumberOfUnits']]
} }
zeroProcessingTime = copy(schema['processingTime'])
for prop in zeroProcessingTime['property_list']:
if prop['id'] == 'mean':
prop['_default']= 0.0
conf['Dream-BatchDecompositionStartTime'] = { conf['Dream-BatchDecompositionStartTime'] = {
"_class": "Dream.BatchDecompositionStartTime", "_class": "Dream.BatchDecompositionStartTime",
"name": "Decomposition", "name": "Decomposition",
"property_list": [schema['processingTime'], schema['numberOfSubBatches'] ] "property_list": [zeroProcessingTime, schema['numberOfSubBatches'] ]
} }
conf['Dream-BatchReassembly'] = { conf['Dream-BatchReassembly'] = {
"_class": "Dream.BatchReassembly", "_class": "Dream.BatchReassembly",
"name": "Reassembly", "name": "Reassembly",
"property_list": [schema['processingTime'], schema['numberOfSubBatches'] ] "property_list": [zeroProcessingTime, schema['numberOfSubBatches'] ]
} }
conf['Dream-BatchScrapMachine'] = { conf['Dream-BatchScrapMachine'] = {
"_class": "Dream.BatchScrapMachine", "_class": "Dream.BatchScrapMachine",
"name": "Station", "name": "Station",
......
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