Commit 63d2f0c2 authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Georgios Dagkakis

signalling in operation process corrected

parent a13b5330
...@@ -659,9 +659,8 @@ class Machine(CoreObject): ...@@ -659,9 +659,8 @@ class Machine(CoreObject):
if interruption.victim==self and interruption.waitingSignal: if interruption.victim==self and interruption.waitingSignal:
# signal it and reset the flags # signal it and reset the flags
if interruption.expectedSignals['endedLastProcessing']: if interruption.expectedSignals['endedLastProcessing']:
succeedTuple=(self,self.env.now) self.sendSignal(receiver=self, signal=self.endedLastProcessing)
self.endedLastProcessing.succeed(succeedTuple) interruption.waitingSignal=False
interruption.waitinSignal=False
self.isWorkingOnTheLast=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':
...@@ -958,8 +957,6 @@ class Machine(CoreObject): ...@@ -958,8 +957,6 @@ class Machine(CoreObject):
else: else:
processingNotFinished=False processingNotFinished=False
# carry on actions that have to take place when an Entity ends its processing # carry on actions that have to take place when an Entity ends its processing
self.endProcessingActions() self.endProcessingActions()
#=================================================================== #===================================================================
......
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