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 GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILESModifier and TypeFieldDescriptionstatic final intFormat the Longitude and Latitude.static final doubleSize of a degree in feet.static final doubleSize of a degree in miles.static final intSize of a mile in feet.static final String[]Latitude directions.static final intFormat the Latitude only.static final String[]Longitude directions.static final intFormat the Longitude only.static final intRadius of the Earth in 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GeoLocation
distanceFeet, distanceToModifier and TypeMethodDescriptiondefault intCalculates the distance between two points in feet.default intCalculates the distance between two GeoLocations.
-
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
-