Class XAFlightInfo

All Implemented Interfaces:
Serializable, Comparable<Object>, AuthoredBean, CalendarEntry, FlightData, FlightNumber, IDBean, RoutePair, TimeSpan, ViewEntry, Cacheable

public class XAFlightInfo extends FDRFlightReport
An XACARS Flight Information object.
Since:
4.1
Version:
11.1
Author:
Luke
See Also:
  • Constructor Details

    • XAFlightInfo

      public XAFlightInfo(Airline a, int leg)
      Creates the Flight Info object.
      Parameters:
      a - the Airline
      leg - the leg number
  • Method Details

    • getFDR

      public Recorder getFDR()
      Description copied from interface: FlightData
      Returns the Flight Data recorder used for this flight.
      Specified by:
      getFDR in interface FlightData
      Overrides:
      getFDR in class FlightReport
      Returns:
      a Recorder enum or null if none/unknown
    • getCapabilities

      public long getCapabilities()
      Description copied from class: FDRFlightReport
      Returns the aircraft/simulator capabilities flags.
      Specified by:
      getCapabilities in class FDRFlightReport
      Returns:
      the Capabilities flag bitmap
    • getPhase

      public FlightPhase getPhase()
      Returns the flight phase.
      Returns:
      a FlightPhase
    • getClimbPhase

      public XAFlightInfo.ClimbPhase getClimbPhase()
      Returns the climb phase.
      Returns:
      a ClimbPhase
    • getAirportL

      public Airport getAirportL()
      Returns the alternate Airport.
      Returns:
      the Airport, or null if not filed
    • getCruiseAltitude

      public String getCruiseAltitude()
      Returns the cruise altitude.
      Returns:
      the cruising altitude or flight level
    • getZeroFuelWeight

      public int getZeroFuelWeight()
      Returns the aircraft weight without fuel.
      Returns:
      the weight in pounds
    • getLength

      public final int getLength()
      Description copied from class: FlightReport
      Returns the length of the fllight in hours multiplied by ten. This is done to avoid rounding errors when using a floating point number.
      Overrides:
      getLength in class FlightReport
      Returns:
      the length of the flight in hours multiplied by ten
      See Also:
    • getAverageFrameRate

      public double getAverageFrameRate()
      Description copied from class: FDRFlightReport
      Returns the average frame rate for this flight.
      Specified by:
      getAverageFrameRate in class FDRFlightReport
      Returns:
      the average frame rate in frames per second
    • setZeroFuelWeight

      public void setZeroFuelWeight(int zfw)
      Updates the aircraft weight without fuel.
      Parameters:
      zfw - the weight in pounds
    • setCruseAltitude

      public void setCruseAltitude(String alt)
      Sets the cruising altitude.
      Parameters:
      alt - the altitude or flight level
    • setAirportL

      public void setAirportL(Airport a)
      Sets the alternate Airport.
      Parameters:
      a - the Airport
    • setPhase

      public void setPhase(FlightPhase p)
      Updates the flight phase.
      Parameters:
      p - a FlightPhase
    • setClimbPhase

      public void setClimbPhase(XAFlightInfo.ClimbPhase cp)
      Updates the climb phase.
      Parameters:
      cp - a ClimbPhase