Enum Class SupplyFuelType

java.lang.Object
java.lang.Enum<SupplyFuelType>
edu.nps.moves.dis7.enumerations.SupplyFuelType
All Implemented Interfaces:
Serializable, Comparable<SupplyFuelType>, Constable

public enum SupplyFuelType extends Enum<SupplyFuelType>
This enum type is generated from XML, UID 413, marshal size 8; SupplyFuelType has 11 enumerations total. Specific values for Supply Subcategory Fuels (1).
See Also:
  • Enum Constant Details

    • OTHER

      public static final SupplyFuelType OTHER
      Other
    • GASOLINE

      public static final SupplyFuelType GASOLINE
      Gasoline
    • DIESEL_FUEL_F_54_DF_2

      public static final SupplyFuelType DIESEL_FUEL_F_54_DF_2
      Diesel Fuel (F-54/DF-2)
    • JP_4_F_40_JET_B

      public static final SupplyFuelType JP_4_F_40_JET_B
      JP-4 (F-40/JET B)
    • FUEL_OIL

      public static final SupplyFuelType FUEL_OIL
      Fuel Oil
    • JP_8_F_34_JET_A_1

      public static final SupplyFuelType JP_8_F_34_JET_A_1
      JP-8 (F-34/JET A-1)
    • FOG_OIL

      public static final SupplyFuelType FOG_OIL
      Fog Oil
    • MULTI_SPECTRAL_FOG_OIL

      public static final SupplyFuelType MULTI_SPECTRAL_FOG_OIL
      Multi-Spectral Fog Oil
    • JP_5_F_44_JET_A

      public static final SupplyFuelType JP_5_F_44_JET_A
      JP-5 (F-44/JET A)
    • JPTS

      public static final SupplyFuelType JPTS
      JPTS
    • TS_1_RUSSIA_RUS

      public static final SupplyFuelType TS_1_RUSSIA_RUS
      TS-1 (Russia (RUS))
  • Method Details

    • values

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

      public int getValue()
      Provide enumeration value
      Returns:
      integer value
    • getDescription

      public String getDescription()
      Provide enumeration description
      Returns:
      description
    • getEnumBitWidth

      public static int getEnumBitWidth()
      bit width for this enumeration
      Returns:
      number of bits wide
    • getEnumForValue

      public static SupplyFuelType getEnumForValue(int value)
      Provide enumeration for a given value
      Parameters:
      value - integer value of interest
      Returns:
      enumeration corresponding to numeric value
    • setTRACE

      public void setTRACE(boolean value)
      Set tracing on/off for this object
      Parameters:
      value - whether tracing is on or off
    • getTRACE

      public boolean getTRACE()
      Whether tracing is on or off for this object
      Returns:
      whether tracing is on or off
    • marshal

      public void marshal(DataOutputStream dos) throws IOException
      Marshal value to DataOutputStream
      Parameters:
      dos - DataOutputStream for output
      Throws:
      IOException - input-output error
      See Also:
    • marshal

      public void marshal(ByteBuffer byteBuffer) throws Exception
      Marshal value to ByteBuffer
      Parameters:
      byteBuffer - ByteBuffer for output
      Throws:
      IOException - input-output error
      Exception
      See Also:
    • unmarshalEnum

      public static SupplyFuelType unmarshalEnum(DataInputStream dis) throws Exception
      Unmarshal value to DataInputStream
      Parameters:
      dis - DataInputStream for input
      Returns:
      enumeration of interest
      Throws:
      Exception - unmarshalling input-output error
      See Also:
    • unmarshalEnum

      public static SupplyFuelType unmarshalEnum(ByteBuffer byteBuffer) throws Exception
      Unmarshal enumeration value to ByteBuffer
      Parameters:
      byteBuffer - ByteBuffer for input
      Returns:
      enumeration of interest
      Throws:
      Exception - unmarshalling input-output error
      See Also:
    • getMarshalledSize

      public int getMarshalledSize()
      Returns size of this serialized (marshalled) object in bytes
      Returns:
      serialized size in bytes
      See Also:
    • getName

      public String getName()
      Provide name
      Returns:
      name
    • toString

      public String toString()
      Provide simple identifier
      Overrides:
      toString in class Enum<SupplyFuelType>
      Returns:
      class name, value and name