Commit ea3080d8 authored by Jérome Perrin's avatar Jérome Perrin

drop countQueueMetrics EG as core objects now have this functionality built in

parent 52ad3eb4
......@@ -379,17 +379,6 @@
"name": "StartQueue",
"schedulingRule": "FIFO"
},
"Queues": {
"_class": "Dream.EventGenerator",
"argumentDict": "{}",
"duration": 10,
"element_id": "DreamNode_27",
"interval": 10,
"method": "Globals.countQueueMetrics",
"name": "Queues",
"start": 1,
"stop": -1
},
"S1": {
"_class": "Dream.BatchSource",
"batchNumberOfUnits": 100,
......
......@@ -364,17 +364,6 @@ class Simulation(object):
"""
# by default we add an event generator if using queue stats
if self.getConfigurationDict()["Dream-Configuration"]["gui"]["queue_stat"]:
if not "__queue_stat" in data["nodes"]:
data["nodes"]["__queue_stat"] = {
"_class": "Dream.EventGenerator",
"argumentDict": "{}",
"duration": 10,
"interval": 10,
"method": "Globals.countQueueMetrics",
"name": "Queue Statistics",
"start": 1,
"stop": -1
}
for node in data["nodes"].values():
if node['_class'] in ('Dream.Queue', ):
node['gatherWipStat'] = 1
......
......@@ -256,13 +256,6 @@ def countIntervalThroughput(argumentDict={}):
obj.intervalThroughPutList.append(currentExited)
from Queue import Queue
def countQueueMetrics(argumentDict={}):
for obj in G.ObjList:
if isinstance(obj, Queue):
obj.wipStatList.append((G.env.now, len(obj.Res.users)))
# =======================================================================
# Helper function to calculate the confidence intervals of a serie.
# =======================================================================
......
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