Class ACARSRouteEntry
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.ACARSMapEntry
org.deltava.beans.acars.RouteEntry
org.deltava.beans.acars.ACARSRouteEntry
- All Implemented Interfaces:
Serializable, Comparable<Object>, FuelChecker, CalendarEntry, GeoLocation, GeospaceLocation, IDBean, MapEntry, MarkerMapEntry, Cacheable
- Direct Known Subclasses:
MapRouteEntry
A bean to store a snapshot of an ACARS-logged flight.
- Since:
- 1.0
- Version:
- 12.3
- Author:
- Luke, Rahul
- 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, _usrFields inherited from interface GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILES -
Constructor Summary
ConstructorsConstructorDescriptionACARSRouteEntry(Instant dt, GeoLocation loc) Creates a new ACARS Route Entry bean. -
Method Summary
Modifier 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).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.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.intReturns the aircraft's vertical speed.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.voidsetVerticalSpeed(int speed) Updates the aircraft's vertical speed.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, getWindHeading, getWindSpeed, hasDataError, isFlagSet, isWarning, setAirspace, setAirSpeed, setAltitude, setFlag, setFlags, setFuelRemaining, setGroundSpeed, setHeading, setMach, setPhase, setWindHeading, setWindSpeedMethods inherited from class ACARSMapEntry
getLatitude, getLocation, getLongitude, getPilot, isBusy, setBusy, setClientBuildMethods inherited from class DatabaseBean
cacheKey, equals, getHexID, getID, hashCode, setID, validateID, validateIDMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GeoLocation
distanceFeet, distanceTo, getLatitude, getLongitude
-
Constructor Details
-
ACARSRouteEntry
Creates a new ACARS Route Entry bean.- Parameters:
dt- the date/time of this entryloc- the aircraft's location- See Also:
-
-
Method Details
-
getRadarAltitude
public int getRadarAltitude()Description copied from class:RouteEntryReturns the aircraft's altitude above ground level, if implemented. Subclasses that do not implement this may return a negative number.- Specified by:
getRadarAltitudein classRouteEntry- Returns:
- the altitude in feet AGL, or a negative number
-
getAltimeter
public int getAltimeter()Returns the value reported by the aircraft's altimeter.- Returns:
- the altitude in feet MSL
- See Also:
-
getAOA
public double getAOA()Returns the aircraft's Angle of Attack.- Returns:
- the angle of attack in degrees
- See Also:
-
getG
public double getG()Returns the G forces acting on the aircraft.- Returns:
- the force in Gs
- See Also:
-
getPitch
public double getPitch()Returns the aircraft's pitch angle.- Returns:
- the pitch in degrees
- See Also:
-
getBank
public double getBank()Returns the aircraft's bank angle.- Returns:
- the bank in degrees
- See Also:
-
getFuelFlow
public int getFuelFlow()Returns the aircraft's fuel flow for all engines.- Returns:
- the flow in pounds per hour
- See Also:
-
getWeight
public int getWeight()Returns the aircraft weight.- Returns:
- the weight in pounds
- See Also:
-
getFrameRate
public int getFrameRate()Returns the Flight Simulator frame rate.- Returns:
- the number of rendered frames per second
- See Also:
-
getFlaps
public int getFlaps()Returns the flap detent position.- Returns:
- the flap detent
- See Also:
-
getVisibility
public double getVisibility()Returns the visibility.- Returns:
- the visibility in miles
-
getTemperature
public int getTemperature()Returns the ambient air temperature.- Returns:
- the temperature in degrees Celsius
-
getPressure
public int getPressure()Returns the ambient air pressure.- Returns:
- the pressure in pascals
-
getCG
public double getCG()Returns the center of gravity of the aircraft.- Returns:
- the CG as percent MAC
-
getVerticalSpeed
public int getVerticalSpeed()Returns the aircraft's vertical speed.- Returns:
- the vertical speed in feet/minute
- See Also:
-
getEngineCount
public int getEngineCount()Returns the number of engines.- Returns:
- the engine count
- See Also:
-
getN1
public double getN1()Returns the average N1 speed (propellor RPM for piston engines) of all engines.- Returns:
- the average N1 percentage or propellor RPM
- See Also:
-
getN1
public double getN1(int eng) Returns an individual engine's N1 speed (propellor RPM for piston engines).- Parameters:
eng- the zero-offset engine number- Returns:
- the N1 percentage or propellor RPM
-
getN2
public double getN2()Returns the average N2 speed (throttle position for piston enginers) of all engines.- Returns:
- the average N2 percentage or throttle position
- See Also:
-
getN2
public double getN2(int eng) Returns an individual engine's N2 speed (throttle position for piston enginers).- Parameters:
eng- the zero-offset engine number- Returns:
- the N2 percentage or throttle position
-
isEngineOut
public boolean isEngineOut()Returns whether an engine is not running.- Returns:
- TRUE if at least one engine is not running, otherwise FALSE
-
getSimRate
public int getSimRate()Returns the simulator time acceleration rate.- Returns:
- the acceleration rate
- See Also:
-
getSimUTC
-
getNAV1
-
getNAV2
-
getCOM1
-
getCOM2
-
getADF1
-
getATC1
Returns the Controller on COM1.- Returns:
- a Controller bean, or null if none
- See Also:
-
getATC2
Returns the Controller on COM2.- Returns:
- a Controller bean, or null if none
- See Also:
-
getVASFree
public int getVASFree()Returns the amount of simulator free memory. This will only return a valid value on 32-bit version of FSX/P3D.- Returns:
- the amount of free memory, in kilobytes
- See Also:
-
getGroundOperations
public int getGroundOperations()Returns the ground operations flag(s).- Returns:
- the GroundOperations flags
- See Also:
-
getNetworkConnected
public boolean getNetworkConnected()Returns if the client is connected to an Online Network.- Returns:
- TRUE if connected, otherwise FALSE
- See Also:
-
getACARSConnected
public boolean getACARSConnected()Returns if the client is connected to the ACARS server.- Returns:
- TRUE if connected, otherwise FALSE
- See Also:
-
getRestoreCount
public int getRestoreCount()Rerturns the number of times an ACARS flight restore had been performed thus far.- Returns:
- the numer of flight restores
- See Also:
-
setDisplayPerEngineNX
public void setDisplayPerEngineNX(boolean isDisplay) Sets whether to display per-engine N1/N2 values in the info box.- Parameters:
isDisplay- TRUE to display per-engine N1/N2 values, otherwise FALSE- See Also:
-
setRadarAltitude
public void setRadarAltitude(int alt) Updates the aircraft's altitude above ground level.- Parameters:
alt- the altitude in feet AGL- See Also:
-
setAltimeter
public void setAltimeter(int alt) Updates the altitude reported on the aircraft's altimeter.- Parameters:
alt- the altitude in feet MSL- See Also:
-
setAOA
public void setAOA(double aoa) Updates the aircraft's Angle of Attack.- Parameters:
aoa- the angle of attack in degrees- See Also:
-
setG
public void setG(double gForce) Updates the G forces acting on the aircraft.- Parameters:
gForce- the force in Gs- See Also:
-
setPitch
public void setPitch(double p) Updates the aircraft's pitch angle.- Parameters:
p- the pitch in degrees- See Also:
-
setBank
public void setBank(double b) Updates the aircraft's bank angle.- Parameters:
b- the bank in degrees- See Also:
-
setVerticalSpeed
public void setVerticalSpeed(int speed) Updates the aircraft's vertical speed.- Parameters:
speed- the speed in feet per minute- See Also:
-
setEngineCount
public void setEngineCount(int cnt) Updates the number of engines.- Parameters:
cnt- the engine count- See Also:
-
setN1
public void setN1(double nn1) Updates the aircraft's average N1 speed.- Parameters:
nn1- the N1 speed as a percentage- See Also:
-
setN1
public void setN1(int eng, double nn1) Updates an aircraft's individual engine N1 speed.- Parameters:
eng- the zero-offset engine numbernn1- the N1 speed as a percentage- See Also:
-
setN2
public void setN2(double nn2) Updates the aircraft's average N2 speed.- Parameters:
nn2- the N2 speed as a percentage- See Also:
-
setN2
public void setN2(int eng, double nn2) Updates an aircraft's individual engine N2 speed.- Parameters:
eng- the zero-offset engine numbernn2- the N2 speed as a percentage- See Also:
-
setFuelFlow
public void setFuelFlow(int flow) Updates the aircraft's total fuel flow.- Parameters:
flow- the flow in pounds per hour- See Also:
-
setWeight
public void setWeight(int w) Updates the aircraft weight.- Parameters:
w- the weight in pounds- See Also:
-
setFrameRate
public void setFrameRate(int rate) Updates the Flight Simulator frame rate.- Parameters:
rate- the rendered frames per second- See Also:
-
setSimRate
public void setSimRate(int rate) Updates the simulator time acceleration rate.- Parameters:
rate- the rate- See Also:
-
setSimUTC
-
setFlaps
public void setFlaps(int flapDetent) Updates the aircraft's flap detent position.- Parameters:
flapDetent- the detent position- See Also:
-
setVisibility
public void setVisibility(double viz) Sets the visibility.- Parameters:
viz- the visibility in miles
-
setPressure
public void setPressure(int p) Sets the ambient air pressure.- Parameters:
p- the pressure in pascals
-
setCG
public void setCG(double cg) Sets the aircraft's center of gravity.- Parameters:
cg- the CG as percent MAC
-
setTemperature
public void setTemperature(int t) Sets the ambient temperature.- Parameters:
t- the temperature in degrees celsius
-
setCOM1
Sets the COM1 radio frequency.- Parameters:
freq- the frequency- See Also:
-
setCOM2
Sets the COM2 radio frequency.- Parameters:
freq- the frequency- See Also:
-
setNAV1
Sets the NAV1 radio frequency.- Parameters:
freq- the frequency- See Also:
-
setNAV2
Sets the NAV2 radio frequency.- Parameters:
freq- the frequency- See Also:
-
setADF1
Sets the ADF1 radio frequency.- Parameters:
freq- the frequency- See Also:
-
setATC1
Sets the controller on COM1.- Parameters:
atc- a Controller bean- See Also:
-
setATC2
Sets the controller on COM2.- Parameters:
atc- a Controller bean- See Also:
-
setVASFree
public void setVASFree(int kb) Updates the amount of simulator free memory.- Parameters:
kb- the amount of free memory in kilobytes- See Also:
-
setGroundOperations
public void setGroundOperations(int ops) Updates the Ground Operations flag(s).- Parameters:
ops- a flags bitmask- See Also:
-
setNetworkConnected
public void setNetworkConnected(boolean isConnected) Updates whether the user is connected to an Online Network.- Parameters:
isConnected- TRUE if connected, otherwise FALSE- See Also:
-
setACARSConnected
public void setACARSConnected(boolean isConnected) Updates whether the user is connected to the ACARS server.- Parameters:
isConnected- TRUE if connected, otherwise FALSE- See Also:
-
setAutopilotType
Updates the aircraft autopilot type.- Parameters:
ap- the AutopilotType
-
setRestoreCount
public void setRestoreCount(int cnt) Updates the number of times ACARS has restored the flight thus far.- Parameters:
cnt- the number of flight restores
-
getWarnings
Description copied from class:RouteEntryReturns the warning message.- Specified by:
getWarningsin classRouteEntry- Returns:
- the warning
-
getIconColor
Description copied from interface:MarkerMapEntryReturns the icon color for this entry if displayed in a Google Map.- Specified by:
getIconColorin interfaceMarkerMapEntry- Overrides:
getIconColorin classRouteEntry- 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 classRouteEntry- Returns:
- the infobox HTML text, or null if no infobox to be displayed
-