Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
ea3080d8
Commit
ea3080d8
authored
Jun 05, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drop countQueueMetrics EG as core objects now have this functionality built in
parent
52ad3eb4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
29 deletions
+0
-29
dream/simulation/Examples/Batch_example.json
dream/simulation/Examples/Batch_example.json
+0
-11
dream/simulation/GUI/Default.py
dream/simulation/GUI/Default.py
+0
-11
dream/simulation/Globals.py
dream/simulation/Globals.py
+0
-7
No files found.
dream/simulation/Examples/Batch_example.json
View file @
ea3080d8
...
...
@@ -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
,
...
...
dream/simulation/GUI/Default.py
View file @
ea3080d8
...
...
@@ -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
...
...
dream/simulation/Globals.py
View file @
ea3080d8
...
...
@@ -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.
# =======================================================================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment