def __init__(self, id, name=None, nextCapacityStationBufferId=None, **kw): Exit.__init__(self, id, name) self.isLocked = True self.nextCapacityStationBufferId = nextCapacityStationBufferId # the id of the next station. If it is None it # means it is the end of the system. self.nextCapacityStationBuffer = None # the next buffer. If it is None it from dream.simulation.Globals import G if hasattr(G, 'CapacityStationExitList'): G.CapacityStationExitList.append(self) else: G.CapacityStationExitList = [] G.CapacityStationExitList.append(self)
def __init__(self, id, name=None, nextCapacityStationBufferId=None,**kw): Exit.__init__(self, id, name) self.isLocked=True self.nextCapacityStationBufferId=nextCapacityStationBufferId # the id of the next station. If it is None it # means it is the end of the system. self.nextCapacityStationBuffer=None # the next buffer. If it is None it from dream.simulation.Globals import G if hasattr(G, 'CapacityStationExitList'): G.CapacityStationExitList.append(self) else: G.CapacityStationExitList=[] G.CapacityStationExitList.append(self)