- java.lang.Object
-
- java.lang.Enum<MaxSAT.MaxSATResult>
-
- org.logicng.solvers.maxsat.algorithms.MaxSAT.MaxSATResult
-
- All Implemented Interfaces:
Serializable,Comparable<MaxSAT.MaxSATResult>
- Enclosing class:
- MaxSAT
public static enum MaxSAT.MaxSATResult extends Enum<MaxSAT.MaxSATResult>
The MaxSAT result type:SATISFIABLE,UNSATISFIABLE,OPTIMUM, orUNDEF.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OPTIMUMUNDEFUNSATISFIABLE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MaxSAT.MaxSATResultvalueOf(String name)Returns the enum constant of this type with the specified name.static MaxSAT.MaxSATResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSATISFIABLE
public static final MaxSAT.MaxSATResult UNSATISFIABLE
-
OPTIMUM
public static final MaxSAT.MaxSATResult OPTIMUM
-
UNDEF
public static final MaxSAT.MaxSATResult UNDEF
-
-
Method Detail
-
values
public static MaxSAT.MaxSATResult[] 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 (MaxSAT.MaxSATResult c : MaxSAT.MaxSATResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MaxSAT.MaxSATResult valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-