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
ffa8d1de
Commit
ffa8d1de
authored
Sep 24, 2014
by
Ioannis Papagiannopoulos
Committed by
Georgios Dagkakis
Oct 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
responsibleForCurrentStep now returns the operator responsible and not the ID
parent
ccd75d77
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 @
ffa8d1de
...
@@ -237,13 +237,15 @@ class Job(Entity): # inherits from the Entity c
...
@@ -237,13 +237,15 @@ class Job(Entity): # inherits from the Entity c
from
Machine
import
Machine
from
Machine
import
Machine
if
issubclass
(
currentStation
.
__class__
,
Machine
):
if
issubclass
(
currentStation
.
__class__
,
Machine
):
for
routeStep
in
self
.
route
:
for
routeStep
in
self
.
route
:
stepResponsible
=
routeStep
.
get
(
'operator'
,
'not available'
)
stepResponsible
=
routeStep
.
get
(
'operator'
,
None
)
stepIDs
=
routeStep
.
get
(
'stationIdsList'
,[])
stepIDs
=
routeStep
.
get
(
'stationIdsList'
,[])
if
currentStation
.
id
in
stepIDs
:
if
currentStation
.
id
in
stepIDs
:
responsible
=
stepResponsible
responsible
ID
=
stepResponsible
break
break
else
:
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
return
responsible
#===========================================================================
#===========================================================================
# method that finds a receiver for a candidate entity
# 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