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
10a3b9aa
Commit
10a3b9aa
authored
Feb 06, 2014
by
Georgios Dagkakis
Committed by
Jérome Perrin
Feb 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
naming convention changes in objects. dailyThroughput->IntervalThrouput
parent
d144bec8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
dream/simulation/Exit.py
dream/simulation/Exit.py
+4
-3
dream/simulation/Globals.py
dream/simulation/Globals.py
+3
-3
dream/simulation/JSONInputs/Topology48.json
dream/simulation/JSONInputs/Topology48.json
+1
-1
No files found.
dream/simulation/Exit.py
View file @
10a3b9aa
...
...
@@ -67,7 +67,7 @@ class Exit(CoreObject):
self
.
totalTaktTime
=
0
# the total time between to consecutive exits
self
.
TaktTime
=
[]
# list that holds the avg time between to consecutive exits
self
.
daily
ThroughPutList
=
[]
self
.
interval
ThroughPutList
=
[]
def
run
(
self
):
...
...
@@ -213,8 +213,9 @@ class Exit(CoreObject):
json
[
'results'
][
'throughput'
]
=
self
.
numOfExits
if
self
.
totalNumberOfUnitsExited
!=
self
.
numOfExits
:
#output this only if there was variability in units
json
[
'results'
][
'unitsThroughput'
]
=
self
.
totalNumberOfUnitsExited
if
len
(
self
.
dailyThroughPutList
):
json
[
'results'
][
'dailyThroughputList'
]
=
self
.
dailyThroughPutList
if
len
(
self
.
intervalThroughPutList
):
#output this only if there is an interval throughput
#TODO - check how to output in stochastic cases
json
[
'results'
][
'dailyThroughputList'
]
=
self
.
intervalThroughPutList
json
[
'results'
][
'lifespan'
]
=
self
.
Lifespan
[
0
]
json
[
'results'
][
'takt_time'
]
=
self
.
TaktTime
[
0
]
...
...
dream/simulation/Globals.py
View file @
10a3b9aa
...
...
@@ -170,14 +170,14 @@ def setWIP(entityList):
entity
.
schedule
.
append
([
object
,
now
()])
#append the time to schedule so that it can be read in the result
entity
.
currentStation
=
object
# update the current station of the entity
def
count
Daily
Throughput
(
argumentDict
=
{}):
def
count
Interval
Throughput
(
argumentDict
=
{}):
currentExited
=
0
for
obj
in
G
.
ObjList
:
if
obj
.
type
is
'Exit'
:
totalExited
=
obj
.
totalNumberOfUnitsExited
previouslyExited
=
sum
(
obj
.
daily
ThroughPutList
)
previouslyExited
=
sum
(
obj
.
interval
ThroughPutList
)
currentExited
+=
totalExited
-
previouslyExited
obj
.
daily
ThroughPutList
.
append
(
currentExited
)
obj
.
interval
ThroughPutList
.
append
(
currentExited
)
...
...
dream/simulation/JSONInputs/Topology48.json
View file @
10a3b9aa
...
...
@@ -145,7 +145,7 @@
"name"
:
"calculateDailyAttainment"
,
"start"
:
"480"
,
"interval"
:
"480"
,
"method"
:
"Globals.count
Daily
Throughput"
,
"method"
:
"Globals.count
Interval
Throughput"
,
"argumentDict"
:
{
}
}
...
...
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