def aviationTrainDatebase(self, Type):
     universalPassengerDate = UniversalPassengerDate()
     if Type == 'Day':
         lastWeekAmount = universalPassengerDate.getLastWeekAmount('6')
         lastDayAmount = universalPassengerDate.getLastDayAmount('6')
         lastHourAmount = universalPassengerDate.getLastHourAmount('6')
         actualAmount = universalPassengerDate.getActualAmount('6')
     if Type == 'Hour':
         lastWeekAmount = universalPassengerDate.getLastWeeksList('6')
         lastDayAmount = universalPassengerDate.getLastHoursList('6')
     aviationTrain = AviationTrain(lastWeekAmount, lastDayAmount,
                                   lastHourAmount, actualAmount)
     aviationTrain.predict()
 def privateCarTrainDatebase(self, Type):
     universalPassengerDate = UniversalPassengerDate()
     if Type == 'Day':
         lastWeekAmount = universalPassengerDate.getLastWeekAmount('7')
         lastDayAmount = universalPassengerDate.getLastDayAmount('7')
         lastHourAmount = universalPassengerDate.getLastHourAmount('7')
         actualAmount = universalPassengerDate.getActualAmount('7')
     if Type == 'Hour':
         lastWeekAmount = universalPassengerDate.getLastWeeksList('7')
         lastDayAmount = universalPassengerDate.getLastHoursList('7')
     privateCarTrain = PrivateCarTrain(lastWeekAmount, lastDayAmount,
                                       lastHourAmount, actualAmount)
     privateCarTrain.predict()
 def airportBusDatebase(self, Type):
     universalPassengerDate = UniversalPassengerDate()
     if Type == 'Day':
         lastWeekAmount = universalPassengerDate.getLastWeekAmount('8')
         lastDayAmount = universalPassengerDate.getLastDayAmount('8')
         lastHourAmount = universalPassengerDate.getLastHourAmount('8')
         actualAmount = universalPassengerDate.getActualAmount('8')
     if Type == 'Hour':
         lastWeekAmount = universalPassengerDate.getLastWeeksList('8')
         lastDayAmount = universalPassengerDate.getLastHoursList('8')
     # todo: 参数需要修改
     airportBusTrain = AirportBusTrain(lastWeekAmount, lastDayAmount,
                                       lastHourAmount)
     airportBusTrain.predict()