minor clean-up

parent df1fff32
......@@ -360,9 +360,9 @@ class Router(ObjectInterruption):
# if there are pendingEntities
if self.pendingObjects:
# for each pendingObject
for object in self.pendingObjects:
# if it is a machine
if object in self.pendingMachines:
# for each pendingMachine
for object in self.pendingMachines:
# if object in self.pendingMachines:
# find an available operator
candidateOperator=object.operatorPool.findAvailableOperator()
# TODO: this way no sorting is performed
......@@ -370,11 +370,11 @@ class Router(ObjectInterruption):
self.candidateOperators.append(candidateOperator)
# for each operator append the station into its candidateStations
candidateOperator.candidateStations.append(object)
# if it is a queue
elif object in self.pendingQueues:
# for each pendingQueue
for object in self.pendingQueues:
# elif object in self.pendingQueues:
# find available operator for then machines that follow
for nextobject in object.next:
if nextobject.canAccept(object):
for nextobject in object.findReceivers():
candidateOperator=nextobject.operatorPool.findAvailableOperator()
if not candidateOperator in self.candidateOperators:
self.candidateOperators.append(candidateOperator)
......
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