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.double
Returns the latitude of this location.Returns the latest position.double
Returns the longitude of this location.boolean
isACARS()
Returns if this is an ACARS flight.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:GeoLocation
Returns the latitude of this location.- Specified by:
getLatitude
in interfaceGeoLocation
- Returns:
- the latitude in degrees
-
getLongitude
public double getLongitude()Description copied from interface:GeoLocation
Returns the longitude of this location.- Specified by:
getLongitude
in interfaceGeoLocation
- Returns:
- the longitude in degrees
-