def removeEntity(self, entity=None): # if it is the first sub-batch of the parent batch that leaves # assign it as the batch start time if len(self.getActiveObjectQueue()) == self.numberOfSubBatches: batch = self.getActiveObjectQueue()[0].parentBatch batch.startTime = self.env.now activeEntity = BatchDecomposition.removeEntity(self, entity) return activeEntity
def removeEntity(self, entity=None): # if it is the first sub-batch of the parent batch that leaves # assign it as the batch start time if len(self.getActiveObjectQueue())==self.numberOfSubBatches: batch=self.getActiveObjectQueue()[0].parentBatch batch.startTime=now() activeEntity=BatchDecomposition.removeEntity(self, entity) return activeEntity