Class RunwayLandingStats
java.lang.Object
org.deltava.beans.stats.RunwayLandingStats
- All Implemented Interfaces:
Serializable, Comparable<RunwayLandingStats>, Cacheable
A bean to track landing statistics for a particular runway.
- Since:
- 12.4
- Version:
- 12.4
- Author:
- Luke
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMinimum landing score to avoid aggregating outlier data. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intReturns the Airport.intReturns the average touchdown distance from the runway threshold.doubleReturns the average landing score.intReturns the average touchdown vertical speed.intgetCount()Returns the number of scored landings.intReturns the touchdown distance standard deviation size.Returns the Runway name.doubleReturns the landing score standard deviation size.intReturns the touchdown vertical speed standard deviation size.intgetYear()Returns the year, or zero if aggregated.inthashCode()static RunwayLandingStatsmerge(Collection<RunwayLandingStats> rls, int minLandings) Aggregates a Collection of RunwayLandingStats beans, optionally ensuring a minimum number of landings have been included.merge(RunwayLandingStats rsw) Merges two beans, claculcating combined means and standard deviations.voidsetCount(int cnt) Updates the number of scored landings.voidsetDistance(int avg, int sd) Updates the average touchdown distance and standard deviation.voidsetScore(double avg, double sd) Updates the average landing score and standard deviation.voidsetVerticalSpeed(int avg, int sd) Updates the average vertical speed at touchdown and standard deviation.toString()
-
Field Details
-
MIN_LANDING_SCORE
public static final int MIN_LANDING_SCOREMinimum landing score to avoid aggregating outlier data.- See Also:
-
-
Constructor Details
-
RunwayLandingStats
-
-
Method Details
-
merge
Aggregates a Collection of RunwayLandingStats beans, optionally ensuring a minimum number of landings have been included.- Parameters:
rls- a Collection of RunwayLandingStats beansminLandings- the minimum number of landings, or zero for all- Returns:
- a RunwayLandingStats bean with aggregated totals
-
getAirport
-
getRunway
-
getYear
public int getYear()Returns the year, or zero if aggregated.- Returns:
- the year
-
getAverageScore
public double getAverageScore()Returns the average landing score.- Returns:
- the score
-
getScoreSD
public double getScoreSD()Returns the landing score standard deviation size.- Returns:
- the standard deviation
-
getAverageDistance
public int getAverageDistance()Returns the average touchdown distance from the runway threshold.- Returns:
- the average ditsance in feet
-
getDistanceSD
public int getDistanceSD()Returns the touchdown distance standard deviation size.- Returns:
- the standard deviation
-
getAverageVerticalSpeed
public int getAverageVerticalSpeed()Returns the average touchdown vertical speed.- Returns:
- the vertical speed in feet per minute
-
getVerticalSpeedSD
public int getVerticalSpeedSD()Returns the touchdown vertical speed standard deviation size.- Returns:
- the standard deviation
-
getCount
public int getCount()Returns the number of scored landings.- Returns:
- the number of landings
-
setScore
public void setScore(double avg, double sd) Updates the average landing score and standard deviation.- Parameters:
avg- the average scoresd- the score standard deviation
-
setDistance
public void setDistance(int avg, int sd) Updates the average touchdown distance and standard deviation.- Parameters:
avg- the average distance from the threshold in feetsd- the standard deviation
-
setVerticalSpeed
public void setVerticalSpeed(int avg, int sd) Updates the average vertical speed at touchdown and standard deviation.- Parameters:
avg- the average vertical speed in feet per minutesd- the standard deviation
-
setCount
public void setCount(int cnt) Updates the number of scored landings.- Parameters:
cnt- the number of landings
-
merge
Merges two beans, claculcating combined means and standard deviations.- Parameters:
rsw- a RunwayLandingStats bean- Returns:
- a combined RunwayLandingStats bean
-
compareTo
- Specified by:
compareToin interfaceComparable<RunwayLandingStats>
-
toString
-
hashCode
-
cacheKey
-