Module org.chocosolver
Class ElementFactory
- java.lang.Object
-
- org.chocosolver.solver.constraints.binary.element.ElementFactory
-
public class ElementFactory extends Object
A factory that selects the most adapted element propagator. Created by cprudhom on 29/09/15. Project: choco.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Constraint
detect(IntVar VALUE, int[] TABLE, IntVar INDEX, int OFFSET)
Detect and return the most adapted Element propagator wrt to the values in TABLE
-
-
-
Method Detail
-
detect
public static Constraint detect(IntVar VALUE, int[] TABLE, IntVar INDEX, int OFFSET)
Detect and return the most adapted Element propagator wrt to the values in TABLE- Parameters:
VALUE
- the result variableTABLE
- the array of valuesINDEX
- the index variableOFFSET
- the offset- Returns:
- an Element constraint
-
-