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
,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 String
Returns the airway code.int
Returns the Airport's altitude.getICAO()
Returns the Airport's ICAO code.int
Returns the Google Earth icon code.Return the default Google Maps icon color.Returns the default Google Maps infobox text.int
Returns the Google Earth palette code.void
setAltitude
(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, getLatitude, getLongitude, getName, getPosition, getRegion, getType, hashCode, isCoordinates, isInTerminalRoute, setAirway, setCode, setName, setRegion, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
getICAO
in interfaceICAOAirport
- Returns:
- the ICAO code
-
getAltitude
public int getAltitude()Returns the Airport's altitude.- Specified by:
getAltitude
in 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:
getAirway
in classNavigationDataBean
- Returns:
- the airway code
-
getIconColor
Return the default Google Maps icon color.- Specified by:
getIconColor
in interfaceMarkerMapEntry
- Returns:
- MapEntry.GREEN
-
getPaletteCode
public int getPaletteCode()Returns the Google Earth palette code.- Specified by:
getPaletteCode
in interfaceIconMapEntry
- Returns:
- 2
-
getIconCode
public int getIconCode()Returns the Google Earth icon code.- Specified by:
getIconCode
in interfaceIconMapEntry
- Returns:
- 48
-
getInfoBox
Returns the default Google Maps infobox text.- Specified by:
getInfoBox
in interfaceMapEntry
- Returns:
- an HTML String
-