예제 #1
0
 def __init__(self, job):
     """
     Args:
         job -- object of type JobDescription
     """
     Decoration.__init__(self)
     self.JobDescription = job.Copy()
예제 #2
0
    def __init__(self) :
        """
        Args:
        """
        Decoration.__init__(self)

        self.PreferenceMap = {}
예제 #3
0
 def __init__(self, job) :
     """
     Args:
         job -- object of type JobDescription
     """
     Decoration.__init__(self)
     self.JobDescription = job.Copy()
예제 #4
0
    def __init__(self):
        """
        Args:
        """
        Decoration.__init__(self)

        self.PreferenceMap = {}
예제 #5
0
    def __init__(self) :
        """
        Args:
        """
        Decoration.__init__(self)

        self.VehicleTypeMap = {}
        self.VehicleTypeList = None
예제 #6
0
 def __init__(self) :
     """
     Args:
         name -- string
         itype -- object of type Layout.IntersectionType
         x, y -- integer coordinates
     """
     Decoration.__init__(self)
예제 #7
0
 def __init__(self):
     """
     Args:
         name -- string
         itype -- object of type Layout.IntersectionType
         x, y -- integer coordinates
     """
     Decoration.__init__(self)
예제 #8
0
    def __init__(self):
        """
        Args:
        """
        Decoration.__init__(self)

        self.VehicleTypeMap = {}
        self.VehicleTypeList = None
예제 #9
0
    def __init__(self, residents = 5) :
        """
        Args:
            name -- string
            residents -- integer
        """

        Decoration.__init__(self)
        self.ResidentsPerNode = residents
예제 #10
0
    def __init__(self, residents=5):
        """
        Args:
            name -- string
            residents -- integer
        """

        Decoration.__init__(self)
        self.ResidentsPerNode = residents
예제 #11
0
 def __init__(self, name, lanes = 1, pri = 70, speed = 2.0, wid = 2.5, sig = '1L', render = True, center = False) :
     Decoration.__init__(self)
     self.Name = name
     self.Lanes = lanes
     self.Priority = pri
     self.Speed = speed
     self.Width = wid
     self.Signature = sig
     self.Render = render
     self.Center = center
예제 #12
0
 def __init__(self, name, lanes = 1, pri = 70, speed = 2.0, wid = 2.5, sig = '1L', render = True, center = False) :
     Decoration.__init__(self)
     self.Name = name
     self.Lanes = lanes
     self.Priority = pri
     self.Speed = speed
     self.Width = wid
     self.Signature = sig
     self.Render = render
     self.Center = center
예제 #13
0
    def __init__(self, name, vehicletype) :
        """
        Args:
            name -- string, the name of the vehicle
            vehicletype -- string, the name of the vehicle type
        """
        Decoration.__init__(self)

        self.VehicleName = name
        self.VehicleType = vehicletype
예제 #14
0
    def __init__(self, name, vehicletype):
        """
        Args:
            name -- string, the name of the vehicle
            vehicletype -- string, the name of the vehicle type
        """
        Decoration.__init__(self)

        self.VehicleName = name
        self.VehicleType = vehicletype
예제 #15
0
    def __init__(self, joblist):
        """
        Args:
            joblist -- dictionary mapping JobDescription --> Demand
        """

        Decoration.__init__(self)

        self.JobList = dict()
        for job, demand in joblist.iteritems():
            self.JobList[job.Copy()] = demand
예제 #16
0
    def __init__(self, joblist) :
        """
        Args:
            joblist -- dictionary mapping JobDescription --> Demand
        """

        Decoration.__init__(self)

        self.JobList = dict()
        for job, demand in joblist.iteritems() :
            self.JobList[job.Copy()] = demand
예제 #17
0
    def __init__(self, employees = 20, customers = 50, types = None) :
        """
        Args:
            employees -- integer count of employee capacity
            customers -- integer count of customer capacity
            types -- dictionary mapping profiles
        """
        Decoration.__init__(self)

        self.EmployeesPerNode = employees
        self.CustomersPerNode = customers
        self.PreferredBusinessTypes = types or {}
예제 #18
0
    def __init__(self, bizhours, capacity, servicetime) :
        """
        Args:
            bizhours -- object of type WeeklySchedule
            capacity -- integer maximum customer capacity
            servicetime -- float mean time to service a customer
        """
        Decoration.__init__(self)

        self.Schedule = bizhours
        self.CustomerCapacity = capacity
        self.ServiceTime = servicetime
예제 #19
0
    def __init__(self, employees=20, customers=50, types=None):
        """
        Args:
            employees -- integer count of employee capacity
            customers -- integer count of customer capacity
            types -- dictionary mapping profiles
        """
        Decoration.__init__(self)

        self.EmployeesPerNode = employees
        self.CustomersPerNode = customers
        self.PreferredBusinessTypes = types or {}
예제 #20
0
    def __init__(self, bizhours, capacity, servicetime):
        """
        Args:
            bizhours -- object of type WeeklySchedule
            capacity -- integer maximum customer capacity
            servicetime -- float mean time to service a customer
        """
        Decoration.__init__(self)

        self.Schedule = bizhours
        self.CustomerCapacity = capacity
        self.ServiceTime = servicetime
예제 #21
0
파일: Guirlande.py 프로젝트: HugoHerve/TP9
 def __init__(self, longueur=0, couleur="", masse=0):
     Decoration.__init__(self, couleur, masse)
     self._longueur = longueur
예제 #22
0
    def __init__(self, x, y) :
        Decoration.__init__(self)

        self.X = x
        self.Y = y
예제 #23
0
    def __init__(self, name, itype = 'priority', render = True) :
        Decoration.__init__(self)

        self.Name = name
        self.IntersectionType = itype
        self.Render = render
예제 #24
0
 def __init__(self) :
     Decoration.__init__(self)
예제 #25
0
    def __init__(self) :
        Decoration.__init__(self)

        self.ResidentCount = 0
        self.ResidenceList = {}
예제 #26
0
    def __init__(self, x, y):
        Decoration.__init__(self)

        self.X = x
        self.Y = y
예제 #27
0
    def __init__(self):
        Decoration.__init__(self)

        self.ResidentCount = 0
        self.ResidenceList = {}
예제 #28
0
    def __init__(self) :
        Decoration.__init__(self)

        self.PeakEmployeeCount = 0
        self.PeakCustomerCount = 0
예제 #29
0
    def __init__(self):
        Decoration.__init__(self)

        self.PeakEmployeeCount = 0
        self.PeakCustomerCount = 0
예제 #30
0
 def __init__(self):
     Decoration.__init__(self)
예제 #31
0
    def __init__(self, name, itype='priority', render=True):
        Decoration.__init__(self)

        self.Name = name
        self.IntersectionType = itype
        self.Render = render