Class FDRFlightReport

All Implemented Interfaces:
Serializable, Comparable<Object>, AuthoredBean, CalendarEntry, FlightData, FlightNumber, IDBean, RoutePair, TimeSpan, ViewEntry, Cacheable
Direct Known Subclasses:
ACARSFlightReport, XACARSFlightReport, XAFlightInfo

public abstract class FDRFlightReport extends FlightReport implements TimeSpan
A bean to store FDR (ACARS/XACARS/simFDR) submitted flight reports.
Since:
1.0
Version:
11.1
Author:
Luke
See Also:
  • Field Details

  • Constructor Details

    • FDRFlightReport

      public FDRFlightReport(Airline a, int flightNumber, int leg)
      Creates a new FDR Flight Report object.
      Parameters:
      a - the Airline
      flightNumber - the flight number
      leg - the leg number
  • Method Details

    • getDuration

      public final Duration getDuration()
      Description copied from class: Flight
      A method to return the exact length of the flight.
      Specified by:
      getDuration in interface TimeSpan
      Overrides:
      getDuration in class FlightReport
      Returns:
      a Duration
    • getStartTime

      public Instant getStartTime()
      Description copied from interface: TimeSpan
      The start date/time of this span.
      Specified by:
      getStartTime in interface TimeSpan
      Returns:
      the start date/time
    • getStartLocation

      public GeoLocation getStartLocation()
      Returns the first route position for this flight.
      Returns:
      loc the first position
      See Also:
    • getCapabilities

      public abstract long getCapabilities()
      Returns the aircraft/simulator capabilities flags.
      Returns:
      the Capabilities flag bitmap
    • getTaxiTime

      public Instant getTaxiTime()
      Returns the date/time of pushback.
      Returns:
      the date/time the aircraft was pushed back
      See Also:
    • getTaxiWeight

      public int getTaxiWeight()
      Returns the aircraft weight at pushback.
      Returns:
      the weight in pounds
      See Also:
    • getTaxiFuel

      public int getTaxiFuel()
      Returns the amount of fuel at pushback.
      Returns:
      the amount of fuel in pounds
      See Also:
    • getTakeoffTime

      public Instant getTakeoffTime()
      Returns the date/time of takeoff.
      Returns:
      the date/time the aircraft left the ground
      See Also:
    • getTakeoffDistance

      public int getTakeoffDistance()
      Returns the distance from the origin airport at takeoff. This is used to validate the provided airports.
      Returns:
      the distance from the origin airport, in miles
      See Also:
    • getTakeoffSpeed

      public int getTakeoffSpeed()
      Returns the aircraft airspeed at takeoff.
      Returns:
      the airspeed in knots
      See Also:
    • getTakeoffWeight

      public int getTakeoffWeight()
      Returns the weight of the aircraft at takeoff.
      Returns:
      the weight in pounds
      See Also:
    • getTakeoffFuel

      public int getTakeoffFuel()
      Returns the amount of fuel at takeoff.
      Returns:
      the amount of fuel in pounds
      See Also:
    • getTakeoffHeading

      public int getTakeoffHeading()
      Returns the heading at takeoff.
      Returns:
      the takeoff heading in degrees
      See Also:
    • getTakeoffN1

      public double getTakeoffN1()
      Returns the average N1 speed of the engines at takeoff.
      Returns:
      the average N1 percentage, mulitiplied by 100
      See Also:
    • getTakeoffLocation

      public GeospaceLocation getTakeoffLocation()
      Returns the position at takeoff.
      Returns:
      the takeoff position
      See Also:
    • getLandingTime

      public Instant getLandingTime()
      Returns the date/time that the aircraft touched down.
      Returns:
      the date/time of touchdown
      See Also:
    • getLandingDistance

      public int getLandingDistance()
      Returns the distance from the destination airport at landing. This is used to validate the provided airports.
      Returns:
      the distance from the destination airport, in miles
      See Also:
    • getLandingSpeed

      public int getLandingSpeed()
      Returns the aircraft airspeed at touchdown.
      Returns:
      the airspeed in knots
      See Also:
    • getLandingVSpeed

      public int getLandingVSpeed()
      Returns the vertical speed of the aircraft at touchdown.
      Returns:
      the vertical speed in feet per minute
      See Also:
    • getLandingWeight

      public int getLandingWeight()
      Returns the weight of the aircraft at touchdown.
      Returns:
      the weight in pounds
      See Also:
    • getLandingFuel

      public int getLandingFuel()
      Returns the amount of fuel at touchdown.
      Returns:
      the amount of fuel in pounds
      See Also:
    • getLandingHeading

      public int getLandingHeading()
      Returns the heading at touchdown.
      Returns:
      the touchdown heading in degrees
      See Also:
    • getLandingN1

      public double getLandingN1()
      Returns the average N1 speed of the engines at touchdown.
      Returns:
      the average N1 percentage, multiplied by 100
      See Also:
    • getLandingLocation

      public GeospaceLocation getLandingLocation()
      Returns the position at touchdown.
      Returns:
      the touchdown heading
      See Also:
    • getLandingScore

      public double getLandingScore()
      Returns the landing score.
      Returns:
      the score, or -1 for unknown
      See Also:
    • getEndTime

      public Instant getEndTime()
      Description copied from interface: TimeSpan
      The end date/time of this span.
      Specified by:
      getEndTime in interface TimeSpan
      Returns:
      the end date/time
    • getGateWeight

      public int getGateWeight()
      Returns the weight of the aircraft at the end of the flight.
      Returns:
      the weight in pounds
      See Also:
    • getGateFuel

      public int getGateFuel()
      Returns the amount of fuel at the end of the flight.
      Returns:
      the amount of fuel in pounds
      See Also:
    • getEndLocation

      public GeoLocation getEndLocation()
      Returns the final route position for this flight.
      Returns:
      loc the final position
      See Also:
    • getTotalFuel

      public int getTotalFuel()
      Returns the total amount of fuel burned.
      Returns:
      the total amount of fuel in pounds
      See Also:
    • getAirborneTime

      public Duration getAirborneTime()
      Returns the time that the aircraft was airborne for this flight.
      Returns:
      the Duration the aircraft was airborne
      Throws:
      NullPointerException - if either the landing or takeoff time are not set
      See Also:
    • getBlockTime

      public Duration getBlockTime()
      Returns the total time of the flight.
      Returns:
      the total Duration
      Throws:
      NullPointerException - if either the start or end time are not set
      See Also:
    • getTaxiOutTime

      public Duration getTaxiOutTime()
      Returns the outbound taxi time.
      Returns:
      the taxi Duration
      Throws:
      NullPointerException - if either taxi time or takeoff time are not set
    • getTaxiInTime

      public Duration getTaxiInTime()
      Returns the inbound taxi time.
      Returns:
      the taxi Duration
      Throws:
      NullPointerException - if either landing time or end time are not set
    • getAverageFrameRate

      public abstract double getAverageFrameRate()
      Returns the average frame rate for this flight.
      Returns:
      the average frame rate in frames per second
    • setStartTime

      public void setStartTime(Instant dt)
      Updates the start time of the flight.
      Parameters:
      dt - the date/time the flight started
      See Also:
    • setStartLocation

      public void setStartLocation(GeoLocation loc)
      Updates the first route position for this flight.
      Parameters:
      loc - the first position
      See Also:
    • setTaxiTime

      public void setTaxiTime(Instant dt)
      Updates the time the aircraft was pushed back.
      Parameters:
      dt - the date/time of pushback
      See Also:
    • setTaxiWeight

      public void setTaxiWeight(int w)
      Updates the weight of the aircraft at pushback.
      Parameters:
      w - the weight in pounds
      See Also:
    • setTaxiFuel

      public void setTaxiFuel(int f)
      Updates the fuel amount at pushback.
      Parameters:
      f - the amount of fuel in pounds
      See Also:
    • setTakeoffTime

      public void setTakeoffTime(Instant dt)
      Updates the takeoff date/time.
      Parameters:
      dt - the date/time at takeoff
      See Also:
    • setTakeoffDistance

      public void setTakeoffDistance(int d)
      Updates the distance from the origin airport where takeoff occured.
      Parameters:
      d - the distance in miles
      See Also:
    • setTakeoffSpeed

      public void setTakeoffSpeed(int s)
      Updates the airspeed at takeoff.
      Parameters:
      s - the airspeed in knots
      See Also:
    • setTakeoffWeight

      public void setTakeoffWeight(int w)
      Updates the aircraft weight at takeoff.
      Parameters:
      w - the weight in pounds
      See Also:
    • setTakeoffFuel

      public void setTakeoffFuel(int f)
      Updates the amount of fuel at takeoff.
      Parameters:
      f - the amount of fuel in pounds
      See Also:
    • setTakeoffHeading

      public void setTakeoffHeading(int hdg)
      Updates the heading at takeoff.
      Parameters:
      hdg - the takeoff heading in degrees
      See Also:
    • setTakeoffN1

      public void setTakeoffN1(double n1)
      Updates the average N1 of the engines at takeoff.
      Parameters:
      n1 - the average N1, multiplied by 100
      See Also:
    • setTakeoffLocation

      public void setTakeoffLocation(GeospaceLocation loc)
      Updates the position at takeoff.
      Parameters:
      loc - the takeoff location
      See Also:
    • setLandingTime

      public void setLandingTime(Instant dt)
      Updates the landing date/time.
      Parameters:
      dt - the date/time the aircraft touched down
      See Also:
    • setLandingDistance

      public void setLandingDistance(int d)
      Updates the distance from the destination airport where touchdown occured.
      Parameters:
      d - the distance in miles
      See Also:
    • setLandingSpeed

      public void setLandingSpeed(int s)
      Updates the airspeed at touchdown.
      Parameters:
      s - the airspeed in knots
      See Also:
    • setLandingVSpeed

      public void setLandingVSpeed(int s)
      Updates the vertical speed at touchdown.
      Parameters:
      s - the vertical speed in feet per minute
      See Also:
    • setLandingWeight

      public void setLandingWeight(int w)
      Updates the weight of the aircraft at touchdown.
      Parameters:
      w - the weight in pounds
      See Also:
    • setLandingFuel

      public void setLandingFuel(int f)
      Updates the amount of fuel at touchdown.
      Parameters:
      f - the amount of fuel in pounds
      See Also:
    • setLandingHeading

      public void setLandingHeading(int hdg)
      Updates the heading at touchdown.
      Parameters:
      hdg - the touchdown heading in degrees
      See Also:
    • setLandingN1

      public void setLandingN1(double n1)
      Updates the average N1 speed of the engines at touchdown.
      Parameters:
      n1 - the average N1 speed, multiplied by 100
      See Also:
    • setLandingLocation

      public void setLandingLocation(GeospaceLocation loc)
      Updates the position at touchdown.
      Parameters:
      loc - the position
      See Also:
    • setLandingScore

      public void setLandingScore(double sc)
      Updates the landing score.
      Parameters:
      sc - the score from 0 to 1, or -1 for unknown
      See Also:
    • setEndTime

      public void setEndTime(Instant dt)
      Updates the end time of the flight.
      Parameters:
      dt - the date/time the flight ended
      See Also:
    • setEndLocation

      public void setEndLocation(GeoLocation loc)
      Updates the final route position for this flight.
      Parameters:
      loc - the final position
      See Also:
    • setGateWeight

      public void setGateWeight(int w)
      Updates the weight of the aircraft at the end of the flight.
      Parameters:
      w - the weight in pounds
      See Also:
    • setGateFuel

      public void setGateFuel(int f)
      Updates the amount of fuel at the end of the flight.
      Parameters:
      f - the amount of fuel in pounds
      See Also:
    • setTotalFuel

      public void setTotalFuel(int f)
      Updates the total amount of fuel burned during the flight.
      Parameters:
      f - the amount of fuel in punds
      See Also: