RailDemandModel¶
-
public class
RailDemandModel¶
Constructors¶
RailDemandModel¶
-
public
RailDemandModel(String baseYearRailStationUsageFile, String populationFile, String GVAFile, String elasticitiesFile, String railStationJourneyFaresFile, String railStationGeneralisedJourneyTimesFile, String carZonalJourneyCostsFile, String railTripRatesFile, List<Intervention> interventions, Properties props)¶ Constructor for the rail demand model.
Parameters: - baseYearRailStationUsageFile – Base year rail station usage file (demand).
- populationFile – Population file.
- GVAFile – GVA file.
- elasticitiesFile – Elasticites file.
- railStationJourneyFaresFile – Rail fares file.
- railStationGeneralisedJourneyTimesFile – GJT file.
- carZonalJourneyCostsFile – Zonal car journey costs file.
- railTripRatesFile – Rail trip rates file.
- interventions – List of interventions.
- props – Properties.
Throws: - IOException –
- FileNotFoundException –
Methods¶
addNLCofDevelopedStation¶
-
public void
addNLCofDevelopedStation(int NLC)¶ Adds NLC of a newly built rail station.
Parameters: - NLC – Id of a newly built rail station.
addYearOfDevelopment¶
-
public void
addYearOfDevelopment(int year)¶ Adds a year in which a new rail station is built.
Parameters: - year – Year in which a new rail station is built.
getRailStationDemand¶
-
public RailStationDemand
getRailStationDemand(int year)¶ Getter method for the passenger rail station demand in a given year.
Parameters: - year – Year for which the demand is requested.
Returns: Rail station demand with total passenger counts (entry + exit).
predictAndSaveRailwayDemands¶
-
public void
predictAndSaveRailwayDemands(int toYear, int fromYear)¶ Predicts rail station demand (total passenger counts at each station) 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.
predictRailwayDemand¶
-
public void
predictRailwayDemand(int predictedYear, int fromYear)¶ Predicts passenger railway demand (passenger counts at each station). Rail station demand for fromYear needs to be contained in the memory.
Parameters: - predictedYear – The year for which the demand is predicted.
- fromYear – The year from which demand the prediction is made.
predictRailwayDemandUsingResultsOfFromYear¶
-
public void
predictRailwayDemandUsingResultsOfFromYear(int predictedYear, int fromYear)¶ Predicts passenger railway demand (passenger counts at each station). 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.
predictRailwayDemands¶
-
public void
predictRailwayDemands(int toYear, int baseYear)¶ Predicts rail station demand (total passenger counts at each station) for all years from baseYear to toYear.
Parameters: - toYear – The final year for which the demand is predicted.
- baseYear – The base year from which the predictions are made.
printYearsOfNewStations¶
-
public void
printYearsOfNewStations()¶ Prints years in which development of new rail stations takes place.
saveAllResults¶
-
public void
saveAllResults(int year)¶ Saves all results into the output folder.
Parameters: - year – Year of the data.
saveRailStationDemand¶
saveZonalRailStationDemand¶
setRailStationDemand¶
-
public void
setRailStationDemand(int year, RailStationDemand demand)¶ Setter method for the passenger rail station demand in a given year.
Parameters: - year – Year for which the demand is set.
- demand – Rail station demand.