Enum Class ETOPS

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

public enum ETOPS extends Enum<ETOPS> implements ComboAlias
An enumeration of ETOPS classifications.
Since:
4.1
Version:
10.0
Author:
Luke
  • Enum Constant Details

    • ETOPS60

      public static final ETOPS ETOPS60
    • ETOPS75

      public static final ETOPS ETOPS75
    • ETOPS90

      public static final ETOPS ETOPS90
    • ETOPS120

      public static final ETOPS ETOPS120
    • ETOPS138

      public static final ETOPS ETOPS138
    • ETOPS180

      public static final ETOPS ETOPS180
    • ETOPS207

      public static final ETOPS ETOPS207
    • ETOPS240

      public static final ETOPS ETOPS240
    • ETOPS330

      public static final ETOPS ETOPS330
    • INVALID

      public static final ETOPS INVALID
  • Method Details

    • values

      public static ETOPS[] 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 ETOPS 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
    • getTime

      public int getTime()
      Returns the single-engine operating time.
      Returns:
      the time in minutes
    • getRange

      public int getRange()
      Returns the maximum single-engine range.
      Returns:
      the range in nautical miles
    • getClassification

      public static ETOPS getClassification(int range)
      Returns the ETOPS classification to fly a particular distance.
      Parameters:
      range - the range in nautical miles
      Returns:
      the ETOPS classification, or null if exceeding ETOPS207
    • fromCode

      public static ETOPS fromCode(int code)
      Mechanism to calculate value from ordinal while using -1 for invalid.
      Parameters:
      code - the ETOPS ordinal, or -1 for invalid
      Returns:
      an ETOPS
    • getComboAlias

      public String getComboAlias()
      Description copied from interface: ComboAlias
      Returns the alias to use in the HTML <OPTION> element.
      Specified by:
      getComboAlias in interface ComboAlias
      Returns:
      The alias for this entry
    • getComboName

      public String getComboName()
      Description copied from interface: ComboAlias
      Returns the visible name to use in the HTML <OPTION> element.
      Specified by:
      getComboName in interface ComboAlias
      Returns:
      The visible name for this entry