javax.constraints
Enum ValueSelectorType

java.lang.Object
  extended by java.lang.Enum<ValueSelectorType>
      extended by javax.constraints.ValueSelectorType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ValueSelectorType>

public enum ValueSelectorType
extends java.lang.Enum<ValueSelectorType>


Enum Constant Summary
CUSTOM
          custom selector
IN_DOMAIN
          try values in increasing order one at a time without removing failed values on backtracking
MAX
          try values in increasing order, remove value on backtracking
MEDIAN
          try the median values first, e.g if domain has 5 values, try the third value first
MIDDLE
          try values in the middle of domain, the closest to (min+max)/2
MIN
          try values in increasing order, remove value on backtracking
MIN_IMPACT
          try a value which causes the smallest domain reduction in all other variables
MIN_MAX_ALTERNATE
          try to alternate minimal and maximal values
RANDOM
          try a random value
 
Method Summary
static ValueSelectorType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ValueSelectorType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CUSTOM

public static final ValueSelectorType CUSTOM
custom selector


IN_DOMAIN

public static final ValueSelectorType IN_DOMAIN
try values in increasing order one at a time without removing failed values on backtracking


MAX

public static final ValueSelectorType MAX
try values in increasing order, remove value on backtracking


MEDIAN

public static final ValueSelectorType MEDIAN
try the median values first, e.g if domain has 5 values, try the third value first


MIDDLE

public static final ValueSelectorType MIDDLE
try values in the middle of domain, the closest to (min+max)/2


MIN

public static final ValueSelectorType MIN
try values in increasing order, remove value on backtracking


MIN_IMPACT

public static final ValueSelectorType MIN_IMPACT
try a value which causes the smallest domain reduction in all other variables


MIN_MAX_ALTERNATE

public static final ValueSelectorType MIN_MAX_ALTERNATE
try to alternate minimal and maximal values


RANDOM

public static final ValueSelectorType RANDOM
try a random value

Method Detail

valueOf

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

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