Class MapRouteEntry
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.ACARSMapEntry
org.deltava.beans.acars.RouteEntry
org.deltava.beans.acars.ACARSRouteEntry
org.deltava.beans.acars.MapRouteEntry
- All Implemented Interfaces:
Serializable, Comparable<Object>, FuelChecker, CalendarEntry, GeoLocation, GeospaceLocation, IDBean, MapEntry, MarkerMapEntry, TabbedMapEntry, Cacheable
A bean to store a snapshot of an ACARS-logged flight.
- Since:
- 1.0
- Version:
- 12.3
- 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
ConstructorsConstructorDescriptionMapRouteEntry(Instant dt, GeoLocation gl, Pilot usr, String eqType) Creates the bean. -
Method Summary
Modifier and TypeMethodDescriptionReturns the external flight ID, used by clients such as simFDR.final StringReturns the icon color for this entry if displayed in a Google Map.final StringReturns the text to display in this marker's infobox if displayed in a Google Map.final LinkedHashMap<String, String> getTabs()Returns the tab names.voidUpdates the arrival Airport.voidUpdates the departure Airport.voidsetCheckRide(boolean isCR) Updates whether the pilot is flying a check ride.voidUpdates what Country's airspace this entry is in.voidUpdates whether the pilot is flying using a Dispatch-generated flight route.voidsetExternalID(String id) Sets the external flight ID, for use by third-party clients such as simFDR.voidsetFlightNumber(String flightNumber) Updates the flight code.voidsetLoadFactor(double lf) Updates the load factor for this flight.voidsetNetwork(OnlineNetwork network) Updates the online network used for this flight.voidsetPassengers(int pax) Updates the passenger count for this flight.voidsetPhaseName(String phase) Updates the flight's flight phase.voidsetRecorder(Recorder fdr) Updates the Flight Data Recorder used to generate this entry.voidUpdates the Simulator used on this flight.voidsetTailCode(String tailCode) Updates the aircraft's tail code.Methods inherited from class ACARSRouteEntry
getACARSConnected, getADF1, getAltimeter, getAOA, getATC1, getATC2, getBank, getCG, getCOM1, getCOM2, getEngineCount, getFlaps, getFrameRate, getFuelFlow, getG, getGroundOperations, getN1, getN1, getN2, getN2, getNAV1, getNAV2, getNetworkConnected, getPitch, getPressure, getRadarAltitude, getRestoreCount, getSimRate, getSimUTC, getTemperature, getVASFree, getVisibility, getWarnings, getWeight, isEngineOut, setACARSConnected, setADF1, setAltimeter, setAOA, setATC1, setATC2, setAutopilotType, setBank, setCG, setCOM1, setCOM2, setDisplayPerEngineNX, setEngineCount, setFlaps, setFrameRate, setFuelFlow, setG, setGroundOperations, setN1, setN1, setN2, setN2, setNAV1, setNAV2, setNetworkConnected, setPitch, setPressure, setRadarAltitude, setRestoreCount, setSimRate, setSimUTC, setTemperature, setVASFree, setVisibility, setWeightModifier and TypeMethodDescriptionbooleanReturns if the client is connected to the ACARS server.getADF1()Returns the ADF1 frequency.intReturns the value reported by the aircraft's altimeter.doublegetAOA()Returns the aircraft's Angle of Attack.getATC1()Returns the Controller on COM1.getATC2()Returns the Controller on COM2.doublegetBank()Returns the aircraft's bank angle.doublegetCG()Returns the center of gravity of the aircraft.getCOM1()Returns the COM1 frequency.getCOM2()Returns the COM2 frequency.intReturns the number of engines.intgetFlaps()Returns the flap detent position.intReturns the Flight Simulator frame rate.intReturns the aircraft's fuel flow for all engines.doublegetG()Returns the G forces acting on the aircraft.intReturns the ground operations flag(s).doublegetN1()Returns the average N1 speed (propellor RPM for piston engines) of all engines.doublegetN1(int eng) Returns an individual engine's N1 speed (propellor RPM for piston engines).doublegetN2()Returns the average N2 speed (throttle position for piston enginers) of all engines.doublegetN2(int eng) Returns an individual engine's N2 speed (throttle position for piston enginers).getNAV1()Returns the NAV1 frequency.getNAV2()Returns the NAV2 frequency.booleanReturns if the client is connected to an Online Network.doublegetPitch()Returns the aircraft's pitch angle.intReturns the ambient air pressure.intReturns the aircraft's altitude above ground level, if implemented.intRerturns the number of times an ACARS flight restore had been performed thus far.intReturns the simulator time acceleration rate.Returns the UTC time in the simulator.intReturns the ambient air temperature.intReturns the amount of simulator free memory.doubleReturns the visibility.Returns the warning message.intReturns the aircraft weight.booleanReturns whether an engine is not running.voidsetACARSConnected(boolean isConnected) Updates whether the user is connected to the ACARS server.voidSets the ADF1 radio frequency.voidsetAltimeter(int alt) Updates the altitude reported on the aircraft's altimeter.voidsetAOA(double aoa) Updates the aircraft's Angle of Attack.voidsetATC1(Controller atc) Sets the controller on COM1.voidsetATC2(Controller atc) Sets the controller on COM2.voidUpdates the aircraft autopilot type.voidsetBank(double b) Updates the aircraft's bank angle.voidsetCG(double cg) Sets the aircraft's center of gravity.voidSets the COM1 radio frequency.voidSets the COM2 radio frequency.voidsetDisplayPerEngineNX(boolean isDisplay) Sets whether to display per-engine N1/N2 values in the info box.voidsetEngineCount(int cnt) Updates the number of engines.voidsetFlaps(int flapDetent) Updates the aircraft's flap detent position.voidsetFrameRate(int rate) Updates the Flight Simulator frame rate.voidsetFuelFlow(int flow) Updates the aircraft's total fuel flow.voidsetG(double gForce) Updates the G forces acting on the aircraft.voidsetGroundOperations(int ops) Updates the Ground Operations flag(s).voidsetN1(double nn1) Updates the aircraft's average N1 speed.voidsetN1(int eng, double nn1) Updates an aircraft's individual engine N1 speed.voidsetN2(double nn2) Updates the aircraft's average N2 speed.voidsetN2(int eng, double nn2) Updates an aircraft's individual engine N2 speed.voidSets the NAV1 radio frequency.voidSets the NAV2 radio frequency.voidsetNetworkConnected(boolean isConnected) Updates whether the user is connected to an Online Network.voidsetPitch(double p) Updates the aircraft's pitch angle.voidsetPressure(int p) Sets the ambient air pressure.voidsetRadarAltitude(int alt) Updates the aircraft's altitude above ground level.voidsetRestoreCount(int cnt) Updates the number of times ACARS has restored the flight thus far.voidsetSimRate(int rate) Updates the simulator time acceleration rate.voidUpdates the UTC time in the simulatorvoidsetTemperature(int t) Sets the ambient temperature.voidsetVASFree(int kb) Updates the amount of simulator free memory.voidsetVisibility(double viz) Sets the visibility.voidsetWeight(int w) Updates the aircraft weight.Methods inherited from class RouteEntry
compareTo, getAirspace, getAirSpeed, getAltitude, getDate, getFlags, getFuelRemaining, getGroundSpeed, getHeading, 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.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
-
MapRouteEntry
Creates the bean.- Parameters:
dt- the date/timegl- the aircraft locationusr- the PiloteqType- the aircraft type
-
-
Method Details
-
getExternalID
Returns the external flight ID, used by clients such as simFDR.- Returns:
- the ID
-
setCheckRide
public void setCheckRide(boolean isCR) Updates whether the pilot is flying a check ride.- Parameters:
isCR- TRUE if a check ride, otherwise FALSE
-
setDispatcher
Updates whether the pilot is flying using a Dispatch-generated flight route.- Parameters:
dsp- the DispatchType
-
setFlightNumber
Updates the flight code.- Parameters:
flightNumber- the flight code
-
setAirportD
-
setAirportA
-
setNetwork
Updates the online network used for this flight.- Parameters:
network- the OnlineNetwork
-
setPhaseName
Updates the flight's flight phase.- Parameters:
phase- the phase name
-
setRecorder
Updates the Flight Data Recorder used to generate this entry.- Parameters:
fdr- a Recorder
-
setLoadFactor
public void setLoadFactor(double lf) Updates the load factor for this flight.- Parameters:
lf- the load factor
-
setPassengers
public void setPassengers(int pax) Updates the passenger count for this flight.- Parameters:
pax- the passenger count
-
setSimulator
Updates the Simulator used on this flight.- Parameters:
s- the Simulator
-
setCountry
Updates what Country's airspace this entry is in.- Parameters:
c- a Country
-
setTailCode
Updates the aircraft's tail code.- Parameters:
tailCode- the tail code
-
setExternalID
Sets the external flight ID, for use by third-party clients such as simFDR.- Parameters:
id- the ID
-
getIconColor
Description copied from interface:MarkerMapEntryReturns the icon color for this entry if displayed in a Google Map.- Specified by:
getIconColorin interfaceMarkerMapEntry- Overrides:
getIconColorin classACARSRouteEntry- Returns:
- the icon color
-
getInfoBox
Description copied from interface:MapEntryReturns the text to display in this marker's infobox if displayed in a Google Map.- Specified by:
getInfoBoxin interfaceMapEntry- Overrides:
getInfoBoxin classACARSRouteEntry- Returns:
- the infobox HTML text, or null if no infobox to be displayed
-
getTabs
Description copied from interface:TabbedMapEntryReturns the tab names.- Specified by:
getTabsin interfaceTabbedMapEntry- Returns:
- a List of tab names
-