choco.cp.model.managers.constraints.global
Class ElementManager

java.lang.Object
  extended by choco.kernel.model.constraints.ConstraintManager<IntegerVariable>
      extended by choco.cp.model.managers.IntConstraintManager
          extended by choco.cp.model.managers.constraints.global.ElementManager
All Implemented Interfaces:
ExpressionManager

public final class ElementManager
extends IntConstraintManager

Created by IntelliJ IDEA. User: charles Date: 9 août 2008 Time: 16:25:12


Field Summary
 
Fields inherited from interface choco.kernel.model.constraints.ExpressionManager
LOGGER
 
Constructor Summary
ElementManager()
           
 
Method Summary
 SConstraint makeConstraint(Solver solver, IntegerVariable[] variables, Object parameters, List<String> options)
          Build a constraint for the given solver and "model variables"
 SConstraint[] makeConstraintAndOpposite(Solver solver, IntegerVariable[] variables, Object parameters, List<String> options)
          Build a constraint and its opposite for the given solver and "model variables"
 
Methods inherited from class choco.cp.model.managers.IntConstraintManager
getFavoriteDomains, makeNode
 
Methods inherited from class choco.kernel.model.constraints.ConstraintManager
checkParameter, fail, fail, getACFavoriteIntDomains, getBCFavoriteIntDomains
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementManager

public ElementManager()
Method Detail

makeConstraint

public SConstraint makeConstraint(Solver solver,
                                  IntegerVariable[] variables,
                                  Object parameters,
                                  List<String> options)
Build a constraint for the given solver and "model variables"

Specified by:
makeConstraint in class ConstraintManager<IntegerVariable>
Parameters:
solver -
variables -
parameters - : a "hook" to attach any kind of parameters to constraints
options -
Returns:

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.