Class ArchivedRoute

java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.ArchivedRoute
All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, Route, Cacheable

public class ArchivedRoute extends DatabaseBean implements Route
A bean to store archivted route data and AIRAC version.
Since:
8.6
Version:
8.6
Author:
Luke
See Also:
  • Constructor Details

    • ArchivedRoute

      public ArchivedRoute(int id, int airacVersion)
      Creates the bean.
      Parameters:
      id - the ACARS flight ID
      airacVersion - the AIRAC version in effect
  • Method Details

    • getAIRACVersion

      public int getAIRACVersion()
      Returns the AIRAC version in effect.
      Returns:
      the version code
    • addWaypoint

      public void addWaypoint(NavigationDataBean nd)
      Description copied from interface: Route
      Adds a waypoint to this route.
      Specified by:
      addWaypoint in interface Route
      Parameters:
      nd - the waypoint
    • getWaypoints

      public LinkedList<NavigationDataBean> getWaypoints()
      Description copied from interface: Route
      Returns the waypoints for this Route.
      Specified by:
      getWaypoints in interface Route
      Returns:
      a LinkedList of Intersections
    • getSize

      public int getSize()
      Description copied from interface: Route
      Returns the number of Waypoints on this Route.
      Specified by:
      getSize in interface Route
      Returns:
      the number of Waypoints
    • getRoute

      public String getRoute()
      Description copied from interface: Route
      Returns the Airway route.
      Specified by:
      getRoute in interface Route
      Returns:
      a space-delimited list of waypoint codes