MachineManagedJob does not update the operatorPool from the...

MachineManagedJob does not update the operatorPool from the canAcceptAndIsRequested but the operatorPool is updated by the OperatorRouter
parent 94b64bfe
...@@ -93,8 +93,6 @@ class MachineManagedJob(MachineJobShop): ...@@ -93,8 +93,6 @@ class MachineManagedJob(MachineJobShop):
# also updates the giver to the one that is to be taken # also updates the giver to the one that is to be taken
# ======================================================================= # =======================================================================
def canAcceptAndIsRequested(self): def canAcceptAndIsRequested(self):
# # TESTING
# print now(), self.id, 'canA$iR'
# get active and giver objects # get active and giver objects
activeObject=self.getActiveObject() activeObject=self.getActiveObject()
activeObjectQueue=self.getActiveObjectQueue() activeObjectQueue=self.getActiveObjectQueue()
...@@ -141,8 +139,8 @@ class MachineManagedJob(MachineJobShop): ...@@ -141,8 +139,8 @@ class MachineManagedJob(MachineJobShop):
self.entityToGet=activeObject.giver.getActiveObjectQueue()[0] self.entityToGet=activeObject.giver.getActiveObjectQueue()[0]
#make the operators List so that it holds only the manager of the current order #make the operators List so that it holds only the manager of the current order
activeObject.operatorPool.operators=[activeObject.giver.getActiveObjectQueue()[0].manager] activeObject.operatorPool.operators=[activeObject.giver.getActiveObjectQueue()[0].manager]
# set the variable operatorAssignedTo to activeObject, the operator is then blocked # # set the variable operatorAssignedTo to activeObject, the operator is then blocked
activeObject.operatorPool.operators[0].operatorAssignedTo=activeObject # activeObject.operatorPool.operators[0].operatorAssignedTo=activeObject
# # TESTING # # TESTING
# print now(), activeObject.operatorPool.operators[0].objName, 'got assigned to', activeObject.id # print now(), activeObject.operatorPool.operators[0].objName, 'got assigned to', activeObject.id
# read the load time of the machine # read the load time of the machine
......
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