Class TrackUpdate
java.lang.Object
org.deltava.beans.acars.TrackUpdate
- All Implemented Interfaces:
GeoLocation
A bean to batch track updates in Redis.
- Since:
- 10.3
- Version:
- 10.3
- Author:
- Luke
-
Field Summary
Fields inherited from interface org.deltava.beans.GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILES -
Constructor Summary
ConstructorsConstructorDescriptionTrackUpdate(boolean isACARS, String flightID, GeoLocation loc) Creates the bean. -
Method Summary
Modifier and TypeMethodDescriptionReturns the flight ID.doubleReturns the latitude of this location.Returns the latest position.doubleReturns the longitude of this location.booleanisACARS()Returns if this is an ACARS flight.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo
-
Constructor Details
-
TrackUpdate
Creates the bean.- Parameters:
isACARS- TRUE if an ACARS flight, otherwise FALSEflightID- the flight IDloc- the position
-
-
Method Details
-
isACARS
public boolean isACARS()Returns if this is an ACARS flight.- Returns:
- TRUE if ACARS, otherwise FALSE
-
getFlightID
-
getLocation
-
getLatitude
public double getLatitude()Description copied from interface:GeoLocationReturns the latitude of this location.- Specified by:
getLatitudein interfaceGeoLocation- Returns:
- the latitude in degrees
-
getLongitude
public double getLongitude()Description copied from interface:GeoLocationReturns the longitude of this location.- Specified by:
getLongitudein interfaceGeoLocation- Returns:
- the longitude in degrees
-