예제 #1
0
 def __init__(self, id=id, name=None, start=0, stop=float('inf'), interval=1,
              duration=0, method=None, argumentDict={}, dueDateThreshold=float('inf'), 
              prioritizeIfCanFinish=False,**kw):
     EventGenerator.__init__(self, id, name, start, stop, interval,
              duration, method, argumentDict)
     # attribute used by optimization in calculateWhatIsToBeProcessed
     # only the projects that are within this threshold from the one with EDD in the same bufffer 
     # will be considered to move at first
     self.dueDateThreshold=float(dueDateThreshold)
     # attribute that shows if we prioritize entities that can finish work in this station in the next interval
     self.prioritizeIfCanFinish=bool(int(prioritizeIfCanFinish))
     # the total assemblySpace in the system
     self.assemblySpace=float(G.extraPropertyDict.get('assemblySpace', float('inf')))
     self.method=self.steps