Enum Class ILSCategory
- All Implemented Interfaces:
Serializable
,Comparable<ILSCategory>
,Constable
An enumeration for ILS categories.
- Since:
- 4.1
- Version:
- 11.2
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ILSCategory
categorize
(int ceiling, double viz) Returns the ILS category for a given set of conditions.int
Returns the minimum cloud ceiling for this category.int
Returns the minimum runway visibility for this category.static ILSCategory
Returns the enum constant of this class with the specified name.static ILSCategory[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
CATI
-
CATII
-
CATIIIa
-
CATIIIb
-
CATIIIc
-
-
Method Details
-
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
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 nameNullPointerException
- 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
Returns the ILS category for a given set of conditions.- Parameters:
ceiling
- the cloud ceiling in feetviz
- the runway visibility in feet- Returns:
- an ILSCategory
-