Class FlightPromotionHelper
java.lang.Object
org.deltava.beans.flight.FlightPromotionHelper
A utility class to determine whether a Flight counts for promotion to Captain in a particular Equipment Type program.
- Since:
- 2.7
- Version:
- 9.0
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks whether this Flight Report counts for promotion to Captain in a particular equipment program.Returns the last reason why a Flight does not count for promotion to Captain.
-
Constructor Details
-
FlightPromotionHelper
Initializes the helper.- Parameters:
fr
- the FlightReport bean
-
-
Method Details
-
getLastComment
Returns the last reason why a Flight does not count for promotion to Captain.- Returns:
- the last reason, or null if none
-
canPromote
Checks whether this Flight Report counts for promotion to Captain in a particular equipment program.- Parameters:
eq
- the EquipmentType bean- Returns:
- TRUE if the flight counts for promotion, otherwise FALSE
- See Also:
-