Class ProgramMetrics
java.lang.Object
org.deltava.beans.stats.ProgramMetrics
- All Implemented Interfaces:
Serializable
,Comparable<ProgramMetrics>
,Cacheable
A bean to store equipment program-specific statistics.
- Since:
- 2.1
- Version:
- 9.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a pilot to this bean.void
addPilots
(Collection<Pilot> pilots) Adds pilots to this bean.cacheKey()
Returns the cache key for this object.int
compareTo
(ProgramMetrics pm2) Compares two beans by comparing their equipment program beans.int
int
int
int
getSize()
Returns the number of Pilots in the program.int
hashCode()
toString()
-
Constructor Details
-
ProgramMetrics
-
-
Method Details
-
addPilots
Adds pilots to this bean.- Parameters:
pilots
- the Pilots in the equipment program
-
addPilot
-
getSize
public int getSize()Returns the number of Pilots in the program.- Returns:
- the number of Pilots
-
getRankCounts
-
getMaxRankCount
public int getMaxRankCount() -
getHireCounts
-
getMaxHireCount
public int getMaxHireCount() -
getStatusCounts
-
getMaxStatusCount
public int getMaxStatusCount() -
hashCode
-
toString
-
cacheKey
-
compareTo
Compares two beans by comparing their equipment program beans.- Specified by:
compareTo
in interfaceComparable<ProgramMetrics>
-