Class DispatchRoute

All Implemented Interfaces:
Serializable, Comparable<Object>, AuthoredBean, ComboAlias, IDBean, Route, RoutePair, UseCount, ViewEntry, Cacheable
Direct Known Subclasses:
ExternalDispatchRoute

public class DispatchRoute extends PopulatedRoute implements AuthoredBean, UseCount, ViewEntry
A bean to store saved ACARS dispatch routes.
Since:
2.0
Version:
11.0
Author:
Luke
See Also:
  • Constructor Details

    • DispatchRoute

      public DispatchRoute()
      Creates a new, empty Dispatch route.
    • DispatchRoute

      public DispatchRoute(PopulatedRoute pr)
      Creates a new Dispatch route from a Populated route.
      Parameters:
      pr - the PopulatedRoute bean
  • Method Details

    • getAuthorID

      public int getAuthorID()
      Description copied from interface: AuthoredBean
      Returns the Author of this bean.
      Specified by:
      getAuthorID in interface AuthoredBean
      Returns:
      the author's database ID
      See Also:
    • getUseCount

      public int getUseCount()
      Returns the number of times this route has been used.
      Specified by:
      getUseCount in interface UseCount
      Returns:
      the usage count
    • getLastUsed

      public Instant getLastUsed()
      Returns the last use date of this route.
      Returns:
      the last use date/time
    • getDispatchBuild

      public int getDispatchBuild()
      Returns the build number of the dispatch client used to create this route.
      Returns:
      the build number, or zero if via web application
    • getAirline

      public Airline getAirline()
      Returns the Airline for this Route.
      Returns:
      the Airline
    • getAirportL

      public Airport getAirportL()
      Returns the alternate Airport.
      Returns:
      the Airport, or null if none
    • setLastUsed

      public void setLastUsed(Instant dt)
      Updates the last use date of this route.
      Parameters:
      dt - the last use date/time
    • setDispatchBuild

      public void setDispatchBuild(int build)
      Sets the build number of the dispatch client used to create this route.
      Parameters:
      build - the build number, or zero if via web application
    • setUseCount

      public void setUseCount(int count)
      Updates the number of times this route has been used.
      Parameters:
      count - the usage count
    • getActive

      public boolean getActive()
      Returns if this route is active.
      Returns:
      TRUE if active, otherwise FALSE
    • setAirline

      public void setAirline(Airline a)
      Updates the Airline.
      Parameters:
      a - the Airline
    • setAirportL

      public void setAirportL(Airport a)
      Updates the alternate Airport.
      Parameters:
      a - the Airport
    • setAuthorID

      public void setAuthorID(int id)
      Description copied from interface: AuthoredBean
      Updates the author of this bean.
      Specified by:
      setAuthorID in interface AuthoredBean
      Parameters:
      id - the author's database ID.
      See Also:
    • setActive

      public void setActive(boolean isActive)
      Marks this route as active.
      Parameters:
      isActive - TRUE if active, otherwise false
    • 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 PopulatedRoute
      Returns:
      The visible name for this entry
    • 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
      Overrides:
      getComboAlias in class PopulatedRoute
      Returns:
      The alias for this entry
    • getRowClassName

      public String getRowClassName()
      Description copied from interface: ViewEntry
      Returns the CSS class for this object if rendered in a view table.
      Specified by:
      getRowClassName in interface ViewEntry
      Returns:
      the CSS class name, or NULL if none
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class PopulatedRoute