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:
- 11.6
- Author:
- Luke, Rahul
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.deltava.beans.acars.ACARSMapEntry
ACARSMapEntry.EntryType
-
Field Summary
Fields inherited from class org.deltava.beans.acars.ACARSMapEntry
_betaBuild, _busy, _clientBuild, _pos, _usr
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
ConstructorsConstructorDescriptionACARSRouteEntry
(Instant dt, GeoLocation loc) Creates a new ACARS Route Entry bean. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if the client is connected to the ACARS server.getADF1()
Returns the ADF1 frequency.int
Returns the value reported by the aircraft's altimeter.double
getAOA()
Returns the aircraft's Angle of Attack.getATC1()
Returns the Controller on COM1.getATC2()
Returns the Controller on COM2.double
getBank()
Returns the aircraft's bank angle.double
getCG()
Returns the center of gravity of the aircraft.getCOM1()
Returns the COM1 frequency.getCOM2()
Returns the COM2 frequency.int
Returns the number of engines.int
getFlaps()
Returns the flap detent position.int
Returns the Flight Simulator frame rate.int
Returns the aircraft's fuel flow for all engines.double
getG()
Returns the G forces acting on the aircraft.int
Returns 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.double
getN1()
Returns the average N1 speed (propellor RPM for piston engines) of all engines.double
getN1
(int eng) Returns an individual engine's N1 speed (propellor RPM for piston engines).double
getN2()
Returns the average N2 speed (throttle position for piston enginers) of all engines.double
getN2
(int eng) Returns an individual engine's N2 speed (throttle position for piston enginers).getNAV1()
Returns the NAV1 frequency.getNAV2()
Returns the NAV2 frequency.boolean
Returns if the client is connected to an Online Network.double
getPitch()
Returns the aircraft's pitch angle.int
Returns the ambient air pressure.int
Returns the aircraft's altitude above ground level, if implemented.int
Rerturns the number of times an ACARS flight restore had been performed thus far.int
Returns the simulator time acceleration rate.Returns the UTC time in the simulator.int
Returns the ambient air temperature.int
Returns the amount of simulator free memory.int
Returns the aircraft's vertical speed.double
Returns the visibility.Returns the warning message.int
Returns the aircraft weight.boolean
Returns whether an engine is not running.void
setACARSConnected
(boolean isConnected) Updates whether the user is connected to the ACARS server.void
Sets the ADF1 radio frequency.void
setAltimeter
(int alt) Updates the altitude reported on the aircraft's altimeter.void
setAOA
(double aoa) Updates the aircraft's Angle of Attack.void
setATC1
(Controller atc) Sets the controller on COM1.void
setATC2
(Controller atc) Sets the controller on COM2.void
Updates the aircraft autopilot type.void
setBank
(double b) Updates the aircraft's bank angle.void
setCG
(double cg) Sets the aircraft's center of gravity.void
Sets the COM1 radio frequency.void
Sets the COM2 radio frequency.void
setDisplayPerEngineNX
(boolean isDisplay) Sets whether to display per-engine N1/N2 values in the info box.void
setEngineCount
(int cnt) Updates the number of engines.void
setFlaps
(int flapDetent) Updates the aircraft's flap detent position.void
setFrameRate
(int rate) Updates the Flight Simulator frame rate.void
setFuelFlow
(int flow) Updates the aircraft's total fuel flow.void
setG
(double gForce) Updates the G forces acting on the aircraft.void
setGroundOperations
(int ops) Updates the Ground Operations flag(s).void
setN1
(double nn1) Updates the aircraft's average N1 speed.void
setN1
(int eng, double nn1) Updates an aircraft's individual engine N1 speed.void
setN2
(double nn2) Updates the aircraft's average N2 speed.void
setN2
(int eng, double nn2) Updates an aircraft's individual engine N2 speed.void
Sets the NAV1 radio frequency.void
Sets the NAV2 radio frequency.void
setNetworkConnected
(boolean isConnected) Updates whether the user is connected to an Online Network.void
setPitch
(double p) Updates the aircraft's pitch angle.void
setPressure
(int p) Sets the ambient air pressure.void
setRadarAltitude
(int alt) Updates the aircraft's altitude above ground level.void
setRestoreCount
(int cnt) Updates the number of times ACARS has restored the flight thus far.void
setSimRate
(int rate) Updates the simulator time acceleration rate.void
Updates the UTC time in the simulatorvoid
setTemperature
(int t) Sets the ambient temperature.void
setVASFree
(int kb) Updates the amount of simulator free memory.void
setVerticalSpeed
(int speed) Updates the aircraft's vertical speed.void
setVisibility
(double viz) Sets the visibility.void
setWeight
(int w) Updates the aircraft weight.Methods inherited from class org.deltava.beans.acars.RouteEntry
compareTo, getAirspace, getAirSpeed, getAltitude, getDate, getFlags, getFuelRemaining, getGroundSpeed, getHeading, getMach, getPhase, getType, getWindHeading, getWindSpeed, isFlagSet, isWarning, setAirspace, setAirSpeed, setAltitude, setFlag, setFlags, setFuelRemaining, setGroundSpeed, setHeading, setMach, setPhase, setWindHeading, setWindSpeed
Methods inherited from class org.deltava.beans.acars.ACARSMapEntry
getLatitude, getLocation, getLongitude, getPilot, isBusy, setBusy, setClientBuild
Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, equals, getHexID, getID, hashCode, setID, validateID, validateID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.deltava.beans.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:RouteEntry
Returns the aircraft's altitude above ground level, if implemented. Subclasses that do not implement this may return a negative number.- Specified by:
getRadarAltitude
in 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:RouteEntry
Returns the warning message.- Specified by:
getWarnings
in classRouteEntry
- Returns:
- the warning
-
getIconColor
Description copied from interface:MarkerMapEntry
Returns the icon color for this entry if displayed in a Google Map.- Specified by:
getIconColor
in interfaceMarkerMapEntry
- Overrides:
getIconColor
in classRouteEntry
- Returns:
- the icon color
-
getInfoBox
Description copied from interface:MapEntry
Returns the text to display in this marker's infobox if displayed in a Google Map.- Specified by:
getInfoBox
in interfaceMapEntry
- Overrides:
getInfoBox
in classRouteEntry
- Returns:
- the infobox HTML text, or null if no infobox to be displayed
-