Commit 171a7542 authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Jérome Perrin

cleanup in Failure

parent 0d4fcbac
...@@ -166,12 +166,10 @@ class Failure(ObjectInterruption): ...@@ -166,12 +166,10 @@ class Failure(ObjectInterruption):
# interrupt the victim # interrupt the victim
self.interruptVictim() # 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 # 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: for oi in self.victim.objectInterruptions:
if oi.__class__ is ShiftScheduler: if oi.expectedSignals['victimFailed']:
if oi.expectedSignals['victimFailed']: self.sendSignal(receiver=oi, signal=oi.victimFailed)
self.sendSignal(receiver=oi, signal=oi.victimFailed)
self.victim.Up=False self.victim.Up=False
self.victim.timeLastFailure=self.env.now self.victim.timeLastFailure=self.env.now
self.outputTrace(self.victim.name,"is down") 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