- java.lang.Object
-
- java.lang.Enum<ResolutionPolicy>
-
- org.chocosolver.solver.ResolutionPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<ResolutionPolicy>
public enum ResolutionPolicy extends Enum<ResolutionPolicy>
User : cprudhom
Mail : cprudhom(a)emn.fr
Date : 6 mai 2010
Since : Choco 2.1.1
Define enum for solver resolution policy.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MAXIMIZE
MINIMIZE
SATISFACTION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResolutionPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static ResolutionPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SATISFACTION
public static final ResolutionPolicy SATISFACTION
-
MINIMIZE
public static final ResolutionPolicy MINIMIZE
-
MAXIMIZE
public static final ResolutionPolicy MAXIMIZE
-
-
Method Detail
-
values
public static ResolutionPolicy[] 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 (ResolutionPolicy c : ResolutionPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResolutionPolicy 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
-
-