@@ -480,11 +479,11 @@ class OperatedMachine(Machine):
...
@@ -480,11 +479,11 @@ class OperatedMachine(Machine):
# and activeObject.Up and len(activeObjectQueue)<activeObject.capacity\
# and activeObject.Up and len(activeObjectQueue)<activeObject.capacity\
# and giverObject.haveToDispose()
# and giverObject.haveToDispose()
# dummy variables that help prioritize the objects requesting to give objects to the Machine (activeObject)
# dummy variables that help prioritise the objects requesting to give objects to the Machine (activeObject)
isRequested=False# is requested is dummyVariable checking if it is requested to accept an item
isRequested=False# is requested is dummyVariable checking if it is requested to accept an item
maxTimeWaiting=0# dummy variable counting the time a predecessor is blocked
maxTimeWaiting=0# dummy variable counting the time a predecessor is blocked
# loop through the possible givers to see which have to dispose and which is the one blocked for longer # index used to set the predecessorIndex to the giver waiting the most
# loop through the possible givers to see which have to dispose and which is the one blocked for longer
forobjectinactiveObject.previous:
forobjectinactiveObject.previous:
if(object.haveToDispose(activeObject)):# and not object.exitIsAssigned()):
if(object.haveToDispose(activeObject)):# and not object.exitIsAssigned()):
isRequested=True# if the possible giver have entities to dispose of
isRequested=True# if the possible giver have entities to dispose of
...
@@ -501,8 +500,8 @@ class OperatedMachine(Machine):
...
@@ -501,8 +500,8 @@ class OperatedMachine(Machine):