choco.cp.model.managers.constraints.integer
Class MetaTaskConstraintManager
java.lang.Object
choco.kernel.model.constraints.ConstraintManager<Variable>
choco.cp.model.managers.MixedConstraintManager
choco.cp.model.managers.constraints.integer.MetaTaskConstraintManager
- All Implemented Interfaces:
- ExpressionManager
public final class MetaTaskConstraintManager
- extends MixedConstraintManager
- Since:
- 28 janv. 2009 version 2.0.3
- Version:
- 2.0.3
- Author:
- Arnaud Malapert
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaTaskConstraintManager
public MetaTaskConstraintManager()
makeConstraint
public SConstraint makeConstraint(Solver solver,
Variable[] variables,
Object parameters,
List<String> options)
- Description copied from class:
ConstraintManager
- Build a constraint for the given solver and "model variables"
- Specified by:
makeConstraint
in class ConstraintManager<Variable>
- Parameters:
solver
- solver to build constraint invariables
- array of variablesparameters
- Object defining the paramatersoptions
- set of options
- Returns:
- One SConstraint
- See Also:
choco.kernel.model.constraints.ConstraintManager#makeConstraint(choco.kernel.solver.Solver,V[], Object,java.util.List
getFavoriteDomains
public int[] getFavoriteDomains(List<String> options)
- Overrides:
getFavoriteDomains
in class MixedConstraintManager
- Parameters:
options
- : the set of options on the constraint (Typically the level of consistency)
- Returns:
- a list of domains accepted by the constraint and sorted
by order of preference
Copyright © 2012. All Rights Reserved.