kodkod.engine.satlab
Enum TraversalStrategy

java.lang.Object
  extended by java.lang.Enum<TraversalStrategy>
      extended by kodkod.engine.satlab.TraversalStrategy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TraversalStrategy>

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

Enumerates traversal strategies for a resolution trace.


Enum Constant Summary
BREADTH_FIRST
          Breadth-first traversal
DEPTH_FIRST
          Depth-first traversal
TOPOLOGICAL
          Topological-order traversal
 
Method Summary
static TraversalStrategy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TraversalStrategy[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEPTH_FIRST

public static final TraversalStrategy DEPTH_FIRST
Depth-first traversal


BREADTH_FIRST

public static final TraversalStrategy BREADTH_FIRST
Breadth-first traversal


TOPOLOGICAL

public static final TraversalStrategy TOPOLOGICAL
Topological-order traversal

Method Detail

values

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

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

valueOf

public static TraversalStrategy 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