Commit e128b1a6 authored by Georgios Dagkakis's avatar Georgios Dagkakis

wipStatList to be gathered also for every replication

parent ba373891
...@@ -88,6 +88,8 @@ class CoreObject(ManPyObject): ...@@ -88,6 +88,8 @@ class CoreObject(ManPyObject):
} }
# flag notifying the the station can deliver entities that ended their processing while interrupted # flag notifying the the station can deliver entities that ended their processing while interrupted
self.canDeliverOnInterruption=False self.canDeliverOnInterruption=False
# keep wip stats for every replication
self.WipStat=[]
def initialize(self): def initialize(self):
from Globals import G from Globals import G
...@@ -660,6 +662,7 @@ class CoreObject(ManPyObject): ...@@ -660,6 +662,7 @@ class CoreObject(ManPyObject):
activeObject.Loading.append(100*self.totalLoadTime/MaxSimtime) activeObject.Loading.append(100*self.totalLoadTime/MaxSimtime)
activeObject.SettingUp.append(100*self.totalSetupTime/MaxSimtime) activeObject.SettingUp.append(100*self.totalSetupTime/MaxSimtime)
activeObject.OffShift.append(100*self.totalOffShiftTime/MaxSimtime) activeObject.OffShift.append(100*self.totalOffShiftTime/MaxSimtime)
activeObject.WipStat.append(self.wipStatList)
# ======================================================================= # =======================================================================
# outputs results to JSON File # outputs results to JSON File
......
...@@ -62,8 +62,6 @@ class Queue(CoreObject): ...@@ -62,8 +62,6 @@ class Queue(CoreObject):
(scheduling_rule, id)) (scheduling_rule, id))
self.gatherWipStat=gatherWipStat self.gatherWipStat=gatherWipStat
# Will be populated by an event generator
self.wip_stat_list = []
# trigger level for the reallocation of operators # trigger level for the reallocation of operators
if level: if level:
assert level<=self.capacity, "the level cannot be bigger than the capacity of the queue" assert level<=self.capacity, "the level cannot be bigger than the capacity of the queue"
...@@ -326,10 +324,6 @@ class Queue(CoreObject): ...@@ -326,10 +324,6 @@ class Queue(CoreObject):
'id': str(self.id), 'id': str(self.id),
'family': self.family, 'family': self.family,
'results': {} } 'results': {} }
# XXX this have to be updated to support multiple generations if self.gatherWipStat:
# if G.numberOfReplications == 1 and self.wip_stat_list: json['results']['wip_stat_list']=self.WipStat
# json['wip_stat_list'] = self.wip_stat_list
# XXX this have to be updated to support multiple generations
if G.numberOfReplications == 1 and self.gatherWipStat:
json['results']['wip_stat_list']=self.wipStatList
G.outputJSON['elementList'].append(json) G.outputJSON['elementList'].append(json)
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