示例#1
0
    def __init__(self, carId, geoLocation, carAvailability):
        utils.objTypeCheck(geoLocation, Point, "geoLocation")
        utils.objTypeCheck(carAvailability, CarAvailability, "carAvailability")

        self.carId = carId
        self.geoLocation = geoLocation
        self.carAvailability = carAvailability
示例#2
0
    def __init__(self, scheduleTripStatus, trip):
        utils.objTypeCheck(scheduleTripStatus, ScheduleTripTransactionStatus,
                           "scheduleTripStatus")
        utils.objTypeCheck(trip, Trip, "trip")

        self.scheduleTripStatus = scheduleTripStatus
        self.trip = trip
示例#3
0
    def __init__(self, carId, carType, carModel, carLicense):
        utils.objTypeCheck(carType, CarType, "carType")

        self.carId = carId
        self.carType = carType
        self.carModel = carModel
        self.carLicense = carLicense
示例#4
0
    def __init__(self, completeTripTransactionStatus, trip):
        utils.objTypeCheck(completeTripTransactionStatus,
                           CompleteTripTransactionStatus,
                           "completeTripTransactionStatus")
        utils.objTypeCheck(trip, Trip, "trip")

        self.completeTripTransactionStatus = completeTripTransactionStatus
        self.trip = trip
示例#5
0
    def __init__(self, tripId, completeTripOption, finishLocation, paymentMode):
        # utils.objTypeCheck(finishLocation, GeoLocation, "finishLocation")
        utils.objTypeCheck(paymentMode, PaymentMode, "paymentMode")
        utils.objTypeCheck(completeTripOption, CompleteTripOption, "completeTripOption")

        self.tripId = tripId
        self.completeTripOption = completeTripOption
        self.finishLocation = finishLocation
        self.paymentMode = paymentMode
示例#6
0
    def __init__(self, carType, tripPrice, sourceLocation,
                 destinationLocation):
        utils.objTypeCheck(carType, CarType, "carType")
        # utils.objTypeCheck(sourceLocation, GeoLocation, "sourceLocation")
        # utils.objTypeCheck(destinationLocation, GeoLocation, "destinationLocation")

        self.carType = carType
        self.tripPrice = tripPrice
        self.sourceLocation = sourceLocation
        self.destinationLocation = destinationLocation
示例#7
0
    def __init__(self, tripId, carId, driverId, sourceLocation,
                 destinationLocation, startTimeInEpochs, endTimeInEpochs,
                 tripPrice, tripStatus, paymentMode):
        # utils.objTypeCheck(sourceLocation, GeoLocation, "sourceLocation")
        # utils.objTypeCheck(destinationLocation, GeoLocation, "destinationLocation")
        utils.objTypeCheck(tripStatus, TripStatus, "tripStatus")
        utils.objTypeCheck(paymentMode, PaymentMode, "paymentMode")

        self.tripId = tripId
        self.carId = carId
        self.driverId = driverId
        self.sourceLocation = sourceLocation
        self.destinationLocation = destinationLocation
        self.startTimeInEpochs = startTimeInEpochs
        self.endTimeInEpochs = endTimeInEpochs
        self.tripPrice = tripPrice
        self.tripStatus = tripStatus
        self.paymentMode = paymentMode
示例#8
0
    def __init__(self, car, carDriver):
        utils.objTypeCheck(car, Car, "car")
        utils.objTypeCheck(carDriver, CarDriver, "carDriver")

        self.car = car
        self.carDriver = carDriver
示例#9
0
 def __init__(self, carStatus):
     utils.objTypeCheck(carStatus, CarStatus, "carStatus")
     self.carStatus = carStatus
示例#10
0
    def __init__(self, tripId, finishLocation, paymentMode):
        utils.objTypeCheck(paymentMode, PaymentMode, "paymentMode")

        self.tripId = tripId
        self.finishLocation = finishLocation
        self.paymentMode = paymentMode
示例#11
0
    def __init__(self, carType, tripPrice, discountAmount):
        utils.objTypeCheck(carType, CarType, "carType")

        self.carType = carType
        self.tripPrice = tripPrice
        self.discountAmount = discountAmount