Class PercentileStatsEntry

All Implemented Interfaces:
Serializable

public class PercentileStatsEntry extends LegHoursDateStatsEntry<Integer>
A bean to store flight legs/hours per year by percentile.
Since:
9.2
Version:
11.0
Author:
Luke
See Also:
  • Constructor Details

    • PercentileStatsEntry

      public PercentileStatsEntry(Instant startDate, int granularity)
      Creates the bean.
      Parameters:
      startDate - the starting date
      granularity - the granularity of percentiles
  • Method Details

    • getLegs

      public int getLegs(int pctile)
      Returns the number of flight legs for a particular percentile.
      Parameters:
      pctile - the percentile
      Returns:
      the number of legs
    • getDistance

      public int getDistance(int pctile)
      Returns the number of flight hours for a particular percentile.
      Parameters:
      pctile - the percentile
      Returns:
      the number of hours
    • getPoints

      public int getPoints(int pctile)
      Returns the number of Elite points for a particular percentile.
      Parameters:
      pctile - the percentile
      Returns:
      the number of Elite points
    • getTotal

      public int getTotal()
      Returns the total number of Pilots.
      Returns:
      the number of Pilots
    • setPercentile

      public void setPercentile(int pctile, int legs, int dst, int pts)
      Sets percentile statistics.
      Parameters:
      pctile - the percentile
      legs - the number of legs
      dst - the distance in miles
      pts - the Elite points
    • setTotal

      public void setTotal(int cnt)
      Updates the total number of Pilots.
      Parameters:
      cnt - the number of Pilots