edu.nps.moves.disenum
Enum CISWeaponsForLifeForms

java.lang.Object
  extended by java.lang.Enum<CISWeaponsForLifeForms>
      extended by edu.nps.moves.disenum.CISWeaponsForLifeForms
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CISWeaponsForLifeForms>

public enum CISWeaponsForLifeForms
extends java.lang.Enum<CISWeaponsForLifeForms>

Enumeration values for CISWeaponsForLifeForms The enumeration values are generated from the SISO DIS XML EBV document (R35), which was obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31

Note that this has two ways to look up an enumerated instance from a value: a fast but brittle array lookup, and a slower and more garbage-intensive, but safer, method. if you want to minimize memory use, get rid of one or the other.

Copyright 2008-2009. This work is licensed under the BSD license, available at http://www.movesinstitute.org/licenses

Author:
DMcG, Jason Nelson

Enum Constant Summary
AKSU_74_545_MM
           
AP_HAND_GRENADE_F1
           
ASSAULT_RIFLE_AK_74_AND_AKS_74_545_MM
           
ASSAULT_RIFLE_AK_AND_AKM_762_MM
           
AT_HAND_GRENADE_RKG_3
           
AT_HAND_GRENADE_RKG_3M
           
AT_HAND_GRENADE_RKG_3T
           
AUTOMATIC_APS_9_MM_STECHKIN
           
CART_MOUNTED_TPO_50
           
FRAGMENTATION_HAND_GRENADE_RGN
           
FRAGMENTATION_HAND_GRENADE_RGO
           
GENERAL_PURPOSE_PK_762_MM
           
GIMLET_SA_16
           
GRAD_1P_MANPORTABLE_TRIPOD_ROCKET_LAUNCHER_122_MM_FOR_SPESNATZ_AND_OTHER_SPECIALISTS_AKA_9P132
           
GRAIL_SA_7
           
GREMLIN_SA_14
           
HAND_GRENADE_M75
           
HAND_GRENADE_RGD_5
           
HEAVY_DSHK_38_AND_MODEL_38_46_127_MM_DEGTYAREV
           
HEAVY_NSV_127_MM
           
LIGHT_ANTI_ARMOR_WEAPON_RPG_18
           
LIGHT_ANTITANK_WEAPON_RPG_22
           
LIGHT_RPD_762_MM
           
LIGHT_RPK_74_545_MM
           
LIGHT_RPK_762_MM
           
LPO_50
           
MG_RPG
           
MON_50_ANTIPERSONNEL_MINE
           
PLAMYA_LAUNCHER_30_MM_AGS_17
           
PORTABLE_ROCKET_LAUNCHER_RPG_16
           
PPS_43_762_MM
           
PPSH_41_762_MM
           
PSM_545_MM
           
RECOILLESS_GUN_73_MM_SPG_9
           
RIFLE_MOUNTED_LAUNCHER_BG_15_40_MM
           
ROKS_3
           
SA_18
           
SA_19
           
SAGGER_AT_3_MCLOS
           
SAXHORN_AT_7
           
SELF_LOADING_PM_9_MM_MAKAROV
           
SELF_LOADING_RIFLE_SKS_762_MM_SIMONOV
           
SMOKE_HAND_GRENADE_RDG_1
           
SNIPER_RIFLE_SVD_762_MM_DRAGUNOV
           
SPIGOT_A_B_AT_14
           
TT_33_762_MM_TOKAREV
           
VAT_ROCKET_LAUNCHER_RPG_7
           
 
Field Summary
 java.lang.String description
          Text/english description of the enumerated value
static CISWeaponsForLifeForms[] lookup
          This is an array, with each slot corresponding to an enumerated value.
 int value
          The enumerated value
 
Method Summary
static boolean enumerationForValueExists(int aVal)
          Returns true if there is an enumerated instance for this value, false otherwise.
 java.lang.String getDescription()
          Returns a text descriptioni for this enumerated value.
static java.lang.String getDescriptionForValue(int aVal)
          Returns the string description associated with the enumerated instance with this value.
static CISWeaponsForLifeForms getEnumerationForValue(int aVal)
          Returns the enumerated instance with this value.
 int getValue()
          Returns the enumerated value for this enumeration
