minor fix to entitiesFinishedMoving of OpratorRouter

parent 9191b0f3
...@@ -152,6 +152,8 @@ class Router(ObjectInterruption): ...@@ -152,6 +152,8 @@ class Router(ObjectInterruption):
# pending entities are entities about to enter an other machine, updated by endProcessingActions() # pending entities are entities about to enter an other machine, updated by endProcessingActions()
# if there are any pending entities # if there are any pending entities
if len(G.pendingEntities): if len(G.pendingEntities):
# local variable
allEntitiesMoved=False
# for each one of them # for each one of them
for entity in G.pendingEntities: for entity in G.pendingEntities:
# if they are residing in a machine which waits to dispose and is functional # if they are residing in a machine which waits to dispose and is functional
...@@ -169,12 +171,16 @@ class Router(ObjectInterruption): ...@@ -169,12 +171,16 @@ class Router(ObjectInterruption):
elif entity.currentStation in G.QueueList: elif entity.currentStation in G.QueueList:
# if the hot flag of the entity is raised # if the hot flag of the entity is raised
if entity.hot: if entity.hot:
return True allEntitiesMoved=True
# return True
else: else:
return False return False
elif entity.currentStation in G.OrderDecompositionList: elif entity.currentStation in G.OrderDecompositionList:
return False return False
# TODO: this list can check all the available object in G.objList # TODO: this list can check all the available object in G.objList
# if no entity returned False then return True
if allEntitiesMoved:
return True
return True return True
# ======================================================================= # =======================================================================
......
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