Commit 660b64d6 authored by Georgios Dagkakis's avatar Georgios Dagkakis

wipStatList to collect number of units

parent dd9e4777
......@@ -307,7 +307,10 @@ class CoreObject(ManPyObject):
# update wipStatList
if self.gatherWipStat:
import numpy
self.wipStatList=numpy.concatenate((self.wipStatList,[[self.env.now, len(activeObjectQueue)]]))
wip=0
for holdEntity in activeObjectQueue:
wip+=holdEntity.numberOfUnits
self.wipStatList=numpy.concatenate((self.wipStatList,[[self.env.now, wip]]))
if self.expectedSignals['entityRemoved']:
self.printTrace(self.id, signal='(removedEntity)')
self.sendSignal(receiver=self, signal=self.entityRemoved)
......@@ -463,9 +466,14 @@ class CoreObject(ManPyObject):
self.signalRouter(receiver)
activeObjectQueue.sort(key=lambda x: x==activeEntity, reverse=True)
# update wipStatList
# update wipStatList
if self.gatherWipStat:
import numpy
self.wipStatList=numpy.concatenate((self.wipStatList,[[self.env.now, len(activeObjectQueue)]]))
wip=0
for holdEntity in activeObjectQueue:
wip+=holdEntity.numberOfUnits
self.wipStatList=numpy.concatenate((self.wipStatList,[[self.env.now, wip]]))
#===========================================================================
# find possible receivers
......@@ -609,8 +617,13 @@ class CoreObject(ManPyObject):
activeObject=self.getActiveObject()
activeObjectQueue=self.getActiveObjectQueue()
# update wipStatList
if self.gatherWipStat:
import numpy
self.wipStatList=numpy.concatenate((self.wipStatList,[[self.env.now, len(activeObjectQueue)]]))
wip=0
for holdEntity in activeObjectQueue:
wip+=holdEntity.numberOfUnits
self.wipStatList=numpy.concatenate((self.wipStatList,[[self.env.now, wip]]))
#calculate the offShift time for current entity
offShiftTimeInCurrentEntity=0
......
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