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
48828936
Commit
48828936
authored
Feb 09, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
objects to output whole lists in replications
parent
b01883d0
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
91 deletions
+29
-91
dream/simulation/Assembly.py
dream/simulation/Assembly.py
+3
-8
dream/simulation/BatchReassembly.py
dream/simulation/BatchReassembly.py
+5
-15
dream/simulation/Conveyer.py
dream/simulation/Conveyer.py
+3
-9
dream/simulation/Dismantle.py
dream/simulation/Dismantle.py
+3
-8
dream/simulation/Exit.py
dream/simulation/Exit.py
+5
-20
dream/simulation/Machine.py
dream/simulation/Machine.py
+7
-21
dream/simulation/Operator.py
dream/simulation/Operator.py
+3
-10
No files found.
dream/simulation/Assembly.py
View file @
48828936
...
...
@@ -433,11 +433,6 @@ class Assembly(CoreObject):
json
=
{
'_class'
:
self
.
class_name
,
'id'
:
self
.
id
,
'results'
:
{}}
if
(
G
.
numberOfReplications
==
1
):
json
[
'results'
][
'working_ratio'
]
=
100
*
self
.
totalWorkingTime
/
G
.
maxSimTime
json
[
'results'
][
'blockage_ratio'
]
=
100
*
self
.
totalBlockageTime
/
G
.
maxSimTime
json
[
'results'
][
'waiting_ratio'
]
=
100
*
self
.
totalWaitingTime
/
G
.
maxSimTime
else
:
json
[
'results'
][
'working_ratio'
]
=
getConfidenceIntervals
(
self
.
Working
)
json
[
'results'
][
'blockage_ratio'
]
=
getConfidenceIntervals
(
self
.
Blockage
)
json
[
'results'
][
'waiting_ratio'
]
=
getConfidenceIntervals
(
self
.
Waiting
)
...
...
dream/simulation/BatchReassembly.py
View file @
48828936
...
...
@@ -341,16 +341,6 @@ class BatchReassembly(CoreObject):
'id'
:
self
.
id
,
'family'
:
self
.
family
,
'results'
:
{}}
if
(
G
.
numberOfReplications
==
1
):
# if we had just one replication output the results as numbers
json
[
'results'
][
'failure_ratio'
]
=
100
*
self
.
totalFailureTime
/
G
.
maxSimTime
json
[
'results'
][
'working_ratio'
]
=
100
*
self
.
totalWorkingTime
/
G
.
maxSimTime
json
[
'results'
][
'blockage_ratio'
]
=
100
*
self
.
totalBlockageTime
/
G
.
maxSimTime
json
[
'results'
][
'waiting_ratio'
]
=
100
*
self
.
totalWaitingTime
/
G
.
maxSimTime
#output the off-shift time only if there is any
if
self
.
totalOffShiftTime
:
json
[
'results'
][
'off_shift_ratio'
]
=
100
*
self
.
totalOffShiftTime
/
G
.
maxSimTime
else
:
json
[
'results'
][
'failure_ratio'
]
=
getConfidenceIntervals
(
self
.
Failure
)
json
[
'results'
][
'working_ratio'
]
=
getConfidenceIntervals
(
self
.
Working
)
json
[
'results'
][
'blockage_ratio'
]
=
getConfidenceIntervals
(
self
.
Blockage
)
...
...
dream/simulation/Conveyer.py
View file @
48828936
...
...
@@ -496,12 +496,6 @@ class Conveyer(CoreObject):
json
=
{
'_class'
:
self
.
class_name
,
'id'
:
self
.
id
,
'results'
:
{}}
if
(
G
.
numberOfReplications
==
1
):
# if we had just one replication output the results as numbers
json
[
'results'
][
'working_ratio'
]
=
100
*
self
.
totalWorkingTime
/
G
.
maxSimTime
json
[
'results'
][
'blockage_ratio'
]
=
100
*
self
.
totalBlockageTime
/
G
.
maxSimTime
json
[
'results'
][
'waiting_ratio'
]
=
100
*
self
.
totalWaitingTime
/
G
.
maxSimTime
else
:
json
[
'results'
][
'working_ratio'
]
=
getConfidenceIntervals
(
self
.
Working
)
json
[
'results'
][
'blockage_ratio'
]
=
getConfidenceIntervals
(
self
.
Blockage
)
json
[
'results'
][
'waiting_ratio'
]
=
getConfidenceIntervals
(
self
.
Waiting
)
...
...
dream/simulation/Dismantle.py
View file @
48828936
...
...
@@ -370,11 +370,6 @@ class Dismantle(CoreObject):
json
=
{
'_class'
:
self
.
class_name
,
'id'
:
self
.
id
,
'results'
:
{}}
if
(
G
.
numberOfReplications
==
1
):
json
[
'results'
][
'working_ratio'
]
=
100
*
self
.
totalWorkingTime
/
G
.
maxSimTime
json
[
'results'
][
'blockage_ratio'
]
=
100
*
self
.
totalBlockageTime
/
G
.
maxSimTime
json
[
'results'
][
'waiting_ratio'
]
=
100
*
self
.
totalWaitingTime
/
G
.
maxSimTime
else
:
json
[
'results'
][
'working_ratio'
]
=
getConfidenceIntervals
(
self
.
Working
)
json
[
'results'
][
'blockage_ratio'
]
=
getConfidenceIntervals
(
self
.
Blockage
)
json
[
'results'
][
'waiting_ratio'
]
=
getConfidenceIntervals
(
self
.
Waiting
)
...
...
dream/simulation/Exit.py
View file @
48828936
...
...
@@ -221,21 +221,6 @@ class Exit(CoreObject):
'id'
:
self
.
id
,
'family'
:
self
.
family
,
'results'
:
{}
}
if
(
G
.
numberOfReplications
==
1
):
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
.
intervalThroughPutList
):
#output this only if there is an interval throughput
#TODO - check how to output in stochastic cases
json
[
'results'
][
'intervalThroughputList'
]
=
self
.
intervalThroughPutList
json
[
'results'
][
'lifespan'
]
=
self
.
Lifespan
[
0
]
json
[
'results'
][
'takt_time'
]
=
self
.
TaktTime
[
0
]
else
:
# json['results']['throughput'] =self.Exits
# json['results']['lifespan'] = self.Lifespan
# json['results']['takt_time'] = self.TaktTime
# if self.Exits!=self.UnitExits: #output this only if there was variability in units
# json['results']['unitsThroughput'] = self.UnitExits
json
[
'results'
][
'throughput'
]
=
getConfidenceIntervals
(
self
.
Exits
)
json
[
'results'
][
'lifespan'
]
=
getConfidenceIntervals
(
self
.
Lifespan
)
json
[
'results'
][
'takt_time'
]
=
getConfidenceIntervals
(
self
.
TaktTime
)
...
...
dream/simulation/Machine.py
View file @
48828936
...
...
@@ -1239,27 +1239,13 @@ class Machine(CoreObject):
'id'
:
self
.
id
,
'family'
:
self
.
family
,
'results'
:
{}}
if
(
G
.
numberOfReplications
==
1
):
# if we had just one replication output the results as numbers
json
[
'results'
][
'failure_ratio'
]
=
100
*
self
.
totalFailureTime
/
G
.
maxSimTime
json
[
'results'
][
'working_ratio'
]
=
100
*
self
.
totalWorkingTime
/
G
.
maxSimTime
json
[
'results'
][
'blockage_ratio'
]
=
100
*
self
.
totalBlockageTime
/
G
.
maxSimTime
json
[
'results'
][
'waiting_ratio'
]
=
100
*
self
.
totalWaitingTime
/
G
.
maxSimTime
#output the off-shift time only if there is any
if
self
.
totalOffShiftTime
:
json
[
'results'
][
'off_shift_ratio'
]
=
100
*
self
.
totalOffShiftTime
/
G
.
maxSimTime
if
any
(
type
==
'Setup'
for
type
in
self
.
multOperationTypeList
):
json
[
'results'
][
'setup_ratio'
]
=
100
*
self
.
totalSetupTime
/
G
.
maxSimTime
if
any
(
type
==
'Load'
for
type
in
self
.
multOperationTypeList
):
json
[
'results'
][
'load_ratio'
]
=
100
*
self
.
totalLoadTime
/
G
.
maxSimTime
else
:
json
[
'results'
][
'failure_ratio'
]
=
getConfidenceIntervals
(
self
.
Failure
)
json
[
'results'
][
'working_ratio'
]
=
getConfidenceIntervals
(
self
.
Working
)
json
[
'results'
][
'blockage_ratio'
]
=
getConfidenceIntervals
(
self
.
Blockage
)
json
[
'results'
][
'waiting_ratio'
]
=
getConfidenceIntervals
(
self
.
Waiting
)
json
[
'results'
][
'off_shift_ratio'
]
=
getConfidenceIntervals
(
self
.
OffShift
)
json
[
'results'
][
'setup_ratio'
]
=
getConfidenceIntervals
(
self
.
SettingUp
)
json
[
'results'
][
'loading_ratio'
]
=
getConfidenceIntervals
(
self
.
Loading
)
json
[
'results'
][
'failure_ratio'
]
=
self
.
Failure
json
[
'results'
][
'working_ratio'
]
=
self
.
Working
json
[
'results'
][
'blockage_ratio'
]
=
self
.
Blockage
json
[
'results'
][
'waiting_ratio'
]
=
self
.
Waiting
json
[
'results'
][
'off_shift_ratio'
]
=
self
.
OffShift
json
[
'results'
][
'setup_ratio'
]
=
self
.
SettingUp
json
[
'results'
][
'loading_ratio'
]
=
self
.
Loading
G
.
outputJSON
[
'elementList'
].
append
(
json
)
dream/simulation/Operator.py
View file @
48828936
...
...
@@ -324,13 +324,6 @@ class Operator(ObjectResource):
'id'
:
self
.
id
,
'family'
:
self
.
family
,
'results'
:
{}}
if
(
G
.
numberOfReplications
==
1
):
json
[
'results'
][
'working_ratio'
]
=
100
*
self
.
totalWorkingTime
/
G
.
maxSimTime
json
[
'results'
][
'waiting_ratio'
]
=
100
*
self
.
totalWaitingTime
/
G
.
maxSimTime
#output the off-shift time only if there is any
if
self
.
totalOffShiftTime
:
json
[
'results'
][
'off_shift_ratio'
]
=
100
*
self
.
totalOffShiftTime
/
G
.
maxSimTime
else
:
json
[
'results'
][
'working_ratio'
]
=
getConfidenceIntervals
(
self
.
Working
)
json
[
'results'
][
'waiting_ratio'
]
=
getConfidenceIntervals
(
self
.
Waiting
)
json
[
'results'
][
'off_shift_ratio'
]
=
getConfidenceIntervals
(
self
.
OffShift
)
...
...
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