minor corrections to MachineManagedJob

parent a5eab28d
...@@ -122,8 +122,8 @@ class MachineManagedJob(MachineJobShop): ...@@ -122,8 +122,8 @@ class MachineManagedJob(MachineJobShop):
#=============================================================== #===============================================================
if activeObject.checkIfActive() and len(activeObjectQueue)<activeObject.capacity\ if activeObject.checkIfActive() and len(activeObjectQueue)<activeObject.capacity\
and activeObject.checkOperator()\ and activeObject.checkOperator()\
and not giverObject.exitIsAssigned(): and not giverObject.exitIsAssignedTo():
giverObject.assignExit() giverObject.assignExitTo()
# if the activeObject is not in manager's activeCallersList of the entityToGet # if the activeObject is not in manager's activeCallersList of the entityToGet
if activeObject not in giverObjectQueue[0].manager.activeCallersList: if activeObject not in giverObjectQueue[0].manager.activeCallersList:
# append it to the activeCallerList of the manager of the entity to be received # append it to the activeCallerList of the manager of the entity to be received
...@@ -159,8 +159,8 @@ class MachineManagedJob(MachineJobShop): ...@@ -159,8 +159,8 @@ class MachineManagedJob(MachineJobShop):
# the entityToGet should be updated # the entityToGet should be updated
if activeObject.checkIfActive() and len(activeObjectQueue)<activeObject.capacity:#\ if activeObject.checkIfActive() and len(activeObjectQueue)<activeObject.capacity:#\
# and self.checkOperator()\ # and self.checkOperator()\
# and not activeObject.giver.exitIsAssigned(): # and not activeObject.giver.exitIsAssignedTo():
# activeObject.giver.assignExit() # activeObject.giver.assignExitTo()
# # if the activeObject is not in manager's activeCallersList of the entityToGet # # if the activeObject is not in manager's activeCallersList of the entityToGet
# if self not in activeObject.giver.getActiveObjectQueue()[0].manager.activeCallersList: # if self not in activeObject.giver.getActiveObjectQueue()[0].manager.activeCallersList:
# # append it to the activeCallerList of the manager of the entity to be received # # append it to the activeCallerList of the manager of the entity to be received
......
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