コード例 #1
0
 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
コード例 #2
0
 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
コード例 #3
0
 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
コード例 #4
0
 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
コード例 #5
0
 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
コード例 #6
0
 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
コード例 #7
0
 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