Airport

public abstract class Airport

This class stores information about an airport.

Author:Milan Lovric

Constructors

Airport

public Airport(String iataCode, String caaName, String ourAirportsName, double longitude, double latitude, String countryCode, String continentCode, long terminalCapacity, long runwayCapacity)

Constructor for the airport.

Parameters:
  • iataCode – Airport IATA code.
  • caaName – Airport name in CAA datasets.
  • ourAirportsName – Airport name in ourAirports dataset.
  • longitude – Longitude coordinate.
  • latitude – Latitude coordinate.
  • countryCode – Code of the country in which the airport is located.
  • continentCode – Code of the continent in which the airport is located.
  • terminalCapacity – Airport terminal capacity (max number of passengers that can be processed).
  • runwayCapacity – Airport runway capacity (max number of flights that can be processed).

Airport

public Airport(Airport airport)

Constructor for an airport.

Parameters:
  • airport – Airport which data is going to be copied.

Methods

getCAAName

public String getCAAName()

Getter method for the airport CAA name.

Returns:CAA name.

getContinent

public ContinentCode getContinent()

Getter method for the continent in which the airport is located.

Returns:ContinentCode continent.

getCountry

public Locale getCountry()

Getter method for the country in which the airport is located.

Returns:Country locale.

getIataCode

public String getIataCode()

Getter method for the IATA code of the station.

Returns:IATA code.

getLatitude

public double getLatitude()

Getter method for Latitude.

Returns:Latitude.

getLongitude

public double getLongitude()

Getter method for longitude.

Returns:Longitude.

getOurAirportsName

public String getOurAirportsName()

Getter method for the ourAirports name.

Returns:OurAirports name.

getRunwayCapacity

public long getRunwayCapacity()

Getter method for the airport runway capacity.

Returns:Runway capacity.

getTerminalCapacity

public long getTerminalCapacity()

Getter method for the airport terminal capacity.

Returns:Terminal capacity.

toString

public String toString()