org.deltava.beans.navdata
Class AirportLocation

java.lang.Object
  extended by org.deltava.beans.navdata.NavigationDataBean
      extended by org.deltava.beans.navdata.AirportLocation
All Implemented Interfaces:
Cloneable, Comparable<NavigationDataBean>, GeoLocation, GeospaceLocation, IconMapEntry, MapEntry, MarkerMapEntry, ICAOAirport

public class AirportLocation
extends NavigationDataBean
implements ICAOAirport

A class to store airport location data.

Since:
1.0
Version:
2.7
Author:
Luke

Field Summary
 
Fields inherited from class org.deltava.beans.navdata.NavigationDataBean
AIRPORT, INT, NAVTYPE_NAMES, NDB, RUNWAY, VOR
 
Fields inherited from interface org.deltava.beans.GeoLocation
ALL, DEGREE_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE
 
Fields inherited from interface org.deltava.beans.MapEntry
BLUE, BROWN, COLORS, GREEN, GREY, LINECOLORS, ORANGE, PURPLE, RED, WHITE, YELLOW
 
Constructor Summary
AirportLocation(Airport a)
          Creates a Airport location from an Airport bean.
AirportLocation(double lat, double lon)
          Creates a new Airport location object.
 
Method Summary
 String getAirway()
          Returns the airway code.
 int getAltitude()
          Returns the Airport's altitude.
 String getICAO()
          Returns the Airport's ICAO code.
 int getIconCode()
          Returns the Google Earth icon code.
 String getIconColor()
          Return the default Google Maps icon color.
 String getInfoBox()
          Returns the default Google Maps infobox text.
 int getPaletteCode()
          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, create, distanceTo, equals, getCode, getHTMLPosition, getHTMLTitle, getLatitude, getLongitude, getName, getPosition, getRegion, getType, getTypeName, hashCode, isCoordinates, isInTerminalRoute, setAirway, setCode, setName, setRegion, setType, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deltava.beans.GeoLocation
getLatitude, getLongitude
 

Constructor Detail

AirportLocation

public AirportLocation(double lat,
                       double lon)
Creates a new Airport location object.

Parameters:
lat - the latitude in degrees
lon - the longitude in degrees

AirportLocation

public AirportLocation(Airport a)
Creates a Airport location from an Airport bean.

Parameters:
a - the Airport bean
Method Detail

getICAO

public String getICAO()
Returns the Airport's ICAO code.

Specified by:
getICAO in interface ICAOAirport
Returns:
the ICAO code

getAltitude

public int getAltitude()
Returns the Airport's altitude.

Specified by:
getAltitude in interface GeospaceLocation
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 < -1500 or > 29000

getAirway

public final String getAirway()
Returns the airway code.

Overrides:
getAirway in class NavigationDataBean
Returns:
the airway code

getIconColor

public String getIconColor()
Return the default Google Maps icon color.

Specified by:
getIconColor in interface MarkerMapEntry
Returns:
MapEntry.GREEN

getPaletteCode

public int getPaletteCode()
Returns the Google Earth palette code.

Specified by:
getPaletteCode in interface IconMapEntry
Returns:
2

getIconCode

public int getIconCode()
Returns the Google Earth icon code.

Specified by:
getIconCode in interface IconMapEntry
Returns:
48

getInfoBox

public String getInfoBox()
Returns the default Google Maps infobox text.

Specified by:
getInfoBox in interface MapEntry
Returns:
an HTML String


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.