bcds.phison.sim
Enum LinkFailureEffect.Effect

java.lang.Object
  extended by java.lang.Enum<LinkFailureEffect.Effect>
      extended by bcds.phison.sim.LinkFailureEffect.Effect
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LinkFailureEffect.Effect>
Enclosing class:
LinkFailureEffect

public static enum LinkFailureEffect.Effect
extends java.lang.Enum<LinkFailureEffect.Effect>

The possible outcomes of a failure affecting a connection.


Enum Constant Summary
LINK_DOUBLE_FAULT
           
LINK_FAIL_ON_BACKUP
           
LINK_FAIL_ON_PROTECTED_PART
           
LINK_FAIL_ON_UNPROTECTED_PART
           
NONE
           
 
Method Summary
 boolean resistsLinkFailure()
           
 java.lang.String toString()
           
static LinkFailureEffect.Effect valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LinkFailureEffect.Effect[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final LinkFailureEffect.Effect NONE

LINK_FAIL_ON_BACKUP

public static final LinkFailureEffect.Effect LINK_FAIL_ON_BACKUP

LINK_FAIL_ON_PROTECTED_PART

public static final LinkFailureEffect.Effect LINK_FAIL_ON_PROTECTED_PART

LINK_FAIL_ON_UNPROTECTED_PART

public static final LinkFailureEffect.Effect LINK_FAIL_ON_UNPROTECTED_PART

LINK_DOUBLE_FAULT

public static final LinkFailureEffect.Effect LINK_DOUBLE_FAULT
Method Detail

values

public static LinkFailureEffect.Effect[] 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 (LinkFailureEffect.Effect c : LinkFailureEffect.Effect.values())
    System.out.println(c);

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

valueOf

public static LinkFailureEffect.Effect 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

resistsLinkFailure

public boolean resistsLinkFailure()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<LinkFailureEffect.Effect>