Commit 6c116a66 authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Jérome Perrin

extra cotrol for selection of pending entities

parent 4dc6b415
......@@ -257,7 +257,7 @@ class Router(ObjectInterruption):
if entity.currentStation.getActiveObjectQueue().index(entity)==0:
# check the next stations
for machine in entity.currentStation.next:
if machine in G.MachineList and entity.checkIfRequiredPartsReady():
if machine in G.MachineList and entity.checkIfRequiredPartsReady() and entity.currentStation.haveToDispose():
if any(type=='Load' for type in machine.multOperationTypeList) and not entity.currentStation in self.pendingQueues:
self.pendingQueues.append(entity.currentStation)
self.pending.append(entity)
......
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