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
e128b1a6
Commit
e128b1a6
authored
Feb 09, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wipStatList to be gathered also for every replication
parent
ba373891
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
dream/simulation/CoreObject.py
dream/simulation/CoreObject.py
+3
-0
dream/simulation/Queue.py
dream/simulation/Queue.py
+2
-8
No files found.
dream/simulation/CoreObject.py
View file @
e128b1a6
...
...
@@ -88,6 +88,8 @@ class CoreObject(ManPyObject):
}
# flag notifying the the station can deliver entities that ended their processing while interrupted
self
.
canDeliverOnInterruption
=
False
# keep wip stats for every replication
self
.
WipStat
=
[]
def
initialize
(
self
):
from
Globals
import
G
...
...
@@ -660,6 +662,7 @@ class CoreObject(ManPyObject):
activeObject
.
Loading
.
append
(
100
*
self
.
totalLoadTime
/
MaxSimtime
)
activeObject
.
SettingUp
.
append
(
100
*
self
.
totalSetupTime
/
MaxSimtime
)
activeObject
.
OffShift
.
append
(
100
*
self
.
totalOffShiftTime
/
MaxSimtime
)
activeObject
.
WipStat
.
append
(
self
.
wipStatList
)
# =======================================================================
# outputs results to JSON File
...
...
dream/simulation/Queue.py
View file @
e128b1a6
...
...
@@ -62,8 +62,6 @@ class Queue(CoreObject):
(
scheduling_rule
,
id
))
self
.
gatherWipStat
=
gatherWipStat
# Will be populated by an event generator
self
.
wip_stat_list
=
[]
# trigger level for the reallocation of operators
if
level
:
assert
level
<=
self
.
capacity
,
"the level cannot be bigger than the capacity of the queue"
...
...
@@ -326,10 +324,6 @@ class Queue(CoreObject):
'id'
:
str
(
self
.
id
),
'family'
:
self
.
family
,
'results'
:
{}
}
# XXX this have to be updated to support multiple generations
# if G.numberOfReplications == 1 and self.wip_stat_list:
# 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
if
self
.
gatherWipStat
:
json
[
'results'
][
'wip_stat_list'
]
=
self
.
WipStat
G
.
outputJSON
[
'elementList'
].
append
(
json
)
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