communication
Enum FaultLevel

java.lang.Object
  extended by java.lang.Enum<FaultLevel>
      extended by communication.FaultLevel
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FaultLevel>

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

Fault level: set the level of packet lost or transmission delay for a communication element. Five values are defined: NONE, LOW, MEDIUM, HIGH, HIGHEST and FULL.


Enum Constant Summary
FULL
           
HIGH
           
HIGHEST
           
LOW
           
MEDIUM
           
NONE
           
 
Field Summary
protected  int value
          The value of the fault level
 
Method Summary
 int getValue()
          The value of a fault level as an integer.
static FaultLevel valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FaultLevel[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final FaultLevel NONE

LOW

public static final FaultLevel LOW

MEDIUM

public static final FaultLevel MEDIUM

HIGH

public static final FaultLevel HIGH

HIGHEST

public static final FaultLevel HIGHEST

FULL

public static final FaultLevel FULL
Field Detail

value

protected int value
The value of the fault level

Method Detail

values

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

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

valueOf

public static FaultLevel 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
java.lang.NullPointerException - if the argument is null

getValue

public int getValue()
The value of a fault level as an integer.

Returns:
0 for NONE, 1 for LOW, 2 for MEDIUM, 3 for HIGH, 4 for HIGHEST, 5 for FULL