예제 #1
0
    def __str__(self):
        """A str representation of a DetailedService"""

        return Service.__str__(self) + \
               "\nAccum Time: " + self._accumTime + \
               "\nvehiclePlate: " + self._vehiclePlate + \
               "\nvehicleKmsLeft: " + self._vehicleKmsLeft + \
               "\nvehicleAutonomy: " + self._vehicleAutonomy
예제 #2
0
    def __str__(self):
        """A str representation of a DetailedService"""

        return Service.__str__(self) + \
               "\nAccum Time: " + self._accumTime + \
               "\nvehiclePlate: " + self._vehiclePlate + \
               "\nvehicleKmsLeft: " + self._vehicleKmsLeft + \
               "\nvehicleAutonomy: " + self._vehicleAutonomy