Class AirportLocation
java.lang.Object
org.deltava.beans.navdata.NavigationDataBean
org.deltava.beans.navdata.AirportLocation
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<NavigationDataBean>,GeoLocation,GeospaceLocation,IconMapEntry,LabelMapEntry,MapEntry,MarkerMapEntry,ICAOAirport,Cacheable
A class to store airport location data.
- Since:
- 1.0
- Version:
- 6.4
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from interface org.deltava.beans.GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILES -
Constructor Summary
ConstructorsConstructorDescriptionAirportLocation(double lat, double lon) Creates a new Airport location object.Creates a Airport location from an Airport bean. -
Method Summary
Modifier and TypeMethodDescriptionfinal StringReturns the airway code.intReturns the Airport's altitude.getICAO()Returns the Airport's ICAO code.intReturns the Google Earth icon code.Return the default Google Maps icon color.Returns the default Google Maps infobox text.intReturns the Google Earth palette code.voidsetAltitude(int alt) Updates the Airport's altitude.Methods inherited from class org.deltava.beans.navdata.NavigationDataBean
cacheKey, clone, compareTo, create, create, equals, getCode, getHTMLPosition, getHTMLTitle, getLabel, getLatitude, getLongitude, getName, getRegion, getType, hashCode, isCoordinates, isInTerminalRoute, setAirway, setCode, setName, setRegion, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo, getLatitude, getLongitude
-
Constructor Details
-
AirportLocation
public AirportLocation(double lat, double lon) Creates a new Airport location object.- Parameters:
lat- the latitude in degreeslon- the longitude in degrees
-
AirportLocation
Creates a Airport location from an Airport bean.- Parameters:
a- the Airport bean
-
-
Method Details
-
getICAO
Returns the Airport's ICAO code.- Specified by:
getICAOin interfaceICAOAirport- Returns:
- the ICAO code
-
getAltitude
public int getAltitude()Returns the Airport's altitude.- Specified by:
getAltitudein interfaceGeospaceLocation- Returns:
- the altitude in feet above mean sea level
-
setAltitude
public void setAltitude(int alt) Updates the Airport's altitude.- Parameters:
alt- the altitude in feet above mean sea level- Throws:
IllegalArgumentException- if alt invalid input: '<' -1500 or > 29000
-
getAirway
Returns the airway code.- Overrides:
getAirwayin classNavigationDataBean- Returns:
- the airway code
-
getIconColor
Return the default Google Maps icon color.- Specified by:
getIconColorin interfaceMarkerMapEntry- Returns:
- MapEntry.GREEN
-
getPaletteCode
public int getPaletteCode()Returns the Google Earth palette code.- Specified by:
getPaletteCodein interfaceIconMapEntry- Returns:
- 2
-
getIconCode
public int getIconCode()Returns the Google Earth icon code.- Specified by:
getIconCodein interfaceIconMapEntry- Returns:
- 48
-
getInfoBox
Returns the default Google Maps infobox text.- Specified by:
getInfoBoxin interfaceMapEntry- Returns:
- an HTML String
-