Commit 7ccb1e88 authored by Georgios Dagkakis's avatar Georgios Dagkakis

SubBatch to be able to accept receiver if it starts in routing queue

parent 43f5fa0e
...@@ -32,7 +32,7 @@ class SubBatch(Entity): ...@@ -32,7 +32,7 @@ class SubBatch(Entity):
type="SubBatch" type="SubBatch"
def __init__(self, id, name, numberOfUnits=1, parentBatch=None, parentBatchName=None, parentBatchId=None, def __init__(self, id, name, numberOfUnits=1, parentBatch=None, parentBatchName=None, parentBatchId=None,
remainingProcessingTime=0, currentStation=None, unitsToProcess=0,**kw): remainingProcessingTime=0, currentStation=None, unitsToProcess=0,receiver=None,**kw):
Entity.__init__(self, name=name, id=id, remainingProcessingTime=remainingProcessingTime, Entity.__init__(self, name=name, id=id, remainingProcessingTime=remainingProcessingTime,
currentStation=currentStation) currentStation=currentStation)
self.numberOfUnits=int(numberOfUnits) self.numberOfUnits=int(numberOfUnits)
...@@ -54,5 +54,7 @@ class SubBatch(Entity): ...@@ -54,5 +54,7 @@ class SubBatch(Entity):
G.EntityList.append(batch) G.EntityList.append(batch)
self.parentBatch=batch self.parentBatch=batch
self.batchId=self.parentBatch.id self.batchId=self.parentBatch.id
import Globals
self.receiver=Globals.findObjectById(receiver)
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