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
c852aa1f
Commit
c852aa1f
authored
Sep 30, 2014
by
Ioannis Papagiannopoulos
Committed by
Georgios Dagkakis
Oct 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correction in Job outputResutlsJSON
parent
699ae99d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
22 deletions
+1
-22
dream/simulation/Job.py
dream/simulation/Job.py
+1
-1
dream/simulation/Machine.py
dream/simulation/Machine.py
+0
-21
No files found.
dream/simulation/Job.py
View file @
c852aa1f
...
@@ -82,7 +82,7 @@ class Job(Entity): # inherits from the Entity c
...
@@ -82,7 +82,7 @@ class Job(Entity): # inherits from the Entity c
# TODO : check if there is a need for setting a different 'type' for the MouldAssembly than 'Machine'
# TODO : check if there is a need for setting a different 'type' for the MouldAssembly than 'Machine'
# ask Georgios if the method __class__.__name__ of finding the class type of the last step is correct
# ask Georgios if the method __class__.__name__ of finding the class type of the last step is correct
# if the entity is of type orderComponent and the last step in it's schedule is Assembly
# if the entity is of type orderComponent and the last step in it's schedule is Assembly
elif
self
.
type
==
'OrderComponent'
and
self
.
schedule
[
-
1
][
0
].
__class__
.
__name__
==
'MouldAssemblyManaged'
:
elif
self
.
type
==
'OrderComponent'
and
self
.
schedule
[
-
1
][
0
].
__class__
.
__name__
in
set
([
'MouldAssemblyManaged'
,
'MouldAssembly'
])
:
json
[
'results'
][
'completionTime'
]
=
self
.
schedule
[
-
1
][
1
]
json
[
'results'
][
'completionTime'
]
=
self
.
schedule
[
-
1
][
1
]
completionTime
=
self
.
schedule
[
-
1
][
1
]
completionTime
=
self
.
schedule
[
-
1
][
1
]
#else input "still in progress"
#else input "still in progress"
...
...
dream/simulation/Machine.py
View file @
c852aa1f
...
@@ -1076,27 +1076,6 @@ class Machine(CoreObject):
...
@@ -1076,27 +1076,6 @@ class Machine(CoreObject):
or
self
.
timeLastEntityEnded
==
self
.
env
.
now
or
self
.
timeLastEntityEnded
==
self
.
env
.
now
or
self
.
checkIfActive
())
or
self
.
checkIfActive
())
# # =======================================================================
# # calculates the setup time
# # =======================================================================
# def calculateSetupTime(self):
# return self.stpRng.generateNumber()
# # =======================================================================
# # calculates the Load time
# # =======================================================================
# def calculateLoadTime(self):
# return self.loadRng.generateNumber()
# # =======================================================================
# # calculates the Load time
# # =======================================================================
# def calculateTime(self, type='Processing'):
# if type=='Setup':
# return self.stpRng.generateNumber()
# elif type=='Load':
# return self.loadRng.generateNumber()
#===========================================================================
#===========================================================================
# checks whether the entity can proceed to a successor object
# checks whether the entity can proceed to a successor object
#===========================================================================
#===========================================================================
...
...
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