Class FlightRoute

java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.schedule.FlightRoute
All Implemented Interfaces:
Serializable, Comparable<Object>, ComboAlias, IDBean, RoutePair, Cacheable
Direct Known Subclasses:
ExternalRoute, PopulatedRoute

public abstract class FlightRoute extends DatabaseBean implements RoutePair, ComboAlias
An abstract class to store common Flight Route information.
Since:
2.2
Version:
8.6
Author:
Luke
See Also:
  • Constructor Details

    • FlightRoute

      public FlightRoute()
  • Method Details

    • getCreatedOn

      public Instant getCreatedOn()
      Returns the creation date of this route.
      Returns:
      the creation date/time
    • 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 Standard Instrument Departure ID.
      Returns:
      the ID in NAME.TRANSITION.RUNWAY format
    • getSTAR

      public String getSTAR()
      Returns the Standard Terminal Arrival Route ID.
      Returns:
      the ID in NAME.TRANSITION.RUNWAY format
    • getCruiseAltitude

      public String getCruiseAltitude()
      Returns the Cruise Altitude.
      Returns:
      the altitude
    • getComments

      public String getComments()
      Returns the dispatcher comments.
      Returns:
      the comments
    • getRoute

      public String getRoute()
      Returns the route.
      Returns:
      a space-separated list of waypoints and airways
    • setCreatedOn

      public void setCreatedOn(Instant dt)
      Updates the creation date of this route.
      Parameters:
      dt - the creation date/time
    • setAirportD

      public void setAirportD(Airport a)
      Updates the departure Airport.
      Parameters:
      a - the Airport
    • setAirportA

      public void setAirportA(Airport a)
      Updates the arrival Airport.
      Parameters:
      a - the Airport
    • setSID

      public void setSID(String sid)
      Updates the Standard Instrument Departure ID.
      Parameters:
      sid - the SID ID
    • setSTAR

      public void setSTAR(String star)
      Updates the Standard Terminal Arrival Route ID.
      Parameters:
      star - the STAR ID
    • setCruiseAltitude

      public void setCruiseAltitude(String alt)
      Updates the cruise altitude for this route.
      Parameters:
      alt - the cruise altitude
    • setComments

      public void setComments(String comments)
      Updates the dispatcher comments.
      Parameters:
      comments - the comments
    • setRoute

      public void setRoute(String routeText)
      Sets the route text.
      Parameters:
      routeText - the route text
    • getFullRoute

      public String getFullRoute()
      Displays a friendly route with SID/STAR name.
      Returns:
      the route with SID/STAR
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

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

      public boolean equals(Object o)
      Overrides:
      equals in class DatabaseBean