Exemplo n.º 1
0
 def __init__(self, job) :
     """
     Args:
         job -- object of type JobDescription
     """
     Decoration.__init__(self)
     self.JobDescription = job.Copy()
Exemplo n.º 2
0
 def __init__(self, job):
     """
     Args:
         job -- object of type JobDescription
     """
     Decoration.__init__(self)
     self.JobDescription = job.Copy()
Exemplo n.º 3
0
    def __init__(self) :
        """
        Args:
        """
        Decoration.__init__(self)

        self.PreferenceMap = {}
Exemplo n.º 4
0
    def __init__(self):
        """
        Args:
        """
        Decoration.__init__(self)

        self.PreferenceMap = {}
Exemplo n.º 5
0
    def __init__(self) :
        """
        Args:
        """
        Decoration.__init__(self)

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

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

        Decoration.__init__(self)
        self.ResidentsPerNode = residents
Exemplo n.º 10
0
    def __init__(self, residents = 5) :
        """
        Args:
            name -- string
            residents -- integer
        """

        Decoration.__init__(self)
        self.ResidentsPerNode = residents
Exemplo n.º 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
Exemplo n.º 12
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
Exemplo n.º 13
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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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 {}
Exemplo n.º 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
Exemplo n.º 19
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
Exemplo n.º 20
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 {}
Exemplo n.º 21
0
    def Dump(self):
        result = Decoration.Dump(self)

        result['X'] = self.X
        result['Y'] = self.Y

        return result
Exemplo n.º 22
0
    def Dump(self):
        result = Decoration.Dump(self)
        result['CustomerCapacity'] = self.CustomerCapacity
        result['ServiceTime'] = self.ServiceTime
        result['Schedule'] = self.Schedule.Dump()

        return result
Exemplo n.º 23
0
    def Dump(self):
        result = Decoration.Dump(self)
        result['Name'] = self.Name
        result['IntersectionType'] = self.IntersectionType
        result['Render'] = self.Render

        return result
Exemplo n.º 24
0
    def Dump(self):
        result = Decoration.Dump(self)

        result['EmployeesPerNode'] = self.EmployeesPerNode
        result['CustomersPerNode'] = self.CustomersPerNode
        result['PreferredBusinessTypes'] = self.PreferredBusinessTypes

        return result
Exemplo n.º 25
0
    def Dump(self):
        result = Decoration.Dump(self)

        result['JobList'] = []
        for job, demand in self.JobList.iteritems():
            result['JobList'].append({'Job': job.Dump(), 'Demand': demand})

        return result
Exemplo n.º 26
0
    def Dump(self):
        result = Decoration.Dump(self)

        result['Name'] = self.Name
        result['Lanes'] = self.Lanes
        result['Priority'] = self.Priority
        result['Speed'] = self.Speed
        result['Width'] = self.Width
        result['Signature'] = self.Signature
        result['Render'] = self.Render
        result['Center'] = self.Center

        return result
Exemplo n.º 27
0
    def Dump(self):
        result = Decoration.Dump(self)
        result['VehicleTypeMap'] = self.VehicleTypeMap

        return result
Exemplo n.º 28
0
    def Dump(self):
        result = Decoration.Dump(self)
        result['Job'] = self.JobDescription.Dump()

        return result
Exemplo n.º 29
0
    def __init__(self, name, itype = 'priority', render = True) :
        Decoration.__init__(self)

        self.Name = name
        self.IntersectionType = itype
        self.Render = render
Exemplo n.º 30
0
    def Dump(self):
        result = Decoration.Dump(self)
        result['Annotations'] = self.Annotations.keys()
        result['BusinessType'] = self.BusinessType

        return result
Exemplo n.º 31
0
 def __init__(self) :
     Decoration.__init__(self)
Exemplo n.º 32
0
    def __init__(self) :
        Decoration.__init__(self)

        self.ResidentCount = 0
        self.ResidenceList = {}
Exemplo n.º 33
0
    def __init__(self) :
        Decoration.__init__(self)

        self.PeakEmployeeCount = 0
        self.PeakCustomerCount = 0
Exemplo n.º 34
0
    def __init__(self, name, itype='priority', render=True):
        Decoration.__init__(self)

        self.Name = name
        self.IntersectionType = itype
        self.Render = render
Exemplo n.º 35
0
    def __init__(self, x, y) :
        Decoration.__init__(self)

        self.X = x
        self.Y = y
Exemplo n.º 36
0
    def __init__(self):
        Decoration.__init__(self)

        self.PeakEmployeeCount = 0
        self.PeakCustomerCount = 0
Exemplo n.º 37
0
    def __init__(self, x, y):
        Decoration.__init__(self)

        self.X = x
        self.Y = y
Exemplo n.º 38
0
 def Dump(self):
     return Decoration.Dump(self)
Exemplo n.º 39
0
    def __init__(self):
        Decoration.__init__(self)

        self.ResidentCount = 0
        self.ResidenceList = {}
Exemplo n.º 40
0
    def Dump(self):
        result = Decoration.Dump(self)

        result['ResidentsPerNode'] = self.ResidentsPerNode

        return result
Exemplo n.º 41
0
    def Dump(self):
        result = Decoration.Dump(self)
        result['VehicleName'] = self.VehicleName
        result['VehicleType'] = self.VehicleType

        return result
Exemplo n.º 42
0
 def __init__(self):
     Decoration.__init__(self)
Exemplo n.º 43
0
    def Dump(self):
        result = Decoration.Dump(self)
        result['PreferenceMap'] = self.PreferenceMap

        return result
Exemplo n.º 44
0
 def __init__(self, longueur=0, couleur="", masse=0):
     Decoration.__init__(self, couleur, masse)
     self._longueur = longueur