Class FlightPromotionHelper

java.lang.Object
org.deltava.beans.flight.FlightPromotionHelper

public final class FlightPromotionHelper extends Object
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 Details

    • FlightPromotionHelper

      public FlightPromotionHelper(FlightReport fr)
      Initializes the helper.
      Parameters:
      fr - the FlightReport bean
  • Method Details

    • getLastComment

      public String getLastComment()
      Returns the last reason why a Flight does not count for promotion to Captain.
      Returns:
      the last reason, or null if none
    • canPromote

      public boolean canPromote(EquipmentType eq)
      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: