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
     if hasattr(G, 'extraPropertyDict'):
         self.assemblySpace = float(
             G.extraPropertyDict.get('assemblySpace', float('inf')))
     else:
         self.assemblySpace = float('inf')
     self.method = self.steps
 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
     if hasattr(G, 'extraPropertyDict'):
         self.assemblySpace=float(G.extraPropertyDict.get('assemblySpace', float('inf')))
     else:
         self.assemblySpace=float('inf')
     self.method=self.steps
 def initialize(self):
     EventGenerator.initialize(self)
     # sort the buffers so if they have shared resources the ones with highest priority will go in front
     self.sortBuffers()
 def initialize(self):
     EventGenerator.initialize(self)
     # sort the buffers so if they have shared resources the ones with highest priority will go in front
     self.sortBuffers()