Class TrackUpdate

java.lang.Object
org.deltava.beans.acars.TrackUpdate
All Implemented Interfaces:
GeoLocation

public class TrackUpdate extends Object implements GeoLocation
A bean to batch track updates in Redis.
Since:
10.3
Version:
10.3
Author:
Luke
  • Constructor Details

    • TrackUpdate

      public TrackUpdate(boolean isACARS, String flightID, GeoLocation loc)
      Creates the bean.
      Parameters:
      isACARS - TRUE if an ACARS flight, otherwise FALSE
      flightID - the flight ID
      loc - the position
  • Method Details

    • isACARS

      public boolean isACARS()
      Returns if this is an ACARS flight.
      Returns:
      TRUE if ACARS, otherwise FALSE
    • getFlightID

      public String getFlightID()
      Returns the flight ID.
      Returns:
      the flight ID
    • getLocation

      public GeoLocation getLocation()
      Returns the latest position.
      Returns:
      the position
    • getLatitude

      public double getLatitude()
      Description copied from interface: GeoLocation
      Returns the latitude of this location.
      Specified by:
      getLatitude in interface GeoLocation
      Returns:
      the latitude in degrees
    • getLongitude

      public double getLongitude()
      Description copied from interface: GeoLocation
      Returns the longitude of this location.
      Specified by:
      getLongitude in interface GeoLocation
      Returns:
      the longitude in degrees