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
c370080e
Commit
c370080e
authored
Sep 24, 2014
by
Ioannis Papagiannopoulos
Committed by
Georgios Dagkakis
Nov 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
responsibleForCurrentStep now returns the operator responsible and not the ID
parent
a1e73474
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
dream/simulation/Job.py
dream/simulation/Job.py
+5
-3
No files found.
dream/simulation/Job.py
View file @
c370080e
...
...
@@ -237,13 +237,15 @@ class Job(Entity): # inherits from the Entity c
from
Machine
import
Machine
if
issubclass
(
currentStation
.
__class__
,
Machine
):
for
routeStep
in
self
.
route
:
stepResponsible
=
routeStep
.
get
(
'operator'
,
'not available'
)
stepResponsible
=
routeStep
.
get
(
'operator'
,
None
)
stepIDs
=
routeStep
.
get
(
'stationIdsList'
,[])
if
currentStation
.
id
in
stepIDs
:
responsible
=
stepResponsible
responsible
ID
=
stepResponsible
break
else
:
responsible
=
self
.
remainingRoute
[
0
].
get
(
'operator'
,
'not available'
)
responsibleID
=
self
.
remainingRoute
[
0
].
get
(
'operator'
,
None
)
from
Globals
import
findObjectById
responsible
=
findObjectById
(
responsibleID
)
return
responsible
#===========================================================================
# method that finds a receiver for a candidate entity
...
...
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