Commit 7a306a97 authored by Georgios Dagkakis's avatar Georgios Dagkakis

comments

parent 903bdadc
...@@ -229,7 +229,7 @@ class SkilledRouter(Router): ...@@ -229,7 +229,7 @@ class SkilledRouter(Router):
#=================================================================== #===================================================================
# # XXX signal the stations that the assignment is complete # # XXX signal the stations that the assignment is complete
#=================================================================== #===================================================================
# the stations that # if the operator is free the station can be signalled right away
stationsProcessingLast=[] stationsProcessingLast=[]
toBeSignalled=list(self.toBeSignalled) toBeSignalled=list(self.toBeSignalled)
for station in toBeSignalled: for station in toBeSignalled:
...@@ -241,7 +241,8 @@ class SkilledRouter(Router): ...@@ -241,7 +241,8 @@ class SkilledRouter(Router):
continue continue
# signal the station so that it gets the operator # signal the station so that it gets the operator
self.signalStation(station, operator) self.signalStation(station, operator)
# else wait for signals that operator became available and signal the stations
self.expectedFinishSignalsDict={} self.expectedFinishSignalsDict={}
self.expectedFinishSignals=[] self.expectedFinishSignals=[]
for station in stationsProcessingLast: for station in stationsProcessingLast:
......
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