Class RunwayDistance
java.lang.Object
org.deltava.beans.navdata.NavigationDataBean
org.deltava.beans.navdata.NavigationFrequencyBean
org.deltava.beans.navdata.Runway
org.deltava.beans.acars.RunwayDistance
- All Implemented Interfaces:
Serializable, Cloneable, Comparable<NavigationDataBean>, ComboAlias, RunwayLengthUsage, GeoLocation, IconMapEntry, LabelMapEntry, MapEntry, MarkerMapEntry, Cacheable
A bean to store ACARS takeoff/landing runway data.
- Since:
- 2.6
- Version:
- 11.1
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from interface GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILESModifier and TypeFieldDescriptionstatic final intFormat the Longitude and Latitude.static final doubleSize of a degree in feet.static final doubleSize of a degree in miles.static final intSize of a mile in feet.static final String[]Latitude directions.static final intFormat the Latitude only.static final String[]Longitude directions.static final intFormat the Longitude only.static final intRadius of the Earth in miles.Fields inherited from interface MapEntry
BLUE, BROWN, COLORS, GREEN, GREY, ORANGE, PURPLE, RED, WHITE, YELLOWModifier and TypeFieldDescriptionstatic final StringBlue Google Maps icon, displayed as $static/img/maps/point_blue.pngstatic final StringBrown Google Maps icon, displayed as $static/img/maps/point_brown.pngstatic final String[]All Google Maps icon colors.static final StringGreen Google Maps icon, displayed as $static/img/maps/point_green.pngstatic final StringGrey Google Maps icon, displayed as $static/img/maps/point_grey.pngstatic final StringOrange Google Maps icon, displayed as $static/img/maps/point_orange.pngstatic final StringPurple Google Maps icon, displayed as $static/img/maps/point_purple.pngstatic final StringRed Google Maps icon, displayed as $static/img/maps/point_red.pngstatic final StringWhite Google Maps icon, displayed as $static/img/maps/point_white.pngstatic final StringYellow Google Maps icon, displayed as $static/img/maps/point_yellow.png -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(RunwayDistance rd2) Compares two RunwayDistance beans by comparing Runway ID and distance.intReturns the runway usage from the threshold.Methods inherited from class Runway
contains, equals, equals, getAlternateCode, getComboAlias, getComboName, getHeading, getIconCode, getIconColor, getInfoBox, getLabel, getLength, getMagVar, getPaletteCode, getSimulator, getSurface, getThreshold, getThresholdLength, getWidth, hashCode, isAltNew, matches, setAlternateCode, setHeading, setLength, setMagVar, setSimulator, setSurface, setThresholdLength, setWidthModifier and TypeMethodDescriptionbooleancontains(GeoLocation loc) Returns if a particular point is on this runway.booleanbooleanCompares two Runways by comparing their airport and runway codes.Returns the alternate code for this Runway.Returns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.intReturns the runway heading.intReturns the Google Earth icon code.Returns the icon color for this entry if displayed in a Google Map.Returns the default Google Maps infobox text.getLabel()Returns the label text.intReturns the length of the runway.doubleReturns the magnetic variation at the runway location.intReturns the Google Earth palette code.Returns the simulator this runway exists in.Returns the runway surface type.Returns the position of the displaced runway threshold, if any.intReturns the length of the runway threshold.intgetWidth()Returns the width of the runway.inthashCode()booleanisAltNew()Returns if the alternate code is the newer code for the Runway.booleanReturns whether a runway code matches the current or alternate codes used for this Runway.voidsetAlternateCode(String altCode, boolean isNew) If this runway has been renumbered, the other runway code.voidsetHeading(int hdg) Updates the runway heading.voidsetLength(int len) Updates the length of the runway.voidsetMagVar(double mv) Updates the magnetic variation at the runway location.voidsetSimulator(Simulator sim) Updates the Simulator which this runway exists in.voidUpdates the runway surface type.voidsetThresholdLength(int len) Updates the length of the runway threshold.voidsetWidth(int w) Updates the width of the runway.Methods inherited from class NavigationFrequencyBean
getFrequency, setFrequencyModifier and TypeMethodDescriptionReturns the navaid's frequency.voidsetFrequency(String freq) Updates the navaid's frequency.Methods inherited from class NavigationDataBean
cacheKey, clone, compareTo, create, create, getAirway, getCode, getHTMLPosition, getHTMLTitle, getLatitude, getLongitude, getName, getRegion, getType, isCoordinates, isInTerminalRoute, setAirway, setCode, setName, setRegion, toStringModifier 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.Returns 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.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.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 interface GeoLocation
distanceFeet, distanceToModifier and TypeMethodDescriptiondefault intCalculates the distance between two points in feet.default intCalculates the distance between two GeoLocations.Methods inherited from interface RunwayLengthUsage
getLength, getPercentageModifier and TypeMethodDescriptionintReturns the runway length.default doubleReturns the percentage of the runway used.
-
Constructor Details
-
Method Details
-
getDistance
public int getDistance()Description copied from interface:RunwayLengthUsageReturns the runway usage from the threshold.- Specified by:
getDistancein interfaceRunwayLengthUsage- Returns:
- the distance in feet.
-
equals
Compares two RunwayDistance beans by comparing Runway ID and distance.- Parameters:
rd2- the RunwayDistance bean- Returns:
- TRUE if the runway and distance match, otherwise FALSE
-