Class LandingScorer
java.lang.Object
org.deltava.beans.flight.LandingScorer
A utility class to score FDR flight reports.
- Since:
- 10.4
- Version:
- 11.2
- Author:
- Luke
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 TypeMethodDescriptionstatic 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.
-
Field Details
-
OPT_VSPEED
public static final int OPT_VSPEEDOptimal vertical speed at touchdown.- See Also:
-
OPT_VSPEED_FACTOR
public static final double OPT_VSPEED_FACTORVertical speed scoring factor.- See Also:
-
OPT_DISTANCE
public static final int OPT_DISTANCEOptimal distance from runway threshold at touchdown.- See Also:
-
OPT_DISTANCE_FACTOR
public static final double OPT_DISTANCE_FACTORRunway 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 minuterwyDistance
- 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 minuterwyDistance
- the distance from the runway threshold in feet- Returns:
- a flight score
-