de.unihalle.informatik.MiToBo.segmentation.snakes.optimize
Enum SnakeOptimizer.Snake_status

java.lang.Object
  extended by java.lang.Enum<SnakeOptimizer.Snake_status>
      extended by de.unihalle.informatik.MiToBo.segmentation.snakes.optimize.SnakeOptimizer.Snake_status
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SnakeOptimizer.Snake_status>
Enclosing class:
SnakeOptimizer

public static enum SnakeOptimizer.Snake_status
extends java.lang.Enum<SnakeOptimizer.Snake_status>

Indicates the current (internal) state of the snake calculations.

Note that the enumeration needs to be public (instead of protected or even private) because it is used by the termination checkers being implemented in a subpackage of the optimizer package.


Enum Constant Summary
SNAKE_DONE
          Calculation is finished, i.e. termination criterion is fulfilled.
SNAKE_FAIL
          Something went wrong during the current iteration.
SNAKE_SUCCESS
          Iteration succeeded, but termination criterion failed.
 
Method Summary
static SnakeOptimizer.Snake_status valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SnakeOptimizer.Snake_status[] 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

SNAKE_DONE

public static final SnakeOptimizer.Snake_status SNAKE_DONE
Calculation is finished, i.e. termination criterion is fulfilled.


SNAKE_FAIL

public static final SnakeOptimizer.Snake_status SNAKE_FAIL
Something went wrong during the current iteration.


SNAKE_SUCCESS

public static final SnakeOptimizer.Snake_status SNAKE_SUCCESS
Iteration succeeded, but termination criterion failed.

Method Detail

valueOf

public static SnakeOptimizer.Snake_status 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

values

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

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