Class AccomplishmentHistoryHelper
java.lang.Object
org.deltava.beans.stats.AccomplishmentHistoryHelper
A utility class to determine what Accomplishments a Pilot has achieved.
- Since:
- 3.2
- Version:
- 11.0
- Author:
- Luke
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enumeration to track whether a Pilot meets or exceeds the requirements for an Accomplishment. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the date that a pilot achieved an Accomplishment.void
add
(ConnectionEntry ce) Adds a Dispatch connection to the totals.void
add
(FlightReport fr) Adds a FlightReport to the totals.int
Returns the Pilot's database ID.long
Returns how far a pilot is towards a particular Accomplishment.Determines whether a Pilot has achieved a particular Accomplishment.Collection
<?> Returns missing elements from a particular Accomplishment.
-
Constructor Details
-
AccomplishmentHistoryHelper
-
-
Method Details
-
add
Adds a FlightReport to the totals.- Parameters:
fr
- a FlightReport bean
-
add
Adds a Dispatch connection to the totals.- Parameters:
ce
- a ConnectionEntry bean
-
has
Determines whether a Pilot has achieved a particular Accomplishment. This returns an Enumeration that indicates whether the Pilot exactly matches the requirements, or exceeds them.- Parameters:
a
- the Accomplishment bean- Returns:
- a Result
-
getProgress
Returns how far a pilot is towards a particular Accomplishment.- Parameters:
a
- the Accomplishment- Returns:
- the value achieved thus far
-
getPilotID
public int getPilotID()Returns the Pilot's database ID.- Returns:
- the database ID
-
missing
Returns missing elements from a particular Accomplishment.- Parameters:
a
- the Accomplishment bean- Returns:
- a Collection of missing objects
-
achieved
Returns the date that a pilot achieved an Accomplishment.- Parameters:
a
- the Accomplishment- Returns:
- the date/time it was achieved, or null
-