RailStationDemand¶
-
public class
RailStationDemand
¶ This class stores passenger rail demand = station usage data (entries + exists).
Author: Milan Lovric
Constructors¶
Methods¶
addStation¶
-
public void
addStation
(RailStation station)¶ Add a rail station data to the rail demand (overwrites existing one).
Parameters: - station –
calculateDailyZonalUsageAverage¶
calculateDailyZonalUsageTotal¶
calculateYearlyZonalUsageAverage¶
calculateYearlyZonalUsageTotal¶
createListOfStationsWithinEachLAD¶
-
public HashMap<String, List<RailStation>>
createListOfStationsWithinEachLAD
()¶ Creates a list of stations within each LAD.
Returns: List of stations within each LAD.
getRailDemandList¶
-
public List<RailStation>
getRailDemandList
()¶ Getter method for the rail demand list.
Returns: Rail demand list
getRailDemandMap¶
-
public Map<Integer, RailStation>
getRailDemandMap
()¶ Getter method for the rail demand map.
Returns: Rail demand map.
printRailDemand¶
printRailDemandNLCSorted¶
printRailDemandNameSorted¶
printRailDemandUsageSorted¶
removeStation¶
-
public boolean
removeStation
(int NLC)¶ Remove station with a given NLC code.
Parameters: - NLC – Station code.
Returns: true if station existed in demand and was successfully removed.