def getEntity(self): activeEntity = MachineJobShop.getEntity(self) productId = activeEntity.productId if productId not in self.alreadyProcessedProductIds: self.alreadyProcessedProductIds.append(productId) else: self.procTime = 0 return activeEntity
def getEntity(self): activeEntity=MachineJobShop.getEntity(self) productId=activeEntity.productId if productId not in self.alreadyProcessedProductIds: self.alreadyProcessedProductIds.append(productId) else: self.procTime=0 return activeEntity
def initialize(self): # keep the ids of products that have already been processed self.alreadyProcessedProductIds = [] MachineJobShop.initialize(self)
def initialize(self): # keep the ids of products that have already been processed self.alreadyProcessedProductIds=[] MachineJobShop.initialize(self)