Exemple #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
Exemple #2
0
    def __init__(self, scheduleTripStatus, trip):
        utils.objTypeCheck(scheduleTripStatus, ScheduleTripTransactionStatus,
                           "scheduleTripStatus")
        utils.objTypeCheck(trip, Trip, "trip")

        self.scheduleTripStatus = scheduleTripStatus
        self.trip = trip
Exemple #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
Exemple #4
0
    def __init__(self, completeTripTransactionStatus, trip):
        utils.objTypeCheck(completeTripTransactionStatus,
                           CompleteTripTransactionStatus,
                           "completeTripTransactionStatus")
        utils.objTypeCheck(trip, Trip, "trip")

        self.completeTripTransactionStatus = completeTripTransactionStatus
        self.trip = trip
Exemple #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
Exemple #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
Exemple #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
    def __init__(self, car, carDriver):
        utils.objTypeCheck(car, Car, "car")
        utils.objTypeCheck(carDriver, CarDriver, "carDriver")

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

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

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