Router variable added to LineGenerationJSON

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