Enum Class Attribute

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

public enum Attribute extends Enum<Attribute>
An enumeration of Flight attributes. These are stored internally and in the database as a bitmap.
Since:
12.2
Version:
12.2
Author:
Luke
  • Enum Constant Details

    • NOTRATED

      public static final Attribute NOTRATED
    • VATSIM

      public static final Attribute VATSIM
    • IVAO

      public static final Attribute IVAO
    • FPI

      public static final Attribute FPI
    • ACARS

      public static final Attribute ACARS
    • ROUTEWARN

      public static final Attribute ROUTEWARN
    • TIMEWARN

      public static final Attribute TIMEWARN
    • CHECKRIDE

      public static final Attribute CHECKRIDE
    • CHARTER

      public static final Attribute CHARTER
    • HISTORIC

      public static final Attribute HISTORIC
    • ACADEMY

      public static final Attribute ACADEMY
    • RANGEWARN

      public static final Attribute RANGEWARN
    • REFUELWARN

      public static final Attribute REFUELWARN
    • ETOPSWARN

      public static final Attribute ETOPSWARN
    • DISPATCH

      public static final Attribute DISPATCH
    • WEIGHTWARN

      public static final Attribute WEIGHTWARN
    • XACARS

      public static final Attribute XACARS
    • RWYWARN

      public static final Attribute RWYWARN
    • RWYSFCWARN

      public static final Attribute RWYSFCWARN
    • SIMFDR

      public static final Attribute SIMFDR
    • PEDGE

      public static final Attribute PEDGE
    • AIRSPACEWARN

      public static final Attribute AIRSPACEWARN
    • DIVERT

      public static final Attribute DIVERT
    • POSCON

      public static final Attribute POSCON
    • SIMBRIEF

      public static final Attribute SIMBRIEF
    • AUTOAPPROVE

      public static final Attribute AUTOAPPROVE
  • Field Details

    • ONLINE_MASK

      public static final int ONLINE_MASK
      Bitmap used to search for any online flight in the database.
    • FDR_MASK

      public static final int FDR_MASK
      Bitmap used to search for any FDR-recorded flight in the database.
  • Method Details

    • values

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