Class PercentileStatsEntry
java.lang.Object
org.deltava.beans.stats.LegHoursStatsEntry<Integer>
org.deltava.beans.stats.LegHoursDateStatsEntry<Integer>
org.deltava.beans.stats.PercentileStatsEntry
- All Implemented Interfaces:
Serializable
A bean to store flight legs/hours per year by percentile.
- Since:
- 9.2
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDistance(int pctile) Returns the number of flight hours for a particular percentile.intgetLegs(int pctile) Returns the number of flight legs for a particular percentile.intgetPoints(int pctile) Returns the number of Elite points for a particular percentile.intgetTotal()Returns the total number of Pilots.voidsetPercentile(int pctile, int legs, int dst, int pts) Sets percentile statistics.voidsetTotal(int cnt) Updates the total number of Pilots.Methods inherited from class LegHoursDateStatsEntry
getDate, hashCodeMethods inherited from class LegHoursStatsEntry
getDistance, getHours, getKeys, getLegs, getMaxKey, inc, setModifier and TypeMethodDescriptionintgetDistance(Integer key) Returns the flight distance for a particular key.doubleReturns the number of flight hours for a particular key.getKeys()Returns tthe available keys.intReturns the number of flight legs for a particular key.protected IntegerReturns the maximum key value in this bean.protected voidAdds to an existing statistics entry.protected voidAdds a statistics entry.
-
Constructor Details
-
PercentileStatsEntry
Creates the bean.- Parameters:
startDate- the starting dategranularity- 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 percentilelegs- the number of legsdst- the distance in milespts- the Elite points
-
setTotal
public void setTotal(int cnt) Updates the total number of Pilots.- Parameters:
cnt- the number of Pilots
-