Enum Class Attribute
- All Implemented Interfaces:
Serializable, Comparable<Attribute>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBitmap used to search for any FDR-recorded flight in the database.static final intBitmap used to search for any online flight in the database. -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()Returns the bitmap mask.static booleanhasWarning(int attrs) Returns if there are any warning Attributes included within a particular bitmapbooleanin(int attrs) Returns whether this Attribute is included within a particular bitmap.static booleanisFDR(int attrs) Determines if a Flight Data Recorder Attribute is included within a particular bitmap.static booleanisOnline(int attrs) Determines if an Online Netowrk Attribute is included within a particular bitmap.booleanReturns if this attribute is a flight warning.static AttributeReturns the enum constant of this class with the specified name.static Attribute[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOTRATED
-
VATSIM
-
IVAO
-
FPI
-
ACARS
-
ROUTEWARN
-
TIMEWARN
-
CHECKRIDE
-
CHARTER
-
HISTORIC
-
ACADEMY
-
RANGEWARN
-
REFUELWARN
-
ETOPSWARN
-
DISPATCH
-
WEIGHTWARN
-
XACARS
-
RWYWARN
-
RWYSFCWARN
-
SIMFDR
-
PEDGE
-
AIRSPACEWARN
-
DIVERT
-
POSCON
-
SIMBRIEF
-
AUTOAPPROVE
-
-
Field Details
-
ONLINE_MASK
public static final int ONLINE_MASKBitmap used to search for any online flight in the database. -
FDR_MASK
public static final int FDR_MASKBitmap used to search for any FDR-recorded flight in the database.
-
-
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
-
isWarning
public boolean isWarning()Returns if this attribute is a flight warning.- Returns:
- TRUE if a warning, otherwise FALSE
-
getValue
public int getValue()Returns the bitmap mask.- Returns:
- the mask
-
in
public boolean in(int attrs) Returns whether this Attribute is included within a particular bitmap.- Parameters:
attrs- the bitmap- Returns:
- TRUE if the Attribute is included, otherwisee FALSE
-
isOnline
public static boolean isOnline(int attrs) Determines if an Online Netowrk Attribute is included within a particular bitmap.- Parameters:
attrs- the bitmap- Returns:
- TRUE if an Online Network Attribute is included, otherwise FALSE
-
isFDR
public static boolean isFDR(int attrs) Determines if a Flight Data Recorder Attribute is included within a particular bitmap.- Parameters:
attrs- the bitmap- Returns:
- TRUE if a Flight Data Recorder Attribute is included, otherwise FALSE
-
hasWarning
public static boolean hasWarning(int attrs) Returns if there are any warning Attributes included within a particular bitmap- Parameters:
attrs- the bitmap- Returns:
- TRUE if any warning Attributes are present, otherwise FALSE
-