Enum Class Warning

java.lang.Object
java.lang.Enum<Warning>
org.deltava.beans.flight.Warning
All Implemented Interfaces:
Serializable, Comparable<Warning>, Constable, ComboAlias, EnumDescription

public enum Warning extends Enum<Warning> implements EnumDescription
An enumeration to list flight condition warnings.
Since:
8.0
Version:
11.5
Author:
Luke
  • Enum Constant Details

    • OVER250K

      public static final Warning OVER250K
    • DESCENTRATE

      public static final Warning DESCENTRATE
    • BANK

      public static final Warning BANK
    • PITCH

      public static final Warning PITCH
    • GFORCE

      public static final Warning GFORCE
    • TAXISPEED

      public static final Warning TAXISPEED
    • NOFUEL

      public static final Warning NOFUEL
    • OVERSPEED

      public static final Warning OVERSPEED
    • STALL

      public static final Warning STALL
    • AIRSPACE

      public static final Warning AIRSPACE
    • ALTITUDE

      public static final Warning ALTITUDE
    • GEARSPEED

      public static final Warning GEARSPEED
    • GEARUP

      public static final Warning GEARUP
    • CRASH

      public static final Warning CRASH
    • ENGOUT

      public static final Warning ENGOUT
  • Method Details

    • values

      public static Warning[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Warning valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDescription

      public String getDescription()
      Description copied from interface: EnumDescription
      The propercased description.
      Specified by:
      getDescription in interface EnumDescription
      Returns:
      the description
    • getScore

      public FlightScore getScore()
      Returns the FlightScore to assign to a flight containing this warning condition.
      Returns:
      a FlightScore
    • getMinCount

      public int getMinCount()
      Returns the minimum instances of this warning to adjust the Flight Score.
      Returns:
      the minimum instance count