Commit b7472ae0 authored by Georgios Dagkakis's avatar Georgios Dagkakis

correction in Machine

parent faf750af
...@@ -880,12 +880,10 @@ class Machine(CoreObject): ...@@ -880,12 +880,10 @@ class Machine(CoreObject):
# XXX add the SkilledOperatorRouter to this list and perform the signalling only once # XXX add the SkilledOperatorRouter to this list and perform the signalling only once
for interruption in (G.ObjectInterruptionList): for interruption in (G.ObjectInterruptionList):
# if the objectInterruption is waiting for a a signal # if the objectInterruption is waiting for a a signal
if interruption.victim==self and interruption.waitingSignal: if interruption.victim==self and interruption.expectedSignals['endedLastProcessing']:
# signal it and reset the flags self.sendSignal(receiver=self, signal=self.endedLastProcessing)
if interruption.expectedSignals['endedLastProcessing']: interruption.waitingSignal=False
self.sendSignal(receiver=self, signal=self.endedLastProcessing) self.isWorkingOnTheLast=False
interruption.waitingSignal=False
self.isWorkingOnTheLast=False
# set timeLastShiftEnded attribute so that if it is overtime working it is not counted as off-shift time # set timeLastShiftEnded attribute so that if it is overtime working it is not counted as off-shift time
if self.interruptedBy=='ShiftScheduler': if self.interruptedBy=='ShiftScheduler':
self.timeLastShiftEnded=self.env.now self.timeLastShiftEnded=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