Commit 892fa3bf authored by Georgios Dagkakis's avatar Georgios Dagkakis

correction in Operator.postProcessing

parent 65f96937
......@@ -325,11 +325,12 @@ class Operator(ObjectResource):
if not self.onShift and len(self.getResourceQueue())==0:
self.totalOffShiftTime+=self.env.now-self.timeLastShiftEnded
# Repairman was idle when he was not in any other state
# Operator was idle when he was not in any other state
self.totalWaitingTime=MaxSimtime-self.totalWorkingTime-self.totalOffShiftTime
# update the waiting/working time percentages lists
self.Waiting.append(100*self.totalWaitingTime/MaxSimtime)
self.Working.append(100*self.totalWorkingTime/MaxSimtime)
self.OffShift.append(100*self.totalOffShiftTime/MaxSimtime)
# =======================================================================
# outputs data to "output.xls"
......
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