def privateCarTrain(self): universalTrainData = UniversalTrainData() universalTrainData.getFromDB('7') lastWeekAmount = universalTrainData.getlastWeekAmount() lastDayAmount = universalTrainData.getlastDayAmount() lastHourAmount = universalTrainData.getlastHourAmount() actualAmount = universalTrainData.getactualAmount() privateCarTrain = PrivateCarTrain(lastWeekAmount, lastDayAmount, lastHourAmount, actualAmount) privateCarTrain.train() pass
def taxiTrain(self): universalTrainData = UniversalTrainData() universalTrainData.getFromDB('3') lastWeekAmount = universalTrainData.getlastWeekAmount() lastDayAmount = universalTrainData.getlastWeekAmount() lastHourAmount = universalTrainData.getlastHourAmount() actualAmount = universalTrainData.getactualAmount() taxiTrain = TaxiTrain(lastWeekAmount, lastDayAmount, lastHourAmount, actualAmount) taxiTrain.train() pass
def coachTrain(self): universalTrainData = UniversalTrainData() universalTrainData.getFromDB('5') lastWeekAmount = universalTrainData.getlastWeekAmount() lastDayAmount = universalTrainData.getlastDayAmount() lastHourAmount = universalTrainData.getlastHourAmount() actualAmount = universalTrainData.getactualAmount() coachTrain = CoachTrain(lastWeekAmount, lastDayAmount, lastHourAmount, actualAmount) coachTrain.train() pass
def busTrain(self): universalTrainData = UniversalTrainData() universalTrainData.getFromDB('1') lastWeekAmount = universalTrainData.getlastWeekAmount() lastDayAmount = universalTrainData.getlastDayAmount() lastHourAmount = universalTrainData.getlastHourAmount() actualAmount = universalTrainData.getactualAmount() busTrain = BusTrain(lastWeekAmount, lastDayAmount, lastHourAmount, actualAmount) busTrain.train() pass
def aviationTrain(self): universalTrainData = UniversalTrainData() universalTrainData.getFromDB('6') lastWeekAmount = universalTrainData.getlastWeekAmount() lastDayAmount = universalTrainData.getlastDayAmount() lastHourAmount = universalTrainData.getlastHourAmount() actualAmount = universalTrainData.getactualAmount() aviationTrain = AviationTrain(lastWeekAmount, lastDayAmount, lastHourAmount, actualAmount) aviationTrain.train() pass
def airportBusTrain(self): universalTrainData = UniversalTrainData() universalTrainData.getFromDB('8') lastWeekAmount = universalTrainData.getlastWeekAmount() lastDayAmount = universalTrainData.getlastDayAmount() lastHourAmount = universalTrainData.getlastDayAmount() actualAmount = universalTrainData.getactualAmount() airportBusTrain = AirportBusTrain(lastWeekAmount, lastDayAmount, lastHourAmount, actualAmount) airportBusTrain.train() pass
def subwayTrain(self): universalTrainData = UniversalTrainData() universalTrainData.getFromDB('2') lastWeekAmount = universalTrainData.getlastWeekAmount() lastDayAmount = universalTrainData.getlastDayAmount() lastHourAmount = universalTrainData.getlastHourAmount() actualAmount = universalTrainData.actualAmount subwayTrain = SubwayTrain(lastWeekAmount, lastDayAmount, lastHourAmount, actualAmount) subwayTrain.train() pass