Class StageStatsEntry
- All Implemented Interfaces:
Serializable
A bean to store Equipment Stage statistics entries.
- Since:
- 8.1
- Version:
- 10.3
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getDistance
(int stage) Returns the flight distance for a particular stage.double
getHours
(int stage) Returns the number of flight hours for a particular stage.int
getLegs
(int stage) Returns the number of flight legs for a particular stage.int
Returns the maximum stage number in this bean.void
setStage
(int stage, int legs, int distance, double hours) Sets stage statistics.Methods inherited from class org.deltava.beans.stats.LegHoursDateStatsEntry
getDate, hashCode
Methods inherited from class org.deltava.beans.stats.LegHoursStatsEntry
getDistance, getHours, getKeys, getLegs, getMaxKey, inc, set
-
Constructor Details
-
StageStatsEntry
-
-
Method Details
-
getLegs
public int getLegs(int stage) Returns the number of flight legs for a particular stage.- Parameters:
stage
- the stage number- Returns:
- the number of legs
-
getDistance
public int getDistance(int stage) Returns the flight distance for a particular stage.- Parameters:
stage
- the stage number- Returns:
- the distance in miles
-
getHours
public double getHours(int stage) Returns the number of flight hours for a particular stage.- Parameters:
stage
- the stage number- Returns:
- the number of hours
-
getMaxStage
public int getMaxStage()Returns the maximum stage number in this bean.- Returns:
- the highest stage
-
setStage
public void setStage(int stage, int legs, int distance, double hours) Sets stage statistics.- Parameters:
stage
- the stage numberlegs
- the number of legsdistance
- the flight distance in mileshours
- the number of hours
-