def __init__(self,
              id=None,
              name=None,
              capacityProjectId=None,
              requiredCapacity=10,
              priority=0,
              dueDate=0,
              orderDate=0,
              currentStation=None,
              isCritical=False,
              **kw):
     Entity.__init__(self,
                     id,
                     name,
                     priority,
                     dueDate,
                     orderDate,
                     isCritical,
                     currentStation=currentStation)
     self.capacityProjectId = capacityProjectId  # the project id hat the capacity Entity is part of
     self.capacityProject = None  # the project that the capacity Entity is part of. It is defined in initialize
     self.requiredCapacity = requiredCapacity  # the capacity that the capacity entity requires from the following station
     self.shouldMove = False
     from dream.simulation.Globals import G
     if hasattr(G, 'CapacityEntityList'):
         G.CapacityEntityList.append(self)
     else:
         G.CapacityEntityList = []
         G.CapacityEntityList.append(self)
Example #2
0
 def initialize(self):
     Entity.initialize(self)
     self.shouldMove=False
     from dream.simulation.Globals import G
     # find the project that the capacity entity is part of
     for project in G.CapacityProjectList:
         if project.id==self.capacityProjectId:
             self.capacityProject=project
             break
 def initialize(self):
     Entity.initialize(self)
     self.shouldMove = False
     from dream.simulation.Globals import G
     # find the project that the capacity entity is part of
     for project in G.CapacityProjectList:
         if project.id == self.capacityProjectId:
             self.capacityProject = project
             break
Example #4
0
 def __init__(self, id=None, name=None, capacityProjectId=None, requiredCapacity=10, priority=0, dueDate=0,
               orderDate=0, currentStation=None, isCritical=False, **kw):
     Entity.__init__(self, id, name, priority, dueDate, orderDate, isCritical, currentStation=currentStation)
     self.capacityProjectId=capacityProjectId    # the project id hat the capacity Entity is part of
     self.capacityProject=None                   # the project that the capacity Entity is part of. It is defined in initialize
     self.requiredCapacity=requiredCapacity  # the capacity that the capacity entity requires from the following station
     self.shouldMove=False
     from dream.simulation.Globals import G
     if hasattr(G, 'CapacityEntityList'):
         G.CapacityEntityList.append(self)
     else:
         G.CapacityEntityList=[]
         G.CapacityEntityList.append(self)
 def __init__(self, id=None, name=None, capacityRequirementDict={}, earliestStartDict={}, dueDate=0,
              assemblySpaceRequirement=0, **kw):
     Entity.__init__(self, id, name, dueDate=dueDate)
     # a dict that shows the required capacity from every station
     self.capacityRequirementDict=capacityRequirementDict
     # a dict that shows the earliest start in every station
     self.earliestStartDict=earliestStartDict
     # the assembly space the project requires
     self.assemblySpaceRequirement=assemblySpaceRequirement
     from dream.simulation.Globals import G
     if hasattr(G, 'CapacityProjectList'):
         G.CapacityProjectList.append(self)
     else:
         G.CapacityProjectList=[]
         G.CapacityProjectList.append(self)
Example #6
0
    def __init__(
        self,
        id=None,
        name=None,
        capacityRequirementDict={},
        earliestStartDict={},
        dueDate=0,
        assemblySpaceRequirement=0,
        **kw
    ):
        Entity.__init__(self, id, name, dueDate=dueDate)
        # a dict that shows the required capacity from every station
        self.capacityRequirementDict = capacityRequirementDict
        # a dict that shows the earliest start in every station
        self.earliestStartDict = earliestStartDict
        # the assembly space the project requires
        self.assemblySpaceRequirement = assemblySpaceRequirement
        from dream.simulation.Globals import G

        if hasattr(G, "CapacityProjectList"):
            G.CapacityProjectList.append(self)
        else:
            G.CapacityProjectList = []
            G.CapacityProjectList.append(self)