def removeEntity(self, entity): activeEntity=Machine.removeEntity(self, entity) if self.state==-1: activeEntity.status='Bad' else: self.numGoodParts+=1 return activeEntity
def removeEntity(self, entity): activeEntity = Machine.removeEntity(self, entity) if self.state == -1: activeEntity.status = 'Bad' else: self.numGoodParts += 1 return activeEntity
def removeEntity(self,entity=None): # run the default method activeEntity=Machine.removeEntity(self, entity) # count the number of parts in the server. # If it is empty have one internal queue to signal the queue before the compound object if not self.countInternalParts(): self.sendSignal(receiver=QB, signal=QB.canDispose, sender=Q1) return activeEntity
def removeEntity(self, entity=None): # run the default method activeEntity = Machine.removeEntity(self, entity) # count the number of parts in the server. # If it is empty have one internal queue to signal the queue before the compound object if not self.countInternalParts(): self.sendSignal(receiver=QB, signal=QB.canDispose, sender=Q1) return activeEntity