choco.cp.model.managers.constraints.expressions
Class IfOnlyIfManager

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.expressions.IfOnlyIfManager
All Implemented Interfaces:
ExpressionManager

public final class IfOnlyIfManager
extends IntConstraintManager


Field Summary
 
Fields inherited from interface choco.kernel.model.constraints.ExpressionManager
LOGGER
 
Constructor Summary
IfOnlyIfManager()
           
 
Method Summary
 SConstraint makeConstraint(Solver solver, IntegerVariable[] variables, Object parameters, List<String> options)
          Build a constraint for the given solver and "model variables"
 INode makeNode(Solver solver, Constraint[] cstrs, Variable[] vars)
          Build arithm node from a IntegerExpressionVariable
 
Methods inherited from class choco.cp.model.managers.IntConstraintManager
getFavoriteDomains, makeConstraintAndOpposite
 
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

IfOnlyIfManager

public IfOnlyIfManager()
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:

makeNode

public INode makeNode(Solver solver,
                      Constraint[] cstrs,
                      Variable[] vars)
Build arithm node from a IntegerExpressionVariable

Specified by:
makeNode in interface ExpressionManager
Overrides:
makeNode in class IntConstraintManager
Parameters:
solver -
cstrs - constraints (can be null)
vars - variables
Returns:


Copyright © 2012. All Rights Reserved.