Class OceanicTrack

java.lang.Object
org.deltava.beans.navdata.Airway
org.deltava.beans.navdata.OceanicTrack
All Implemented Interfaces:
Serializable, Comparable<Airway>, GeoLocation, OceanicTrackInfo, Route, Cacheable

public class OceanicTrack extends Airway implements OceanicTrackInfo
A bean to store Oceanic Track (NAT/PACOT/AUSOT) information.
Since:
1.0
Version:
9.1
Author:
Luke
See Also:
  • Constructor Details

    • OceanicTrack

      public OceanicTrack(OceanicTrackInfo.Type type, String code)
      Creates a new Oceanic Route.
      Parameters:
      type - the route Type
      code - the route code
  • Method Details

    • getDate

      public Instant getDate()
      Returns the date of the Oceanic Route NOTAM.
      Specified by:
      getDate in interface OceanicTrackInfo
      Returns:
      the route date
      See Also:
    • getType

      public OceanicTrackInfo.Type getType()
      Returns the route type code.
      Specified by:
      getType in interface OceanicTrackInfo
      Returns:
      the route type
    • getDirection

      public OceanicTrackInfo.Direction getDirection()
      Returns the direction of this Oceanic Track, based on waypoints.
      Returns:
      the Direction
    • reverse

      public OceanicTrack reverse()
      Reverses an Oceanic Track's waypoints.
      Returns:
      an OceanicTrack with reversed waypoints
    • isFixed

      public boolean isFixed()
      Returns whether the track is fixed from day to day.
      Returns:
      FALSE always
    • getTrack

      public String getTrack()
      Returns the Track ID.
      Returns:
      the track ID
    • getStart

      public NavigationDataBean getStart()
      Returns the first waypoint on this track.
      Returns:
      the first waypoint bean
      See Also:
    • getEnd

      public NavigationDataBean getEnd()
      Returns the last waypoint on this track.
      Returns:
      the last waypoint bean
      See Also:
    • setDate

      public void setDate(Instant d)
      Updates the NOTAM effective date.
      Parameters:
      d - the NOTAM date
      See Also:
    • addWaypoint

      public void addWaypoint(NavigationDataBean nd)
      Adds a waypoint to the Oceanic Track. This preserves the airway code for the Navigation data bean if it appears to have multiple airways listed (for the NAT/PACOT plotters).
      Specified by:
      addWaypoint in interface Route
      Overrides:
      addWaypoint in class Airway
      Parameters:
      nd - the waypoint
      See Also:
    • isNameValid

      public static boolean isNameValid(String name)
      Checks if a route waypoint is really an Oceanic Track name.
      Parameters:
      name - the waypoint name
      Returns:
      TRUE if a valid Oceanic Track name, otherwise FALSE
    • toString

      public String toString()
      Overrides:
      toString in class Airway