Class XARouteEntry
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.ACARSMapEntry
org.deltava.beans.acars.RouteEntry
org.deltava.beans.acars.XARouteEntry
- All Implemented Interfaces:
Serializable, Comparable<Object>, FuelChecker, CalendarEntry, GeoLocation, GeospaceLocation, IDBean, MapEntry, MarkerMapEntry, Cacheable
An XACARS Position Report.
- Since:
- 4.1
- Version:
- 12.2
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ACARSMapEntry
ACARSMapEntry.EntryType -
Field Summary
Fields inherited from class ACARSMapEntry
_betaBuild, _busy, _clientBuild, _pos, _usrModifier and TypeFieldDescriptionprotected intprotected booleanprotected intprotected GeoLocationprotected PilotFields 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.Fields inherited from interface MapEntry
BLUE, BROWN, COLORS, GREEN, GREY, ORANGE, PURPLE, RED, WHITE, YELLOWModifier and TypeFieldDescriptionstatic final StringBlue Google Maps icon, displayed as $static/img/maps/point_blue.pngstatic final StringBrown Google Maps icon, displayed as $static/img/maps/point_brown.pngstatic final String[]All Google Maps icon colors.static final StringGreen Google Maps icon, displayed as $static/img/maps/point_green.pngstatic final StringGrey Google Maps icon, displayed as $static/img/maps/point_grey.pngstatic final StringOrange Google Maps icon, displayed as $static/img/maps/point_orange.pngstatic final StringPurple Google Maps icon, displayed as $static/img/maps/point_purple.pngstatic final StringRed Google Maps icon, displayed as $static/img/maps/point_red.pngstatic final StringWhite Google Maps icon, displayed as $static/img/maps/point_white.pngstatic final StringYellow Google Maps icon, displayed as $static/img/maps/point_yellow.png -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the Flight ID.final intReturns the radar altitude.Returns the warning message.voidsetFlightID(int id) Sets the Flight ID.voidsetLocation(GeoLocation loc) Updates the location.voidsetMessageType(String mt) Updats the XACARS message type.Methods inherited from class RouteEntry
compareTo, getAirspace, getAirSpeed, getAltitude, getDate, getFlags, getFuelRemaining, getGroundSpeed, getHeading, getIconColor, getInfoBox, getMach, getPhase, getType, getVerticalSpeed, getWindHeading, getWindSpeed, hasDataError, isFlagSet, isWarning, setAirspace, setAirSpeed, setAltitude, setFlag, setFlags, setFuelRemaining, setGroundSpeed, setHeading, setMach, setPhase, setVerticalSpeed, setWindHeading, setWindSpeedModifier and TypeMethodDescriptionintReturns the type of Airspace covering the current position.intReturns the aircraft's airspeed.intReturns the aircraft's atltiude above sea level.getDate()Returns the date/time of this entry.intgetFlags()Returns the ACARS flags for this entry.intReturns the amount of fuel remaining on the aircraft.intReturns the aircraft's ground speed.intReturns the aircraft's heading.Returns the icon color for this entry if displayed in a Google Map.Returns the text to display in this marker's infobox if displayed in a Google Map.doublegetMach()Returns the aircraft's Mach number.getPhase()Returns the flight phase.final ACARSMapEntry.EntryTypegetType()Returns the map entry type.intReturns the vertical speed.intReturns the ambient wind heading.intReturns the ambient wind speed.booleanReturns if a data field contains an inalid value.booleanisFlagSet(ACARSFlags flag) Returns if an ACARS flag was set.booleanMarks this route entry as having a notable flight parameter.voidSets the Airspace type covering the current position.voidsetAirSpeed(int speed) Updates the aircraft's airspeed.voidsetAltitude(int alt) Updates the aircraft's altitude above sea level.voidsetFlag(ACARSFlags flag, boolean isSet) Sets or clears an ACARS flag.voidsetFlags(int flags) Sets all ACARS flags for this entry.voidsetFuelRemaining(int fuel) Updates the amount of fuel remaining on the aircraft.voidsetGroundSpeed(int speed) Updates the aircraft's ground speed.voidsetHeading(int hdg) Updates the aircraft's heading.voidsetMach(double mach) Updates the aircraft's Mach number.voidsetPhase(FlightPhase phase) Updates the flight phase.voidsetVerticalSpeed(int s) Sets the vertical speed.voidsetWindHeading(int hdg) Sets the ambient wind heading.voidsetWindSpeed(int speed) Sets the ambient wind speed.Methods inherited from class ACARSMapEntry
getLatitude, getLocation, getLongitude, getPilot, isBusy, setBusy, setClientBuildModifier and TypeMethodDescriptionfinal doubleReturns the latitude of this location.Returns the entry's position.final doubleReturns the longitude of this location.getPilot()Returns the Pilot.booleanisBusy()Returns whether the user is marked Busy.voidsetBusy(boolean isBusy) Marks the user as Busy.voidsetClientBuild(int buildNumber, int beta) Sets the ACARS client version used.Methods inherited from class DatabaseBean
cacheKey, equals, getHexID, getID, hashCode, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.booleangetHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.inthashCode()voidsetID(int id) Update the database row ID of this bean.static voidvalidateID(int oldID, int newID) Validates a database ID.static voidvalidateID(int oldID, int newID, boolean allowZero) Validates a database ID.Methods inherited from class Object
clone, finalize, getClass, 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
-
XARouteEntry
Creates the route entry.- Parameters:
loc- the GeoLocationdt- the date/time
-
-
Method Details
-
getFlightID
public int getFlightID()Returns the Flight ID.- Returns:
- the flight ID
-
getRadarAltitude
public final int getRadarAltitude()Returns the radar altitude.- Specified by:
getRadarAltitudein classRouteEntry- Returns:
- -1 since unimplemented
-
getMessageType
-
setFlightID
public void setFlightID(int id) Sets the Flight ID.- Parameters:
id- the ID- Throws:
IllegalArgumentException- if id is zero, negative or already set
-
setMessageType
-
setLocation
-
getWarnings
Description copied from class:RouteEntryReturns the warning message.- Specified by:
getWarningsin classRouteEntry- Returns:
- the warning
-