public static enum SnakeOptimizer.Snake_status extends Enum<SnakeOptimizer.Snake_status>
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
static SnakeOptimizer.Snake_status |
valueOf(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.
|
public static final SnakeOptimizer.Snake_status SNAKE_DONE
public static final SnakeOptimizer.Snake_status SNAKE_FAIL
public static final SnakeOptimizer.Snake_status SNAKE_SUCCESS
public static SnakeOptimizer.Snake_status[] values()
for (SnakeOptimizer.Snake_status c : SnakeOptimizer.Snake_status.values()) System.out.println(c);
public static SnakeOptimizer.Snake_status valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.