Class RouteBuilder

java.lang.Object
org.deltava.beans.flight.RouteBuilder
All Implemented Interfaces:
RoutePair

public class RouteBuilder extends Object implements RoutePair
A utility class to build a flight route.
Since:
7.0
Version:
8.6
Author:
Luke
  • Constructor Details

    • RouteBuilder

      public RouteBuilder(RoutePair rp, String route)
      Creates the builder. This will parse the provided route to identify a filed SID or STAR.
      Parameters:
      rp - the RoutePair
      route - the filed route
  • Method Details

    • getAirportD

      public Airport getAirportD()
      Description copied from interface: RoutePair
      Returns the departure Airport.
      Specified by:
      getAirportD in interface RoutePair
      Returns:
      the departure Airport
    • getAirportA

      public Airport getAirportA()
      Description copied from interface: RoutePair
      Returns the arrival Airport.
      Specified by:
      getAirportA in interface RoutePair
      Returns:
      the arrival Airport
    • getSID

      public String getSID()
      Returns the SID name.
      Returns:
      the SID name, or null if none detected
    • getSIDTransition

      public String getSIDTransition()
      Returns the SID transition.
      Returns:
      the SID transition waypoint, or null if none detected
    • getSTAR

      public String getSTAR()
      Returns the STAR name.
      Returns:
      the STAR name, or null if none detected
    • getSTARTransition

      public String getSTARTransition()
      Returns the STAR transition.
      Returns:
      the STAR transition waypoint, or null if none detected
    • getRoute

      public String getRoute()
      Returns the filed route, minus any SID/STAR names.
      Returns:
      the route
    • getPoints

      public List<NavigationDataBean> getPoints()
      Returns the waypoints in the route, including the SID/STAR.
      Returns:
      a List of NavigationDataBeans
    • hasData

      public boolean hasData()
    • add

      public void add(NavigationDataBean ndb)
      Adds a waypoint to the route.
      Parameters:
      ndb - a NavigationDataBean
    • add

      public void add(TerminalRoute tr)
      Adds a TerminalRoute to the waypoints.
      Parameters:
      tr - a TerminalRotue bean
    • toString

      public String toString()
      Overrides:
      toString in class Object