choco.cp.model.managers.constraints.global
Class PackManager
java.lang.Object
choco.kernel.model.constraints.ConstraintManager<Variable>
choco.cp.model.managers.MixedConstraintManager
choco.cp.model.managers.constraints.global.PackManager
- All Implemented Interfaces:
- ExpressionManager
public final class PackManager
- extends MixedConstraintManager
Created by IntelliJ IDEA.
User: charles
Date: 8 août 2008
Time: 20:08:04
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PackManager
public PackManager()
makeConstraint
public SConstraint makeConstraint(Solver solver,
Variable[] variables,
Object parameters,
List<String> options)
- Build a constraint for the given solver and "model variables"
- Specified by:
makeConstraint
in class ConstraintManager<Variable>
- Parameters:
solver
- variables
- parameters
- : a "hook" to attach any kind of parameters to constraintsoptions
-
- Returns:
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.