Class LandingScorer

java.lang.Object
org.deltava.beans.flight.LandingScorer

public class LandingScorer extends Object
A utility class to score FDR flight reports.
Since:
10.4
Version:
11.2
Author:
Luke
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Optimal distance from runway threshold at touchdown.
    static final double
    Runway distance scoring factor.
    static final int
    Optimal vertical speed at touchdown.
    static final double
    Vertical speed scoring factor.
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    score(int vSpeed, int rwyDistance)
    Scores a landing based on delta from optimal vertical speed at touchdown and distance from runway threshold.
    static double
    scoreLegacy(int vSpeed, int rwyDistance)
    Scores a landing based on delta from optimal vertical speed at touchdown and distance from runway threshold.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • OPT_VSPEED

      public static final int OPT_VSPEED
      Optimal vertical speed at touchdown.
      See Also:
    • OPT_VSPEED_FACTOR

      public static final double OPT_VSPEED_FACTOR
      Vertical speed scoring factor.
      See Also:
    • OPT_DISTANCE

      public static final int OPT_DISTANCE
      Optimal distance from runway threshold at touchdown.
      See Also:
    • OPT_DISTANCE_FACTOR

      public static final double OPT_DISTANCE_FACTOR
      Runway distance scoring factor.
      See Also:
  • Method Details

    • score

      public static double score(int vSpeed, int rwyDistance)
      Scores a landing based on delta from optimal vertical speed at touchdown and distance from runway threshold.
      Parameters:
      vSpeed - the vertical speed at touchdown in feet per minute
      rwyDistance - the distance from the runway threshold in feet
      Returns:
      a flight score from 0 to 100, or -1 if it cannot be scored
    • scoreLegacy

      public static double scoreLegacy(int vSpeed, int rwyDistance)
      Scores a landing based on delta from optimal vertical speed at touchdown and distance from runway threshold.
      Parameters:
      vSpeed - the vertical speed at touchdown in feet per minute
      rwyDistance - the distance from the runway threshold in feet
      Returns:
      a flight score