Commit aa8548ab authored by Georgios Dagkakis's avatar Georgios Dagkakis

cleanup in Failure

parent ea7a69d3
......@@ -166,12 +166,10 @@ class Failure(ObjectInterruption):
# interrupt the victim
self.interruptVictim() # interrupt the victim
from ShiftScheduler import ShiftScheduler
# check in the ObjectInterruptions of the victim. If there is a one that is waiting for victimFailed send it
for oi in self.victim.objectInterruptions:
if oi.__class__ is ShiftScheduler:
if oi.expectedSignals['victimFailed']:
self.sendSignal(receiver=oi, signal=oi.victimFailed)
if oi.expectedSignals['victimFailed']:
self.sendSignal(receiver=oi, signal=oi.victimFailed)
self.victim.Up=False
self.victim.timeLastFailure=self.env.now
self.outputTrace(self.victim.name,"is down")
......
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