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
ac201736
Commit
ac201736
authored
Mar 05, 2015
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Machine and Operator now updated to consider the new skillDict
parent
bbc6bfc8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
dream/simulation/Machine.py
dream/simulation/Machine.py
+1
-1
dream/simulation/Operator.py
dream/simulation/Operator.py
+2
-2
No files found.
dream/simulation/Machine.py
View file @
ac201736
...
@@ -715,7 +715,7 @@ class Machine(CoreObject):
...
@@ -715,7 +715,7 @@ class Machine(CoreObject):
yield
self
.
env
.
process
(
self
.
release
())
yield
self
.
env
.
process
(
self
.
release
())
elif
(
self
.
currentOperator
):
elif
(
self
.
currentOperator
):
if
self
.
currentOperator
.
skillDict
:
if
self
.
currentOperator
.
skillDict
:
if
not
self
.
id
in
self
.
currentOperator
.
skillDict
[
"process"
]:
if
not
self
.
id
in
self
.
currentOperator
.
skillDict
[
"process"
]
.
get
(
"stationIdList"
,[])
:
yield
self
.
env
.
process
(
self
.
release
())
yield
self
.
env
.
process
(
self
.
release
())
#===================================================================
#===================================================================
...
...
dream/simulation/Operator.py
View file @
ac201736
...
@@ -83,8 +83,8 @@ class Operator(ObjectResource):
...
@@ -83,8 +83,8 @@ class Operator(ObjectResource):
self
.
skillDict
=
skillDict
self
.
skillDict
=
skillDict
# if there is a skillDict add the stations defined to the operators coreObjectIds
# if there is a skillDict add the stations defined to the operators coreObjectIds
if
skillDict
:
if
skillDict
:
for
operation_
stations
in
skillDict
.
values
():
for
operation_
data
in
skillDict
.
values
():
for
station
in
operation_
stations
:
for
station
in
operation_
data
.
get
(
"stationIdList"
,
[])
:
if
not
station
in
self
.
coreObjectIds
:
if
not
station
in
self
.
coreObjectIds
:
# append the station ID to the correObjectIds
# append the station ID to the correObjectIds
self
.
coreObjectIds
.
append
(
station
)
self
.
coreObjectIds
.
append
(
station
)
...
...
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