Package org.deltava.beans.flight
Enum Class Warning
- All Implemented Interfaces:
Serializable
,Comparable<Warning>
,Constable
An enumeration to list flight condition warnings.
- Since:
- 8.0
- Version:
- 9.1
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a description of this warning condition.getScore()
Returns the FlightScore to assign to a flight containing this warning condition.static Warning
Returns the enum constant of this class with the specified name.static Warning[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OVER250K
-
DESCENTRATE
-
BANK
-
PITCH
-
GFORCE
-
TAXISPEED
-
NOFUEL
-
OVERSPEED
-
STALL
-
AIRSPACE
-
ALTITUDE
-
GEARSPEED
-
GEARUP
-
CRASH
-
ENGOUT
-
-
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
-
getDescription
Returns a description of this warning condition.- Returns:
- the Description
-
getScore
Returns the FlightScore to assign to a flight containing this warning condition.- Returns:
- a FlightScore
-