Class NavigationDataBean
java.lang.Object
org.deltava.beans.navdata.NavigationDataBean
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<NavigationDataBean>
,GeoLocation
,IconMapEntry
,MapEntry
,MarkerMapEntry
,Cacheable
- Direct Known Subclasses:
AirportLocation
,Gate
,Intersection
,NavigationFrequencyBean
public abstract class NavigationDataBean
extends Object
implements Cloneable, Cacheable, Comparable<NavigationDataBean>, MarkerMapEntry, IconMapEntry
A bean to store common properties for Navigation Database objects.
- Since:
- 1.0
- Version:
- 11.5
- 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()
int
Compares two objects by comparing their codes.static NavigationDataBean
Creats a bean from a unique ID that matches the ACARS dispatch client.static NavigationDataBean
Creates a bean from a type, latitude and longitude.boolean
Returns if this waypoint is on an Airway.getCode()
Returns the object's code.protected String
Helper method to return the Latitude/Longitude for HTML infoboxes.protected String
Helper method to return the item type and code for HTML infoboxes.final double
Returns the latitude of this location.final double
Returns the longitude of this location.getName()
Returns the object's name.Returns the object's position.final String
Returns the ICAO region code for this entry.final Navaid
getType()
Returns the object's type.int
hashCode()
static CodeType
isCoordinates
(String code) Returns whether a waypoint code is actually encoded coordinates.boolean
Returns whether this waypoint is part of a terminal route.void
Updates if this entry is on an airway.void
Updates the object's code.void
Updates the object's name.void
Updates 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, wait
Methods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo
Methods inherited from interface org.deltava.beans.IconMapEntry
getIconCode, getPaletteCode
Methods inherited from interface org.deltava.beans.MapEntry
getInfoBox
Methods inherited from interface org.deltava.beans.MarkerMapEntry
getIconColor
-
Constructor Details
-
Method Details
-
getCode
-
getName
-
getLatitude
public final double getLatitude()Description copied from interface:GeoLocation
Returns the latitude of this location.- Specified by:
getLatitude
in interfaceGeoLocation
- Returns:
- the latitude in degrees
-
getLongitude
public final double getLongitude()Description copied from interface:GeoLocation
Returns the longitude of this location.- Specified by:
getLongitude
in interfaceGeoLocation
- Returns:
- the longitude in degrees
-
getPosition
Returns the object's position.- Returns:
- the GeoPosition of this object
- See Also:
-
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:
clone
in 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
-