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.

getDayUsage

public double getDayUsage()

Getter method for daily usage.

Returns:Daily usage.

getEasting

public int getEasting()

Getter method for easting.

Returns:Easting.

getLADCode

public String getLADCode()

Getter method for the LAD code in which station is located.

Returns:LAD code.

getLADName

public String getLADName()

Getter method for the LAD name in which station is located.

Returns:LAD name.

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

public String getNaPTANName()

Getter method for the station NaPTAN name.

Returns:NaPTAN name.

getName

public String getName()

Getter method for the station name.

Returns:Name.

getNorthing

public int getNorthing()

Getter method for Northing.

Returns:Northing.

getRunDays

public int getRunDays()

Getter method for number of operational days.

Returns:Number of operaiontal days.

getYearlyUsage

public int getYearlyUsage()

Getter method for yearly usage.

Returns:Yearly usage.

setDailyUsage

public void setDailyUsage(double usage)

Setter method for daily usage.

Parameters:
  • usage – Daily usage.

setYearlyUsage

public void setYearlyUsage(int usage)

Setter method for yearly usage.

Parameters:
  • usage – Yearly usage.

toString

public String toString()