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
def __init__(self, scheduleTripStatus, trip): utils.objTypeCheck(scheduleTripStatus, ScheduleTripTransactionStatus, "scheduleTripStatus") utils.objTypeCheck(trip, Trip, "trip") self.scheduleTripStatus = scheduleTripStatus self.trip = trip
def __init__(self, carId, carType, carModel, carLicense): utils.objTypeCheck(carType, CarType, "carType") self.carId = carId self.carType = carType self.carModel = carModel self.carLicense = carLicense
def __init__(self, completeTripTransactionStatus, trip): utils.objTypeCheck(completeTripTransactionStatus, CompleteTripTransactionStatus, "completeTripTransactionStatus") utils.objTypeCheck(trip, Trip, "trip") self.completeTripTransactionStatus = completeTripTransactionStatus self.trip = trip
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
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
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
def __init__(self, carStatus): utils.objTypeCheck(carStatus, CarStatus, "carStatus") self.carStatus = carStatus
def __init__(self, tripId, finishLocation, paymentMode): utils.objTypeCheck(paymentMode, PaymentMode, "paymentMode") self.tripId = tripId self.finishLocation = finishLocation self.paymentMode = paymentMode
def __init__(self, carType, tripPrice, discountAmount): utils.objTypeCheck(carType, CarType, "carType") self.carType = carType self.tripPrice = tripPrice self.discountAmount = discountAmount