def __init__(self,obj,name='Object'): Service.__init__(self) self.name = name self._object = obj self.start()
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()
def __init__(self, name=None): Service.__init__(self, name) return
def __init__(self, parent): Service.__init__(self, self.serviceID, parent) self.initData()
def __init__(self, name, thisPort, nodePort): Service.__init__(self, name, thisPort, nodePort) self.mySimMap = {}