static CISWeaponsForLifeForms valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CISWeaponsForLifeForms[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AUTOMATIC_APS_9_MM_STECHKIN

public static final CISWeaponsForLifeForms AUTOMATIC_APS_9_MM_STECHKIN

PSM_545_MM

public static final CISWeaponsForLifeForms PSM_545_MM

SELF_LOADING_PM_9_MM_MAKAROV

public static final CISWeaponsForLifeForms SELF_LOADING_PM_9_MM_MAKAROV

TT_33_762_MM_TOKAREV

public static final CISWeaponsForLifeForms TT_33_762_MM_TOKAREV

ASSAULT_RIFLE_AK_AND_AKM_762_MM

public static final CISWeaponsForLifeForms ASSAULT_RIFLE_AK_AND_AKM_762_MM

ASSAULT_RIFLE_AK_74_AND_AKS_74_545_MM

public static final CISWeaponsForLifeForms ASSAULT_RIFLE_AK_74_AND_AKS_74_545_MM

SELF_LOADING_RIFLE_SKS_762_MM_SIMONOV

public static final CISWeaponsForLifeForms SELF_LOADING_RIFLE_SKS_762_MM_SIMONOV

SNIPER_RIFLE_SVD_762_MM_DRAGUNOV

public static final CISWeaponsForLifeForms SNIPER_RIFLE_SVD_762_MM_DRAGUNOV

AKSU_74_545_MM

public static final CISWeaponsForLifeForms AKSU_74_545_MM

PPS_43_762_MM

public static final CISWeaponsForLifeForms PPS_43_762_MM

PPSH_41_762_MM

public static final CISWeaponsForLifeForms PPSH_41_762_MM

GENERAL_PURPOSE_PK_762_MM

public static final CISWeaponsForLifeForms GENERAL_PURPOSE_PK_762_MM

HEAVY_DSHK_38_AND_MODEL_38_46_127_MM_DEGTYAREV

public static final CISWeaponsForLifeForms HEAVY_DSHK_38_AND_MODEL_38_46_127_MM_DEGTYAREV

HEAVY_NSV_127_MM

public static final CISWeaponsForLifeForms HEAVY_NSV_127_MM

LIGHT_RPD_762_MM

public static final CISWeaponsForLifeForms LIGHT_RPD_762_MM

LIGHT_RPK_762_MM

public static final CISWeaponsForLifeForms LIGHT_RPK_762_MM

LIGHT_RPK_74_545_MM

public static final CISWeaponsForLifeForms LIGHT_RPK_74_545_MM

HAND_GRENADE_M75

public static final CISWeaponsForLifeForms HAND_GRENADE_M75

HAND_GRENADE_RGD_5

public static final CISWeaponsForLifeForms HAND_GRENADE_RGD_5

AP_HAND_GRENADE_F1

public static final CISWeaponsForLifeForms AP_HAND_GRENADE_F1

AT_HAND_GRENADE_RKG_3

public static final CISWeaponsForLifeForms AT_HAND_GRENADE_RKG_3

AT_HAND_GRENADE_RKG_3M

public static final CISWeaponsForLifeForms AT_HAND_GRENADE_RKG_3M

AT_HAND_GRENADE_RKG_3T

public static final CISWeaponsForLifeForms AT_HAND_GRENADE_RKG_3T

FRAGMENTATION_HAND_GRENADE_RGN

public static final CISWeaponsForLifeForms FRAGMENTATION_HAND_GRENADE_RGN

FRAGMENTATION_HAND_GRENADE_RGO

public static final CISWeaponsForLifeForms FRAGMENTATION_HAND_GRENADE_RGO

SMOKE_HAND_GRENADE_RDG_1

public static final CISWeaponsForLifeForms SMOKE_HAND_GRENADE_RDG_1

PLAMYA_LAUNCHER_30_MM_AGS_17

public static final CISWeaponsForLifeForms PLAMYA_LAUNCHER_30_MM_AGS_17

RIFLE_MOUNTED_LAUNCHER_BG_15_40_MM

public static final CISWeaponsForLifeForms RIFLE_MOUNTED_LAUNCHER_BG_15_40_MM

LPO_50

public static final CISWeaponsForLifeForms LPO_50

ROKS_3

public static final CISWeaponsForLifeForms ROKS_3

CART_MOUNTED_TPO_50

public static final CISWeaponsForLifeForms CART_MOUNTED_TPO_50

GIMLET_SA_16

public static final CISWeaponsForLifeForms GIMLET_SA_16

GRAIL_SA_7

public static final CISWeaponsForLifeForms GRAIL_SA_7

GREMLIN_SA_14

public static final CISWeaponsForLifeForms GREMLIN_SA_14

SAGGER_AT_3_MCLOS

public static final CISWeaponsForLifeForms SAGGER_AT_3_MCLOS

SAXHORN_AT_7

public static final CISWeaponsForLifeForms SAXHORN_AT_7

SPIGOT_A_B_AT_14

public static final CISWeaponsForLifeForms SPIGOT_A_B_AT_14

SA_18

public static final CISWeaponsForLifeForms SA_18

SA_19

public static final CISWeaponsForLifeForms SA_19

GRAD_1P_MANPORTABLE_TRIPOD_ROCKET_LAUNCHER_122_MM_FOR_SPESNATZ_AND_OTHER_SPECIALISTS_AKA_9P132

public static final CISWeaponsForLifeForms GRAD_1P_MANPORTABLE_TRIPOD_ROCKET_LAUNCHER_122_MM_FOR_SPESNATZ_AND_OTHER_SPECIALISTS_AKA_9P132

LIGHT_ANTI_ARMOR_WEAPON_RPG_18

public static final CISWeaponsForLifeForms LIGHT_ANTI_ARMOR_WEAPON_RPG_18

LIGHT_ANTITANK_WEAPON_RPG_22

public static final CISWeaponsForLifeForms LIGHT_ANTITANK_WEAPON_RPG_22

MG_RPG

public static final CISWeaponsForLifeForms MG_RPG

PORTABLE_ROCKET_LAUNCHER_RPG_16

public static final CISWeaponsForLifeForms PORTABLE_ROCKET_LAUNCHER_RPG_16

RECOILLESS_GUN_73_MM_SPG_9

public static final CISWeaponsForLifeForms RECOILLESS_GUN_73_MM_SPG_9

VAT_ROCKET_LAUNCHER_RPG_7

public static final CISWeaponsForLifeForms VAT_ROCKET_LAUNCHER_RPG_7

MON_50_ANTIPERSONNEL_MINE

public static final CISWeaponsForLifeForms MON_50_ANTIPERSONNEL_MINE
Field Detail

value

public final int value
The enumerated value


description

public final java.lang.String description
Text/english description of the enumerated value


lookup

public static CISWeaponsForLifeForms[] lookup
This is an array, with each slot corresponding to an enumerated value. This is a fast but brittle way to look up enumerated values. If there is no enumeration corresponding to the value it will fail, and it will also fail if the index it out of range of the array. But it is fast, and generates less garbage than the alternative of using getEnumerationForValue(). It should be used only in real-time environments, and be careful even then.

Use as CISWeaponsForLifeForms.lookup[aVal] to get the enumeration that corresponds to a value.

In non-realtime environments, the prefered method is getEnumerationForValue().

Method Detail

values

public static final CISWeaponsForLifeForms[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(CISWeaponsForLifeForms c : CISWeaponsForLifeForms.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static CISWeaponsForLifeForms valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getDescriptionForValue

public static java.lang.String getDescriptionForValue(int aVal)
Returns the string description associated with the enumerated instance with this value. If there is no enumerated instance for this value, the string Invalid enumeration: is returned.


getEnumerationForValue

public static CISWeaponsForLifeForms getEnumerationForValue(int aVal)
                                                     throws edu.nps.moves.siso.EnumNotFoundException
Returns the enumerated instance with this value. If there is no enumerated instance for this value, the exception is thrown.

Throws:
edu.nps.moves.siso.EnumNotFoundException

enumerationForValueExists

public static boolean enumerationForValueExists(int aVal)
Returns true if there is an enumerated instance for this value, false otherwise.


getValue

public int getValue()
Returns the enumerated value for this enumeration


getDescription

public java.lang.String getDescription()
Returns a text descriptioni for this enumerated value. This is usually used as the basis for the enumeration name.