Class NavigationDataBean
java.lang.Object
org.deltava.beans.navdata.NavigationDataBean
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<NavigationDataBean>,GeoLocation,IconMapEntry,LabelMapEntry,MapEntry,MarkerMapEntry,Cacheable
- Direct Known Subclasses:
AirportLocation,Gate,Intersection,NavigationFrequencyBean
public abstract class NavigationDataBean
extends Object
implements Cloneable, Cacheable, Comparable<NavigationDataBean>, MarkerMapEntry, IconMapEntry, LabelMapEntry
A bean to store common properties for Navigation Database objects.
- Since:
- 1.0
- Version:
- 12.0
- 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
ConstructorsConstructorDescriptionNavigationDataBean(Navaid type, double lat, double lon) Creates a new Navigation Object. -
Method Summary
Modifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.clone()intCompares two objects by comparing their codes.static NavigationDataBeanCreats a bean from a unique ID that matches the ACARS dispatch client.static NavigationDataBeanCreates a bean from a type, latitude and longitude.booleanReturns if this waypoint is on an Airway.getCode()Returns the object's code.protected StringHelper method to return the Latitude/Longitude for HTML infoboxes.protected StringHelper method to return the item type and code for HTML infoboxes.getLabel()Returns the label text.final doubleReturns the latitude of this location.final doubleReturns the longitude of this location.getName()Returns the object's name.final StringReturns the ICAO region code for this entry.final NavaidgetType()Returns the object's type.inthashCode()static CodeTypeisCoordinates(String code) Returns whether a waypoint code is actually encoded coordinates.booleanReturns whether this waypoint is part of a terminal route.voidUpdates if this entry is on an airway.voidUpdates the object's code.voidUpdates the object's name.voidUpdates the ICAO region code for this entry.toString()Returns this navigation aid's unique ID in a format that matches the ACARS dispatch client.Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceToMethods inherited from interface org.deltava.beans.IconMapEntry
getIconCode, getPaletteCodeMethods inherited from interface org.deltava.beans.MapEntry
getInfoBoxMethods inherited from interface org.deltava.beans.MarkerMapEntry
getIconColor
-
Constructor Details
-
Method Details
-
getCode
-
getName
-
getLatitude
public final double getLatitude()Description copied from interface:GeoLocationReturns the latitude of this location.- Specified by:
getLatitudein interfaceGeoLocation- Returns:
- the latitude in degrees
-
getLongitude
public final double getLongitude()Description copied from interface:GeoLocationReturns the longitude of this location.- Specified by:
getLongitudein interfaceGeoLocation- Returns:
- the longitude in degrees
-
getLabel
Description copied from interface:LabelMapEntryReturns the label text.- Specified by:
getLabelin interfaceLabelMapEntry- Returns:
- the label text
-
getType
-
getRegion
Returns the ICAO region code for this entry.- Returns:
- the region code
- See Also:
-
getAirway
-
isInTerminalRoute
public boolean isInTerminalRoute()Returns whether this waypoint is part of a terminal route.- Returns:
- TRUE if part of a Terminal Route, otherwise FALSE
-
setCode
-
setName
Updates the object's name.- Parameters:
name- the name- Throws:
NullPointerException- if name is null- See Also:
-
setRegion
Updates the ICAO region code for this entry.- Parameters:
rCode- the ICAO region code- See Also:
-
setAirway
Updates if this entry is on an airway.- Parameters:
code- the airway code, or null if none
-
getHTMLTitle
Helper method to return the item type and code for HTML infoboxes.- Returns:
- the HTML-formatted code and description
- See Also:
-
getHTMLPosition
Helper method to return the Latitude/Longitude for HTML infoboxes.- Returns:
- the HTML-formatted latitude/longitude
- See Also:
-
hashCode
-
equals
-
cacheKey
-
toString
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
create
Creats a bean from a unique ID that matches the ACARS dispatch client.- Parameters:
id- the ID.- Returns:
- a NavigationDataBean
-
isCoordinates
-