def initialize(self): Queue.initialize(self) # if the station shares resources and the capacity is not defined in this # then read it from some other of the sharing stations if not self.intervalCapacity and self.sharedResources: for stationId in self.sharedResources.get('stationIds',[]): import Globals station=Globals.findObjectById(stationId) if station.intervalCapacity: self.intervalCapacity=station.intervalCapacity break # initialize variables self.remainingIntervalCapacity=list(self.intervalCapacity) self.isLocked=True self.utilisationDict=[] # a list of dicts for the utilization results self.detailedWorkPlan=[] # a list of dicts to keep detailed data from Globals import G G.CapacityStationList.append(self)
def initialize(self): from Globals import G self.previous=G.ObjList self.next=[] Queue.initialize(self) #run default behaviour
def initialize(self): Queue.initialize(self) from Globals import G import Globals for i in range(self.initialWIPLevel): self.createEntity()