RailStation¶
-
public class
RailStation
¶ This class stores information about a rail station.
Author: Milan Lovric
Constructors¶
RailStation¶
-
public
RailStation
(int nlc, RailModeType mode, String stationName, String naptanName, int easting, int northing, int yearUsage, double dayUsage, int runDays, String ladCode, String ladName, ElasticityArea area)¶ Constructor for a station.
Parameters: - nlc – National Location Code.
- mode – Which mode is served by this station.
- stationName – Station name.
- naptanName – Longer name from NaPTAN.
- easting – Easting coordinate.
- northing – Northing coordinate.
- yearUsage – Yearly station usage (entries and exits combined).
- dayUsage – Daily station usage (yearly usage divided by the number of operational days in a year).
- runDays – The number of operational days in a year.
- ladCode – LAD code of the zone in which the station is located.
- ladName – LAD name of the zone in which the station is located.
- area – Elasticity area in which the station is located.
RailStation¶
-
public
RailStation
(RailStation station)¶ Constructor for a station.
Parameters: - station – Rail station which data is going to be copied.
Methods¶
getArea¶
-
public ElasticityArea
getArea
()¶ Getter method for the elasticity area in which station is located.
Returns: LAD name.
getLADCode¶
getLADName¶
getMode¶
-
public RailModeType
getMode
()¶ Getter method for the rail mode type.
Returns: Rail mode type.
getNLC¶
-
public int
getNLC
()¶ Getter method for the NLC (National Location Code) of the station.
Returns: NLC.
getNaPTANName¶
getRunDays¶
-
public int
getRunDays
()¶ Getter method for number of operational days.
Returns: Number of operaiontal days.
setDailyUsage¶
-
public void
setDailyUsage
(double usage)¶ Setter method for daily usage.
Parameters: - usage – Daily usage.