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
bdbb59d0
Commit
bdbb59d0
authored
Mar 10, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup in examples' print statements
parent
d9384899
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
dream/simulation/Examples/ClearBatchLines.py
dream/simulation/Examples/ClearBatchLines.py
+2
-2
dream/simulation/Examples/DecompositionOfBatches.py
dream/simulation/Examples/DecompositionOfBatches.py
+2
-2
dream/simulation/Examples/SerialBatchProcessing.py
dream/simulation/Examples/SerialBatchProcessing.py
+2
-2
No files found.
dream/simulation/Examples/ClearBatchLines.py
View file @
bdbb59d0
...
...
@@ -44,7 +44,7 @@ def main():
for
object
in
G
.
ObjList
:
object
.
postProcessing
()
# print the results
print
"the system produced"
,
E
.
numOfExits
,
"
part
s"
print
"the system produced"
,
E
.
numOfExits
,
"
batche
s"
working_ratio_M1
=
(
M1
.
totalWorkingTime
/
G
.
maxSimTime
)
*
100
blockage_ratio_M1
=
(
M1
.
totalBlockageTime
/
G
.
maxSimTime
)
*
100
waiting_ratio_M1
=
(
M1
.
totalWaitingTime
/
G
.
maxSimTime
)
*
100
...
...
@@ -64,7 +64,7 @@ def main():
print
"the blockage ratio of"
,
M3
.
objName
,
'is'
,
blockage_ratio_M3
print
"the waiting ratio of"
,
M3
.
objName
,
'is'
,
waiting_ratio_M3
return
{
"
part
s"
:
E
.
numOfExits
,
return
{
"
batche
s"
:
E
.
numOfExits
,
"working_ratio_M1"
:
working_ratio_M1
,
"blockage_ratio_M1"
:
blockage_ratio_M1
,
"waiting_ratio_M1"
:
waiting_ratio_M1
,
...
...
dream/simulation/Examples/DecompositionOfBatches.py
View file @
bdbb59d0
...
...
@@ -33,14 +33,14 @@ def main():
for
object
in
G
.
ObjList
:
object
.
postProcessing
()
# print the results
print
"the system produced"
,
E
.
numOfExits
,
"
part
s"
print
"the system produced"
,
E
.
numOfExits
,
"
subbatche
s"
working_ratio
=
(
M
.
totalWorkingTime
/
G
.
maxSimTime
)
*
100
blockage_ratio
=
(
M
.
totalBlockageTime
/
G
.
maxSimTime
)
*
100
waiting_ratio
=
(
M
.
totalWaitingTime
/
G
.
maxSimTime
)
*
100
print
"the working ratio of"
,
M
.
objName
,
"is"
,
working_ratio
print
"the blockage ratio of"
,
M
.
objName
,
'is'
,
blockage_ratio
print
"the waiting ratio of"
,
M
.
objName
,
'is'
,
waiting_ratio
return
{
"
part
s"
:
E
.
numOfExits
,
return
{
"
subbatche
s"
:
E
.
numOfExits
,
"working_ratio"
:
working_ratio
,
"blockage_ratio"
:
blockage_ratio
,
"waiting_ratio"
:
waiting_ratio
}
...
...
dream/simulation/Examples/SerialBatchProcessing.py
View file @
bdbb59d0
...
...
@@ -41,7 +41,7 @@ def main():
for
object
in
G
.
ObjList
:
object
.
postProcessing
()
# print the results
print
"the system produced"
,
E
.
numOfExits
,
"
part
s"
print
"the system produced"
,
E
.
numOfExits
,
"
batche
s"
working_ratio_M1
=
(
M1
.
totalWorkingTime
/
G
.
maxSimTime
)
*
100
blockage_ratio_M1
=
(
M1
.
totalBlockageTime
/
G
.
maxSimTime
)
*
100
waiting_ratio_M1
=
(
M1
.
totalWaitingTime
/
G
.
maxSimTime
)
*
100
...
...
@@ -61,7 +61,7 @@ def main():
print
"the blockage ratio of"
,
M3
.
objName
,
'is'
,
blockage_ratio_M3
print
"the waiting ratio of"
,
M3
.
objName
,
'is'
,
waiting_ratio_M3
return
{
"
part
s"
:
E
.
numOfExits
,
return
{
"
batche
s"
:
E
.
numOfExits
,
"working_ratio_M1"
:
working_ratio_M1
,
"blockage_ratio_M1"
:
blockage_ratio_M1
,
"waiting_ratio_M1"
:
waiting_ratio_M1
,
...
...
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