Commit b0bfb237 authored by Georgios Dagkakis's avatar Georgios Dagkakis

new objects to be able to accept wip

parent 9aae101d
......@@ -289,7 +289,8 @@ def setWIP(entityList):
if G.env.now==0 and entity.currentStation:
if entity.currentStation.class_name:
stationClass=entity.currentStation.__class__.__name__
if stationClass in ['Machine', 'BatchScrapMachine', 'MachineJobShop','BatchDecomposition', 'BatchReassembly','M3']:
if stationClass in ['Machine', 'BatchScrapMachine', 'MachineJobShop','BatchDecomposition', 'BatchReassembly','M3',
'BatchReassemblyBlocking','BatchDecompositionBlocking']:
entity.currentStation.currentEntity=entity
# trigger initialWIP event only if it has not been triggered. Otherwise
# if we set more than one entities (e.g. in reassembly) it will crash
......
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