Class RunwayUse
java.lang.Object
org.deltava.beans.navdata.NavigationDataBean
org.deltava.beans.navdata.NavigationFrequencyBean
org.deltava.beans.navdata.Runway
org.deltava.beans.navdata.RunwayUse
- All Implemented Interfaces:
Serializable, Cloneable, Comparable<NavigationDataBean>, ComboAlias, GeoLocation, IconMapEntry, LabelMapEntry, MapEntry, MarkerMapEntry, UseCount, Cacheable
-
Field Summary
Fields inherited from interface GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompares two objects by comparing their codes.booleanReturns the visible name to use in the HTML <OPTION> element.intReturns the percentage of total uses for this Runway.intReturns the number of times this object has been used.inthashCode()voidsetPercentage(int pct) Updates the percentage of total uses for this Runway.voidsetUseCount(int uses) Updates the number of times this Runway was used.Methods inherited from class Runway
contains, equals, getAlternateCode, getComboAlias, getHeading, getIconCode, getIconColor, getInfoBox, getLabel, getLength, getMagVar, getPaletteCode, getSimulator, getSurface, getThreshold, getThresholdLength, getWidth, isAltNew, matches, setAlternateCode, setHeading, setLength, setMagVar, setSimulator, setSurface, setThresholdLength, setWidthMethods inherited from class NavigationFrequencyBean
getFrequency, setFrequencyMethods inherited from class NavigationDataBean
cacheKey, clone, create, create, getAirway, getCode, getHTMLPosition, getHTMLTitle, getLatitude, getLongitude, getName, getRegion, getType, isCoordinates, isInTerminalRoute, setAirway, setCode, setName, setRegion, toStringMethods inherited from interface GeoLocation
distanceFeet, distanceTo
-
Constructor Details
-
Method Details
-
getUseCount
public int getUseCount()Description copied from interface:UseCountReturns the number of times this object has been used.- Specified by:
getUseCountin interfaceUseCount- Returns:
- the number of uses
-
getPercentage
public int getPercentage()Returns the percentage of total uses for this Runway.- Returns:
- the percentage
-
setUseCount
public void setUseCount(int uses) Updates the number of times this Runway was used.- Parameters:
uses- the number of uses
-
setPercentage
public void setPercentage(int pct) Updates the percentage of total uses for this Runway.- Parameters:
pct- the percentage
-
hashCode
-
equals
-
getComboName
Description copied from interface:ComboAliasReturns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboNamein interfaceComboAlias- Overrides:
getComboNamein classRunway- Returns:
- The visible name for this entry
-