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
,MapEntry
,MarkerMapEntry
,UseCount
,Cacheable
-
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 TypeMethodDescriptionint
Compares two objects by comparing their codes.boolean
Returns the visible name to use in the HTML <OPTION> element.int
Returns the percentage of total uses for this Runway.int
Returns the number of times this object has been used.int
hashCode()
void
setPercentage
(int pct) Updates the percentage of total uses for this Runway.void
setUseCount
(int uses) Updates the number of times this Runway was used.Methods inherited from class org.deltava.beans.navdata.Runway
contains, equals, getAlternateCode, getComboAlias, getHeading, getIconCode, getIconColor, getInfoBox, getLength, getMagVar, getPaletteCode, getSimulator, getSurface, getThreshold, getThresholdLength, getWidth, isAltNew, matches, setAlternateCode, setHeading, setLength, setMagVar, setSimulator, setSurface, setThresholdLength, setWidth
Methods inherited from class org.deltava.beans.navdata.NavigationFrequencyBean
getFrequency, setFrequency
Methods inherited from class org.deltava.beans.navdata.NavigationDataBean
cacheKey, clone, create, create, getAirway, getCode, getHTMLPosition, getHTMLTitle, getLatitude, getLongitude, getName, getPosition, getRegion, getType, isCoordinates, isInTerminalRoute, setAirway, setCode, setName, setRegion, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo
-
Constructor Details
-
Method Details
-
getUseCount
public int getUseCount()Description copied from interface:UseCount
Returns the number of times this object has been used.- Specified by:
getUseCount
in 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:ComboAlias
Returns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboName
in interfaceComboAlias
- Overrides:
getComboName
in classRunway
- Returns:
- The visible name for this entry
-