Enum Class ILSCategory

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

public enum ILSCategory extends Enum<ILSCategory>
An enumeration for ILS categories.
Since:
4.1
Version:
11.2
Author:
Luke
  • Enum Constant Details

  • Method Details

    • values

      public static ILSCategory[] 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 ILSCategory 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
    • getCeiling

      public int getCeiling()
      Returns the minimum cloud ceiling for this category.
      Returns:
      the ceiling in feet AGL
    • getVisibility

      public int getVisibility()
      Returns the minimum runway visibility for this category.
      Returns:
      the visibility in feet
    • categorize

      public static ILSCategory categorize(int ceiling, double viz)
      Returns the ILS category for a given set of conditions.
      Parameters:
      ceiling - the cloud ceiling in feet
      viz - the runway visibility in feet
      Returns:
      an ILSCategory