org.peace_tools.workspace
Enum MSTData.MSTBuilderType

java.lang.Object
  extended by java.lang.Enum<MSTData.MSTBuilderType>
      extended by org.peace_tools.workspace.MSTData.MSTBuilderType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MSTData.MSTBuilderType>
Enclosing class:
MSTData

public static enum MSTData.MSTBuilderType
extends java.lang.Enum<MSTData.MSTBuilderType>

Different enumerations defining the different approaches that PEACE currently supports for building a MST.


Enum Constant Summary
MST
          This is the default and standard MST building algorithm that is based on Prim's algorithm.
PMST
          This method builds an approximately close MST -- it is not the MST but is a tree that is close enough to MST.
TMST
          This approach uses the concept of transitivity to build a MST.
 
Method Summary
static MSTData.MSTBuilderType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MSTData.MSTBuilderType[] 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

MST

public static final MSTData.MSTBuilderType MST
This is the default and standard MST building algorithm that is based on Prim's algorithm.


PMST

public static final MSTData.MSTBuilderType PMST
This method builds an approximately close MST -- it is not the MST but is a tree that is close enough to MST.


TMST

public static final MSTData.MSTBuilderType TMST
This approach uses the concept of transitivity to build a MST. Seems like this approach has some promise but has some implementation related performance issues that need to be ironed out.

Method Detail

values

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

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

valueOf

public static MSTData.MSTBuilderType 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