Class ACARSRouteEntry

java.lang.Object
All Implemented Interfaces:
Serializable, Comparable<Object>, FuelChecker, CalendarEntry, GeoLocation, GeospaceLocation, IDBean, MapEntry, MarkerMapEntry, Cacheable
Direct Known Subclasses:
MapRouteEntry

public class ACARSRouteEntry extends RouteEntry
A bean to store a snapshot of an ACARS-logged flight.
Since:
1.0
Version:
11.2
Author:
Luke, Rahul
See Also:
  • Constructor Details

  • 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 class RouteEntry
      Returns:
      the altitude in feet AGL, or a negative number
    • 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 of all engines.
      Returns:
      the average N1 percentage
      See Also:
    • getN1

      public double getN1(int eng)
      Returns an individual engine's N1 speed.
      Parameters:
      eng - the zero-offset engine number
      Returns:
      the N1 percentage
    • getN2

      public double getN2()
      Returns the average N2 speed of all engines.
      Returns:
      the average N2 percentage
      See Also:
    • getN2

      public double getN2(int eng)
      Returns an individual engine's N2 speed.
      Parameters:
      eng - the zero-offset engine number
      Returns:
      the N2 percentage
    • 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

      public Instant getSimUTC()
      Returns the UTC time in the simulator.
      Returns:
      the sim UTC time
    • getNAV1

      public String getNAV1()
      Returns the NAV1 frequency.
      Returns:
      the frequency
      See Also:
    • getNAV2

      public String getNAV2()
      Returns the NAV2 frequency.
      Returns:
      the frequency
      See Also:
    • getCOM1

      public String getCOM1()
      Returns the COM1 frequency.
      Returns:
      the frequency
      See Also:
    • getCOM2

      public String getCOM2()
      Returns the COM2 frequency.
      Returns:
      the frequency
      See Also:
    • getADF1

      public String getADF1()
      Returns the ADF1 frequency.
      Returns:
      the frequency
      See Also:
    • getATC1

      public Controller getATC1()
      Returns the Controller on COM1.
      Returns:
      a Controller bean, or null if none
      See Also:
    • getATC2

      public Controller 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:
    • 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 number
      nn1 - 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 number
      nn2 - 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

      public void setSimUTC(Instant i)
      Updates the UTC time in the simulator
      Parameters:
      i - the UTC time
    • 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

      public void setCOM1(String freq)
      Sets the COM1 radio frequency.
      Parameters:
      freq - the frequency
      See Also:
    • setCOM2

      public void setCOM2(String freq)
      Sets the COM2 radio frequency.
      Parameters:
      freq - the frequency
      See Also:
    • setNAV1

      public void setNAV1(String freq)
      Sets the NAV1 radio frequency.
      Parameters:
      freq - the frequency
      See Also:
    • setNAV2

      public void setNAV2(String freq)
      Sets the NAV2 radio frequency.
      Parameters:
      freq - the frequency
      See Also:
    • setADF1

      public void setADF1(String freq)
      Sets the ADF1 radio frequency.
      Parameters:
      freq - the frequency
      See Also:
    • setATC1

      public void setATC1(Controller atc)
      Sets the controller on COM1.
      Parameters:
      atc - a Controller bean
      See Also:
    • setATC2

      public void setATC2(Controller atc)
      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

      public void setAutopilotType(AutopilotType ap)
      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

      public Collection<Warning> getWarnings()
      Description copied from class: RouteEntry
      Returns the warning message.
      Specified by:
      getWarnings in class RouteEntry
      Returns:
      the warning
    • getIconColor

      public String getIconColor()
      Description copied from interface: MarkerMapEntry
      Returns the icon color for this entry if displayed in a Google Map.
      Specified by:
      getIconColor in interface MarkerMapEntry
      Overrides:
      getIconColor in class RouteEntry
      Returns:
      the icon color
    • getInfoBox

      public String 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 interface MapEntry
      Overrides:
      getInfoBox in class RouteEntry
      Returns:
      the infobox HTML text, or null if no infobox to be displayed