Commit 1ce56521 authored by Georgios Dagkakis's avatar Georgios Dagkakis

comments added

parent 8f7596f9
......@@ -441,6 +441,7 @@ class Machine(CoreObject):
self.expectedSignals['processOperatorUnavailable']=1
# dummy variable to keep track of the time that the operation starts after every interruption
# update timeLastOperationStarted both for Machine and Operator (if any)
self.timeLastOperationStarted=self.env.now
if self.currentOperator:
self.currentOperator.timeLastOperationStarted=self.env.now
......@@ -838,6 +839,7 @@ class Machine(CoreObject):
self.shouldPreempt=False
# reset the variables used to handle the interruptions timing
self.breakTime=0
# update totalWorking time for operator and also print trace
if self.currentOperator:
operator=self.currentOperator
self.outputTrace(operator.name, "ended a process in "+ self.objName)
......
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