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).
Methods¶
getContinent¶
-
public ContinentCode
getContinent
()¶ Getter method for the continent in which the airport is located.
Returns: ContinentCode continent.
getCountry¶
getIataCode¶
getOurAirportsName¶
getRunwayCapacity¶
-
public long
getRunwayCapacity
()¶ Getter method for the airport runway capacity.
Returns: Runway capacity.