コード例 #1
0
 def __init__(self,obj,name='Object'):
     
     Service.__init__(self)
     
     self.name    = name
     self._object = obj
     
     self.start()
コード例 #2
0
    def __init__(self, driver, vehicle, service):
        """Creates a DetailedService object, subclass of Service.

        Requires: driver is a Driver object, vehicle is a Vehicle object and service is a Service object.
        Ensures: a DetailedService object - a Service object enriched with three
        attributes: drivers' accumulated time and vehicles' Autonomy and Kms done.
        """

        Service.__init__(self, service.getServiceDriver(), service.getServicePlate(), service.getServiceClient(), \
                         service.getServiceDepartHour(), service.getServiceArrivalHour(), service.getServiceCircuit(), \
                         service.getServiceCircuitKms(), service.getServiceDriverStatus())
        self._accumTime = driver.getDriverAccumTime()
        self._vehicleKmsDone = vehicle.getVehicleKmsDone()
        self._vehicleAutonomy = vehicle.getVehicleAutonomy()
コード例 #3
0
    def __init__(self, driver, vehicle, service):
        """Creates a DetailedService object, subclass of Service.

        Requires: driver is a Driver object, vehicle is a Vehicle object and service is a Service object.
        Ensures: a DetailedService object - a Service object enriched with three
        attributes: drivers' accumulated time and vehicles' Autonomy and Kms done.
        """

        Service.__init__(self, service.getServiceDriver(), service.getServicePlate(), service.getServiceClient(), \
                         service.getServiceDepartHour(), service.getServiceArrivalHour(), service.getServiceCircuit(), \
                         service.getServiceCircuitKms(), service.getServiceDriverStatus())
        self._accumTime = driver.getDriverAccumTime()
        self._vehicleKmsDone = vehicle.getVehicleKmsDone()
        self._vehicleAutonomy = vehicle.getVehicleAutonomy()
コード例 #4
0
ファイル: TCPService.py プロジェクト: ojashvirautela/citcoms
 def __init__(self, name=None):
     Service.__init__(self, name)
     return
コード例 #5
0
 def __init__(self, parent):
     Service.__init__(self, self.serviceID, parent)
     self.initData()
コード例 #6
0
 def __init__(self, name, thisPort, nodePort):
     Service.__init__(self, name, thisPort, nodePort)
     self.mySimMap = {}
コード例 #7
0
ファイル: UDPService.py プロジェクト: Alex-Song/vmaf
 def __init__(self, name=None):
     Service.__init__(self, name)
     return
コード例 #8
0
 def __init__(self, parent):
     Service.__init__(self, self.serviceID, parent)
     self.initData()