reactivate victim of ObjectInterruption now signals the victim with an interruptionEnd event

parent a71f581e
......@@ -111,3 +111,10 @@ class Failure(ObjectInterruption):
if(self.repairman and self.repairman!="None"): #if a resource was used, it is now released
yield release,self,self.repairman.getResource()
self.repairman.totalWorkingTime+=now()-timeOperationStarted
#===========================================================================
# interrupts the victim
#===========================================================================
def interruptVictim(self):
ObjectInterruption.interrupt(self)
# TODO: check whether it is a good idea to update the failure timers here
\ No newline at end of file
......@@ -89,7 +89,8 @@ class ObjectInterruption(Process):
#reactivate the victim
def reactivateVictim(self):
reactivate(self.victim)
self.victim.interruptionEnd.signal(victim)
# reactivate(self.victim)
#outputs message to the trace.xls. Format is (Simulation Time | Victim Name | message)
def outputTrace(self, message):
......
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