AirDemandModel

public class AirDemandModel

Main air demand prediction model (elasticity-based).

Author:Milan Lovric

Fields

baseYear

public static int baseYear

domesticAirports

public static Map<String, Airport> domesticAirports

internationalAirports

public static Map<String, Airport> internationalAirports

Constructors

AirDemandModel

public AirDemandModel(String domesticAirportsFile, String internationalAirportsFile, String baseYearDomesticPassengerFile, String baseYearInternationalPassengerFile, String populationFile, String GVAFile, String elasticitiesFile, String domesticAirportFareIndexFile, String internationalAirportFareIndexFile, String domesticTripRatesFile, String internationalTripRatesFile, List<Intervention> interventions, Properties props)

Constructor for the air demand model.

Parameters:
  • domesticAirportsFile – List of domestic airports.
  • internationalAirportsFile – List of international airports.
  • baseYearDomesticPassengerFile – Base year domestic air passenger file (demand).
  • baseYearInternationalPassengerFile – Base year international air passenger file (demand).
  • populationFile – Population file.
  • GVAFile – GVA file.
  • elasticitiesFile – Elasticities file.
  • domesticAirportFareIndexFile – Domestic airport fare index.
  • internationalAirportFareIndexFile – International airport fare index.
  • domesticTripRatesFile – Domestic trip rates file.
  • internationalTripRatesFile – International trip rates file.
  • interventions – List of interventions.
  • props – Properties.
Throws:
  • IOException
  • FileNotFoundException

Methods

getDomesticAirPassengerDemand

public InternodalPassengerDemand getDomesticAirPassengerDemand(int year)

Getter method for the air passenger demand in a given year.

Parameters:
  • year – Year for which the demand is requested.
Returns:

Air passenger demand.

getInternationalAirPassengerDemand

public InternodalPassengerDemand getInternationalAirPassengerDemand(int year)

Getter method for the air passenger demand in a given year.

Parameters:
  • year – Year for which the demand is requested.
Returns:

Air passenger demand.

predictAndSaveAirDemands

public void predictAndSaveAirDemands(int toYear, int fromYear)

Predicts air passenger demands (domestic and international) up to toYear (if flag is true, also intermediate years) and saves results.

Parameters:
  • toYear – The final year for which the demand is predicted.
  • fromYear – The year from which the predictions are made.

predictDomesticAirDemandUsingResultsOfFromYear

public void predictDomesticAirDemandUsingResultsOfFromYear(int predictedYear, int fromYear)

Predicts domestic air passenger internodal demand. Uses already existing results of the fromYear, from the output folder.

Parameters:
  • predictedYear – The year for which the demand is predicted.
  • fromYear – The year from which demand the prediction is made.

predictInternationalAirDemandUsingResultsOfFromYear

public void predictInternationalAirDemandUsingResultsOfFromYear(int predictedYear, int fromYear)

Predicts international air passenger internodal demand. Uses already existing results of the fromYear, from the output folder.

Parameters:
  • predictedYear – The year for which the demand is predicted.
  • fromYear – The year from which demand the prediction is made.

saveAllResults

public void saveAllResults(int year)

Saves all results into the output folder.

Parameters:
  • year – Year of the data.

saveDomesticAirDemand

public void saveDomesticAirDemand(int year, String outputFile)

Saves domestic air demand to an output file.

Parameters:
  • year – Year of the data.
  • outputFile – Output file name (with path).

saveInternationalAirDemand

public void saveInternationalAirDemand(int year, String outputFile)

Saves international air demand to an output file.

Parameters:
  • year – Year of the data.
  • outputFile – Output file name (with path).