Commit 2e30e810 authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Jérome Perrin

MachineManagedJob modified to update the manager correctly with sorting before the manager loading

parent 79c06f68
...@@ -120,7 +120,10 @@ class MachineManagedJob(MachineJobShop): ...@@ -120,7 +120,10 @@ class MachineManagedJob(MachineJobShop):
and not activeObject.giver.exitIsAssigned(): and not activeObject.giver.exitIsAssigned():
activeObject.giver.assignExit() activeObject.giver.assignExit()
#make the operatorsList so that it holds only the manager of the current order #make the operatorsList so that it holds only the manager of the current order
activeObject.operatorPool.operatorsList=[activeObject.giver.getActiveObjectQueue()[0].manager] # activeObject.operatorPool.operatorsList=[activeObject.giver.getActiveObjectQueue()[0].manager]
# TODO: think over the next line, this way sort entity is run multiple times throughout the life-span of
# an entity in the object. Maybe would be a good idea to pick the entity to be disposed from the giver
activeObject.giver.sortEntities()
activeObject.operatorPool.operators=[activeObject.giver.getActiveObjectQueue()[0].manager] activeObject.operatorPool.operators=[activeObject.giver.getActiveObjectQueue()[0].manager]
self.readLoadTime() self.readLoadTime()
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