setup operationType considered by router object for operators with skillDict

parent 0a58ee70
......@@ -313,7 +313,8 @@ class Router(ObjectInterruption):
for candidateOperator in candidateOperators:
# XXX not generic enough - find an other way to initiate skilledRouter and incorporate also setup and load
if candidateOperator.skillDict:
if station.id in candidateOperator.skillDict["process"]:
if (station.id in candidateOperator.skillDict["process"] and station in self.pendingMachines) or\
(station.id in candidateOperator.skillDict["setup"] and station in candidateMachines):
if not station in candidateOperator.candidateStations:
candidateOperator.candidateStations.append(station)
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment