choco.cp.model.managers
Class SetConstraintManager
java.lang.Object
choco.kernel.model.constraints.ConstraintManager<SetVariable>
choco.cp.model.managers.SetConstraintManager
- All Implemented Interfaces:
- ExpressionManager
- Direct Known Subclasses:
- ComplementSetManager, DisjunctionManager, IntersectionManager, IsIncludedManager, IsNotIncludedManager, SetLexicographicOrderingSetManager, SetValuePrecedeManager, UnionManager
public abstract class SetConstraintManager
- extends ConstraintManager<SetVariable>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetConstraintManager
public SetConstraintManager()
getFavoriteDomains
public int[] getFavoriteDomains(List<String> options)
- Specified by:
getFavoriteDomains
in class ConstraintManager<SetVariable>
- 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
makeNode
public INode makeNode(Solver solver,
Constraint[] cstrs,
Variable[] vars)
- Build a expression node
- Parameters:
solver
- cstrs
- constraintsvars
- variables
- Returns:
makeConstraintAndOpposite
public SConstraint[] makeConstraintAndOpposite(Solver solver,
SetVariable[] variables,
Object parameters,
List<String> options)
- Build a constraint and its opposite for the given solver and "model variables"
- Specified by:
makeConstraintAndOpposite
in class ConstraintManager<SetVariable>
- Parameters:
solver
- variables
- parameters
- options
-
- Returns:
- array of 2 SConstraint object, the constraint and its opposite
Copyright © 2012. All Rights Reserved.