Commit 3b0ef881 authored by Georgios Dagkakis's avatar Georgios Dagkakis

break to inform SkilledRouter if it expects for finish-processing signals

parent 3bad52d0
......@@ -89,8 +89,17 @@ class ScheduledBreak(ObjectInterruption):
# signal to the station that the operator has to leave
station=self.victim.workingStation
if station:
# signal the station that operator left
if not self.endUnfinished and station.expectedSignals['processOperatorUnavailable']:
self.sendSignal(receiver=station, signal=station.processOperatorUnavailable)
# if SkilledRouter waits for the station to finish, send this signal to this router
from Globals import G
from dream.simulation.SkilledOperatorRouter import SkilledRouter
if G.RouterList[0].__class__ is SkilledRouter:
if station.id in G.RouterList[0].expectedFinishSignalsDict.keys():
print 'I must send for',station.id
self.sendSignal(receiver=G.RouterList[0], signal=G.RouterList[0].expectedFinishSignalsDict[station.id],
sender=station)
if self.victim.schedule:
if not self.victim.schedule[-1].get("exitTime", None):
self.victim.schedule[-1]["exitTime"] = self.env.now
......
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