Class ExternalRoute

All Implemented Interfaces:
Serializable, Comparable<Object>, ComboAlias, IDBean, ExternalFlightRoute, RoutePair, UseCount, Cacheable

public class ExternalRoute extends FlightRoute implements ExternalFlightRoute, UseCount
A bean to store an external Flight Route.
Since:
2.6
Version:
11.2
Author:
Luke
See Also:
  • Field Details

  • Constructor Details

    • ExternalRoute

      public ExternalRoute(String src)
      Creates a new External route.
      Parameters:
      src - the route source
  • Method Details

    • getSource

      public String getSource()
      Description copied from interface: ExternalFlightRoute
      Returns the source of this route.
      Specified by:
      getSource in interface ExternalFlightRoute
      Returns:
      the source name
    • 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
    • setSource

      public void setSource(String src)
      Description copied from interface: ExternalFlightRoute
      Sets the source of this route.
      Specified by:
      setSource in interface ExternalFlightRoute
      Parameters:
      src - the source name
    • setUseCount

      public void setUseCount(int cnt)
      Updates the number of times this route was used.
      Parameters:
      cnt - the number of times
    • isInternal

      public boolean isInternal()
      Returns whether this is an internal used route and should not be displayed.
      Returns:
      TRUE if internal, otherwise FALSE
    • getComboAlias

      public String getComboAlias()
      Description copied from interface: ComboAlias
      Returns the alias to use in the HTML <OPTION> element.
      Specified by:
      getComboAlias in interface ComboAlias
      Returns:
      The alias for this entry
    • 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
      Returns:
      The visible name for this entry