choco.cp.model.managers.constraints.global
Class OccurrenceManager
java.lang.Object
choco.kernel.model.constraints.ConstraintManager<IntegerVariable>
choco.cp.model.managers.IntConstraintManager
choco.cp.model.managers.constraints.global.OccurrenceManager
- All Implemented Interfaces:
- ExpressionManager
public final class OccurrenceManager
- extends IntConstraintManager
A manager to build new all occurence constraints
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OccurrenceManager
public OccurrenceManager()
makeConstraint
public SConstraint makeConstraint(Solver solver,
IntegerVariable[] 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<IntegerVariable>
- 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,
IntegerVariable[] variables,
Object parameters,
List<String> options)
- Build a constraint and its opposite for the given solver and "model variables"
- Overrides:
makeConstraintAndOpposite
in class IntConstraintManager
- Parameters:
solver
- variables
- parameters
- options
-
- Returns:
- array of 2 SConstraint object, the constraint and its opposite
Copyright © 2012. All Rights Reserved.