bcds.phison.sim
Enum Consts.COST_TYPE

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

public static enum Consts.COST_TYPE
extends java.lang.Enum<Consts.COST_TYPE>

Identifies the edge cost function.


Enum Constant Summary
AVAIL
           
DIST
           
EDGE_BC
           
EDGE_BC_UNAVAIL
           
HOP
           
UNAVAIL
           
UNAVAIL_AND_EDGE_BC
           
 
Method Summary
static Consts.COST_TYPE valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Consts.COST_TYPE[] 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

HOP

public static final Consts.COST_TYPE HOP

DIST

public static final Consts.COST_TYPE DIST

AVAIL

public static final Consts.COST_TYPE AVAIL

UNAVAIL

public static final Consts.COST_TYPE UNAVAIL

EDGE_BC

public static final Consts.COST_TYPE EDGE_BC

EDGE_BC_UNAVAIL

public static final Consts.COST_TYPE EDGE_BC_UNAVAIL

UNAVAIL_AND_EDGE_BC

public static final Consts.COST_TYPE UNAVAIL_AND_EDGE_BC
Method Detail

values

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

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

valueOf

public static Consts.COST_TYPE 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