public enum SolutionType extends Enum<SolutionType>
| Enum Constant and Description |
|---|
DEADLOCKS |
NO_SOLUTION |
OPTIMAL |
SUBOPTIMAL |
| Modifier and Type | Method and Description |
|---|---|
static SolutionType |
stringToValue(String s)
Converts a string into the corresponding solution type.
|
String |
toString()
Gets the string representation used in NOC JSON data.
|
static SolutionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SolutionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SolutionType NO_SOLUTION
public static final SolutionType OPTIMAL
public static final SolutionType SUBOPTIMAL
public static final SolutionType DEADLOCKS
public static SolutionType[] values()
for (SolutionType c : SolutionType.values()) System.out.println(c);
public static SolutionType 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 nullpublic static SolutionType stringToValue(String s)
s - The string representation of the solution type.public String toString()
toString in class Enum<SolutionType>