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

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

parent d79769bd
......@@ -32,7 +32,7 @@ class SubBatch(Entity):
type="SubBatch"
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,
currentStation=currentStation)
self.numberOfUnits=int(numberOfUnits)
......@@ -54,5 +54,7 @@ class SubBatch(Entity):
G.EntityList.append(batch)
self.parentBatch=batch
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