choco.cp.model.managers
Class UseResourcesManager
java.lang.Object
choco.kernel.model.constraints.ConstraintManager<Variable>
choco.cp.model.managers.UseResourcesManager
- All Implemented Interfaces:
- ExpressionManager
public class UseResourcesManager
- extends ConstraintManager<Variable>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UseResourcesManager
public UseResourcesManager()
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
getFavoriteDomains
public int[] getFavoriteDomains(List<String> options)
- Specified by:
getFavoriteDomains
in class ConstraintManager<Variable>
- 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
makeConstraintAndOpposite
public SConstraint[] makeConstraintAndOpposite(Solver solver,
Variable[] variables,
Object parameters,
List<String> options)
- Description copied from class:
ConstraintManager
- Build a constraint and its opposite for the given solver and "model variables"
- Specified by:
makeConstraintAndOpposite
in class ConstraintManager<Variable>
- Parameters:
solver
- solver to build constraint invariables
- array of variablesparameters
- Object defining the paramatersoptions
- set of options
- Returns:
- array of 2 SConstraint object, the constraint and its opposite
makeNode
public INode makeNode(Solver solver,
Constraint[] cstrs,
Variable[] vars)
- Description copied from interface:
ExpressionManager
- Build a expression node
cstrs
- constraintsvars
- variables
- Returns:
Copyright © 2012. All Rights Reserved.