Class LandingStatistics

java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.stats.LandingStatistics
All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, Cacheable

public class LandingStatistics extends DatabaseBean
A bean used to track average landing speeds.
Since:
2.1
Version:
11.5
Author:
Luke
See Also:
  • Constructor Details

    • LandingStatistics

      public LandingStatistics(String name, String eqType)
      Initializes the bean. When displaying statistics across multiple pilots or equipment types, either parameter (but not both) can be null
      Parameters:
      name - the pilot name
      eqType - the equipment type
  • Method Details

    • getPilotName

      public String getPilotName()
      Returns the pilot name.
      Returns:
      the pilot name, or null
    • getEquipmentType

      public String getEquipmentType()
      Returns the equipment type.
      Returns:
      the equipment type, or null
    • getLegs

      public int getLegs()
      Returns the number of legs flown.
      Returns:
      the number of legs
    • getHours

      public double getHours()
      Returns the number of hours logged.
      Returns:
      the number of hours
    • getAverageSpeed

      public double getAverageSpeed()
      Returns the average touchdown speed.
      Returns:
      the average speed in feet per minute
    • getStdDeviation

      public double getStdDeviation()
      Returns the standard deviation of touchdown speeds.
      Returns:
      the standard deviation in feet per minute
    • getAverageDistance

      public double getAverageDistance()
      Returns the average runway threshold displacement.
      Returns:
      the average displacement in feet
    • getDistanceStdDeviation

      public double getDistanceStdDeviation()
      Returns the standard deviation of runway threshold displacements.
      Returns:
      the standard deviation in feet
    • getAverageScore

      public double getAverageScore()
      Returns the average landing score.
      Returns:
      the average score
    • setLegs

      public void setLegs(int legs)
      Updates the number of legs flown.
      Parameters:
      legs - the number of legs
    • setHours

      public void setHours(double hours)
      Updates the number of hours logged.
      Parameters:
      hours - the number of hours
    • setAverageSpeed

      public void setAverageSpeed(double spd)
      Updates the average touchdown speed.
      Parameters:
      spd - the average speed in feet per minute
    • setStdDeviation

      public void setStdDeviation(double sd)
      Updates the standard deviation of touchdown speeds.
      Parameters:
      sd - the standard deviation in feet per minute
    • setAverageDistance

      public void setAverageDistance(double distance)
      Updates the average threshold displacement.
      Parameters:
      distance - the distance in feet
    • setAverageScore

      public void setAverageScore(double s)
      Updates the average landing score.
      Parameters:
      s - the average score
    • setDistanceStdDeviation

      public void setDistanceStdDeviation(double sd)
      Updates the standard deviation of threshold displacements.
      Parameters:
      sd - the standard deviation in feet
    • compareTo

      public int compareTo(Object o)
      Specified by:
      compareTo in interface Comparable<Object>
      Overrides:
      compareTo in class DatabaseBean
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class DatabaseBean