choco.cp.model.managers.constraints.integer
Class MinMaxManager
java.lang.Object
choco.kernel.model.constraints.ConstraintManager<Variable>
choco.cp.model.managers.MixedConstraintManager
choco.cp.model.managers.constraints.integer.MinMaxManager
- All Implemented Interfaces:
- ExpressionManager
public final class MinMaxManager
- extends MixedConstraintManager
A manager to build min or max constraints
Method Summary |
SConstraint |
buildConstraint(Solver solver,
Variable[] variables,
Boolean parameter,
List<String> options,
IntDomainVar varM)
|
SConstraint |
makeConstraint(Solver solver,
Variable[] variables,
Object parameters,
List<String> options)
Build a constraint for the given solver and "model variables" |
SConstraint[] |
makeConstraintAndOpposite(Solver solver,
Variable[] variables,
Object parameters,
List<String> options)
Build a constraint and its opposite for the given solver and "model variables" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MinMaxManager
public MinMaxManager()
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
makeConstraintAndOpposite
public SConstraint[] makeConstraintAndOpposite(Solver solver,
Variable[] variables,
Object parameters,
List<String> options)
- Build a constraint and its opposite for the given solver and "model variables"
- Overrides:
makeConstraintAndOpposite
in class MixedConstraintManager
- Parameters:
solver
- variables
- parameters
- options
-
- Returns:
- array of 2 SConstraint object, the constraint and its opposite
buildConstraint
public SConstraint buildConstraint(Solver solver,
Variable[] variables,
Boolean parameter,
List<String> options,
IntDomainVar varM)
Copyright © 2012. All Rights Reserved.