Commit bdbb59d0 authored by Georgios Dagkakis's avatar Georgios Dagkakis

cleanup in examples' print statements

parent d9384899
...@@ -44,7 +44,7 @@ def main(): ...@@ -44,7 +44,7 @@ def main():
for object in G.ObjList: for object in G.ObjList:
object.postProcessing() object.postProcessing()
# print the results # print the results
print "the system produced", E.numOfExits, "parts" print "the system produced", E.numOfExits, "batches"
working_ratio_M1 = (M1.totalWorkingTime/G.maxSimTime)*100 working_ratio_M1 = (M1.totalWorkingTime/G.maxSimTime)*100
blockage_ratio_M1 = (M1.totalBlockageTime/G.maxSimTime)*100 blockage_ratio_M1 = (M1.totalBlockageTime/G.maxSimTime)*100
waiting_ratio_M1 = (M1.totalWaitingTime/G.maxSimTime)*100 waiting_ratio_M1 = (M1.totalWaitingTime/G.maxSimTime)*100
...@@ -64,7 +64,7 @@ def main(): ...@@ -64,7 +64,7 @@ def main():
print "the blockage ratio of", M3.objName, 'is', blockage_ratio_M3 print "the blockage ratio of", M3.objName, 'is', blockage_ratio_M3
print "the waiting ratio of", M3.objName, 'is', waiting_ratio_M3 print "the waiting ratio of", M3.objName, 'is', waiting_ratio_M3
return {"parts": E.numOfExits, return {"batches": E.numOfExits,
"working_ratio_M1": working_ratio_M1, "working_ratio_M1": working_ratio_M1,
"blockage_ratio_M1": blockage_ratio_M1, "blockage_ratio_M1": blockage_ratio_M1,
"waiting_ratio_M1": waiting_ratio_M1, "waiting_ratio_M1": waiting_ratio_M1,
......
...@@ -33,14 +33,14 @@ def main(): ...@@ -33,14 +33,14 @@ def main():
for object in G.ObjList: for object in G.ObjList:
object.postProcessing() object.postProcessing()
# print the results # print the results
print "the system produced", E.numOfExits, "parts" print "the system produced", E.numOfExits, "subbatches"
working_ratio = (M.totalWorkingTime/G.maxSimTime)*100 working_ratio = (M.totalWorkingTime/G.maxSimTime)*100
blockage_ratio = (M.totalBlockageTime/G.maxSimTime)*100 blockage_ratio = (M.totalBlockageTime/G.maxSimTime)*100
waiting_ratio = (M.totalWaitingTime/G.maxSimTime)*100 waiting_ratio = (M.totalWaitingTime/G.maxSimTime)*100
print "the working ratio of", M.objName, "is", working_ratio print "the working ratio of", M.objName, "is", working_ratio
print "the blockage ratio of", M.objName, 'is', blockage_ratio print "the blockage ratio of", M.objName, 'is', blockage_ratio
print "the waiting ratio of", M.objName, 'is', waiting_ratio print "the waiting ratio of", M.objName, 'is', waiting_ratio
return {"parts": E.numOfExits, return {"subbatches": E.numOfExits,
"working_ratio": working_ratio, "working_ratio": working_ratio,
"blockage_ratio": blockage_ratio, "blockage_ratio": blockage_ratio,
"waiting_ratio": waiting_ratio} "waiting_ratio": waiting_ratio}
......
...@@ -41,7 +41,7 @@ def main(): ...@@ -41,7 +41,7 @@ def main():
for object in G.ObjList: for object in G.ObjList:
object.postProcessing() object.postProcessing()
# print the results # print the results
print "the system produced", E.numOfExits, "parts" print "the system produced", E.numOfExits, "batches"
working_ratio_M1 = (M1.totalWorkingTime/G.maxSimTime)*100 working_ratio_M1 = (M1.totalWorkingTime/G.maxSimTime)*100
blockage_ratio_M1 = (M1.totalBlockageTime/G.maxSimTime)*100 blockage_ratio_M1 = (M1.totalBlockageTime/G.maxSimTime)*100
waiting_ratio_M1 = (M1.totalWaitingTime/G.maxSimTime)*100 waiting_ratio_M1 = (M1.totalWaitingTime/G.maxSimTime)*100
...@@ -61,7 +61,7 @@ def main(): ...@@ -61,7 +61,7 @@ def main():
print "the blockage ratio of", M3.objName, 'is', blockage_ratio_M3 print "the blockage ratio of", M3.objName, 'is', blockage_ratio_M3
print "the waiting ratio of", M3.objName, 'is', waiting_ratio_M3 print "the waiting ratio of", M3.objName, 'is', waiting_ratio_M3
return {"parts": E.numOfExits, return {"batches": E.numOfExits,
"working_ratio_M1": working_ratio_M1, "working_ratio_M1": working_ratio_M1,
"blockage_ratio_M1": blockage_ratio_M1, "blockage_ratio_M1": blockage_ratio_M1,
"waiting_ratio_M1": waiting_ratio_M1, "waiting_ratio_M1": waiting_ratio_M1,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment