Class Runway
java.lang.Object
org.deltava.beans.navdata.NavigationDataBean
org.deltava.beans.navdata.NavigationFrequencyBean
org.deltava.beans.navdata.Runway
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<NavigationDataBean>,ComboAlias,GeoLocation,IconMapEntry,LabelMapEntry,MapEntry,MarkerMapEntry,Cacheable
- Direct Known Subclasses:
RunwayDistance,RunwayUse
A bean to store Runway information.
- 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
Constructors -
Method Summary
Modifier 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 org.deltava.beans.navdata.NavigationFrequencyBean
getFrequency, setFrequencyMethods inherited from class org.deltava.beans.navdata.NavigationDataBean
cacheKey, clone, compareTo, create, create, getAirway, getCode, getHTMLPosition, getHTMLTitle, getLatitude, getLongitude, getName, getRegion, getType, isCoordinates, isInTerminalRoute, setAirway, setCode, setName, setRegion, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo
-
Constructor Details
-
Runway
public Runway(double lat, double lon) Creates a new Runway bean.- Parameters:
lat- the latitude of the start of the runwaylon- the longitude of the start of the runway
-
-
Method Details
-
getLabel
Description copied from interface:LabelMapEntryReturns the label text.- Specified by:
getLabelin interfaceLabelMapEntry- Overrides:
getLabelin classNavigationDataBean- Returns:
- the label text
-
getLength
public int getLength()Returns the length of the runway.- Returns:
- the length in feet
- See Also:
-
getWidth
public int getWidth()Returns the width of the runway.- Returns:
- the width in feet
- See Also:
-
getHeading
public int getHeading()Returns the runway heading.- Returns:
- the heading in degrees
- See Also:
-
getThresholdLength
public int getThresholdLength()Returns the length of the runway threshold.- Returns:
- the length in feet
- See Also:
-
getThreshold
Returns the position of the displaced runway threshold, if any.- Returns:
- the GeoLocation of the threshold
-
getSurface
-
getMagVar
public double getMagVar()Returns the magnetic variation at the runway location.- Returns:
- the variation in degrees
- See Also:
-
getAlternateCode
Returns the alternate code for this Runway.- Returns:
- the alternate code, or null if none
- See Also:
-
isAltNew
public boolean isAltNew()Returns if the alternate code is the newer code for the Runway.- Returns:
- TRUE if the newer code, otherwise FALSE
-
getSimulator
Returns the simulator this runway exists in.- Returns:
- a Simulator
- See Also:
-
setLength
public void setLength(int len) Updates the length of the runway.- Parameters:
len- the length in feet- See Also:
-
setWidth
public void setWidth(int w) Updates the width of the runway.- Parameters:
w- the width in feet- See Also:
-
setThresholdLength
public void setThresholdLength(int len) Updates the length of the runway threshold.- Parameters:
len- the length in feet- See Also:
-
setHeading
public void setHeading(int hdg) Updates the runway heading.- Parameters:
hdg- the heading in degrees- See Also:
-
setSimulator
Updates the Simulator which this runway exists in.- Parameters:
sim- a Simulator, or UNKNOWN for any- See Also:
-
setMagVar
public void setMagVar(double mv) Updates the magnetic variation at the runway location.- Parameters:
mv- the variation in degrees- See Also:
-
setAlternateCode
If this runway has been renumbered, the other runway code.- Parameters:
altCode- the previous runway code, or null if noneisNew- TRUE if a newer code for the runway, otherwise FALSE
-
contains
Returns if a particular point is on this runway.- Parameters:
loc- a GeoLocation- Returns:
- TRUE if on the runway, otherwise FALSE
-
getIconColor
Description copied from interface:MarkerMapEntryReturns the icon color for this entry if displayed in a Google Map.- Specified by:
getIconColorin interfaceMarkerMapEntry- Returns:
- the icon color
-
getPaletteCode
public int getPaletteCode()Description copied from interface:IconMapEntryReturns the Google Earth palette code.- Specified by:
getPaletteCodein interfaceIconMapEntry- Returns:
- the palette code
-
getIconCode
public int getIconCode()Description copied from interface:IconMapEntryReturns the Google Earth icon code.- Specified by:
getIconCodein interfaceIconMapEntry- Returns:
- the icon code within the palette
-
matches
Returns whether a runway code matches the current or alternate codes used for this Runway.- Parameters:
rwCode- the runway code- Returns:
- TRUE if the code matches the current code, alternate code or "ALL", otherwise FALSE
-
getInfoBox
Description copied from class:NavigationFrequencyBeanReturns the default Google Maps infobox text.- Specified by:
getInfoBoxin interfaceMapEntry- Overrides:
getInfoBoxin classNavigationFrequencyBean- Returns:
- an HTML String
-
getComboName
Description copied from interface:ComboAliasReturns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboNamein interfaceComboAlias- Returns:
- The visible name for this entry
-
getComboAlias
Description copied from interface:ComboAliasReturns the alias to use in the HTML <OPTION> element.- Specified by:
getComboAliasin interfaceComboAlias- Returns:
- The alias for this entry
-
hashCode
public int hashCode()- Overrides:
hashCodein classNavigationDataBean
-
equals
- Overrides:
equalsin classNavigationDataBean
-