Class RunwayUse

All Implemented Interfaces:
Serializable, Cloneable, Comparable<NavigationDataBean>, ComboAlias, GeoLocation, IconMapEntry, MapEntry, MarkerMapEntry, UseCount, Cacheable

public class RunwayUse extends Runway implements UseCount
A bean to store runway and usage data.
Since:
10.2
Version:
11.1
Author:
Luke
See Also:
  • Constructor Details

    • RunwayUse

      public RunwayUse(Runway r)
      Creates a RunwayUsage bean from a Runway.
      Parameters:
      r - the Runway
  • 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 interface UseCount
      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

      public int hashCode()
      Overrides:
      hashCode in class Runway
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Runway
    • getComboName

      public String getComboName()
      Description copied from interface: ComboAlias
      Returns the visible name to use in the HTML <OPTION> element.
      Specified by:
      getComboName in interface ComboAlias
      Overrides:
      getComboName in class Runway
      Returns:
      The visible name for this entry
    • compareTo

      public int compareTo(NavigationDataBean nd2)
      Description copied from class: NavigationDataBean
      Compares two objects by comparing their codes. If the codes are equal, then their item types and then distances from point 0,0 are compared.
      Specified by:
      compareTo in interface Comparable<NavigationDataBean>
      Overrides:
      compareTo in class NavigationDataBean