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 TypeMethodDescriptionvoidAdds a pilot to this bean.voidaddPilots(Collection<Pilot> pilots) Adds pilots to this bean.cacheKey()Returns the cache key for this object.intcompareTo(ProgramMetrics pm2) Compares two beans by comparing their equipment program beans.intintintintgetSize()Returns the number of Pilots in the program.inthashCode()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:
compareToin interfaceComparable<ProgramMetrics>
-