Commit f4c385a8 authored by Georgios Dagkakis's avatar Georgios Dagkakis

correction in SkilledOperatorRouter

parent 91601324
...@@ -231,7 +231,8 @@ class SkilledRouter(Router): ...@@ -231,7 +231,8 @@ class SkilledRouter(Router):
#=================================================================== #===================================================================
# the stations that # the stations that
stationsProcessingLast=[] stationsProcessingLast=[]
for station in self.toBeSignalled: toBeSignalled=list(self.toBeSignalled)
for station in toBeSignalled:
# check if the operator that the station waits for is free # check if the operator that the station waits for is free
operator=station.operatorToGet operator=station.operatorToGet
if operator.workingStation: if operator.workingStation:
...@@ -240,7 +241,7 @@ class SkilledRouter(Router): ...@@ -240,7 +241,7 @@ 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)
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