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
be6f1ec6
Commit
be6f1ec6
authored
Jul 23, 2014
by
Ioannis Papagiannopoulos
Committed by
Georgios Dagkakis
Sep 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
checkForSkilledOperators name correction
parent
9eaff49a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dream/simulation/CoreObject.py
dream/simulation/CoreObject.py
+2
-2
No files found.
dream/simulation/CoreObject.py
View file @
be6f1ec6
...
@@ -370,7 +370,7 @@ class CoreObject(object):
...
@@ -370,7 +370,7 @@ class CoreObject(object):
# check if the any of the operators are skilled (having a list of skills regarding the machines)
# check if the any of the operators are skilled (having a list of skills regarding the machines)
#===========================================================================
#===========================================================================
@
staticmethod
@
staticmethod
def
checkForSkilledOpertors
():
def
checkForSkilledOper
a
tors
():
from
Globals
import
G
from
Globals
import
G
# XXX this can also be global
# XXX this can also be global
# flag used to inform if the operators assigned to the station are skilled (skillsList)
# flag used to inform if the operators assigned to the station are skilled (skillsList)
...
@@ -412,7 +412,7 @@ class CoreObject(object):
...
@@ -412,7 +412,7 @@ class CoreObject(object):
self
.
preemptReceiver
()
self
.
preemptReceiver
()
# TODO if the station is operated, and the operators have skills defined then the SkilledOperatorRouter should be signalled
# TODO if the station is operated, and the operators have skills defined then the SkilledOperatorRouter should be signalled
# XXX: there may be a case where one machine is not assigned an operator, in that case we do not want to invoke the allocation routine
# XXX: there may be a case where one machine is not assigned an operator, in that case we do not want to invoke the allocation routine
if
self
.
checkForSkilledOpertors
():
if
self
.
checkForSkilledOper
a
tors
():
allocationNeeded
=
False
allocationNeeded
=
False
for
nextObj
in
self
.
next
:
for
nextObj
in
self
.
next
:
if
nextObj
.
operatorPool
!=
'None'
:
if
nextObj
.
operatorPool
!=
'None'
:
...
...
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