Router variable added to LineGenerationJSON

parent 740723de
......@@ -156,7 +156,7 @@ def createObjects():
G.OperatorManagedJobsList = []
G.OperatorPoolsList = []
G.BrokersList = []
G.RoutersList = []
G.Router = None
G.OperatedMachineList = []
G.BatchScrapMachineList=[]
G.OrderDecompositionList=[]
......
......@@ -429,9 +429,9 @@ class Router(ObjectInterruption):
def findCandidateEntities(self):
for operator in self.candidateOperators:
# find which pendingEntities that can move to machines is the operator managing
# operator.pickCandidateEntitiesFrom(self.pending)
for entity in [x for x in self.pending if x.canProceed and x.manager==operator]:
operator.candidateEntities.append(entity)
operator.pickCandidateEntitiesFrom(self.pending)
# for entity in [x for x in self.pending if x.canProceed and x.manager==operator]:
# operator.candidateEntities.append(entity)
# print ' ', [x.id for x in operator.candidateEntities]
#=======================================================================
......
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