def getEntity(self): activeEntity=Exit.getEntity(self) #call the parent method to get the entity #check the attribute and update the counters accordingly if activeEntity.machineId=='M1': G.NumM1+=1 elif activeEntity.machineId=='M2': G.NumM2+=1 return activeEntity #return the entity obtained
def getEntity(self): activeEntity = Exit.getEntity(self) if activeEntity.status == 'Good': self.numGoodParts += 1 return activeEntity
def getEntity(self): activeEntity=Exit.getEntity(self) if activeEntity.status=='Good': self.numGoodParts+=1 return activeEntity