choco.cp.model.managers
Class RealConstraintManager

java.lang.Object
  extended by choco.kernel.model.constraints.ConstraintManager<RealVariable>
      extended by choco.cp.model.managers.RealConstraintManager
All Implemented Interfaces:
ExpressionManager
Direct Known Subclasses:
CosManager, MinusManager, MultManager, PlusManager, PowerManager, SinManager

public abstract class RealConstraintManager
extends ConstraintManager<RealVariable>


Field Summary
 
Fields inherited from interface choco.kernel.model.constraints.ExpressionManager
LOGGER
 
Constructor Summary
RealConstraintManager()
           
 
Method Summary
 int[] getFavoriteDomains(List<String> options)
           
 RealExp getRealExp(Solver s, Variable rev)
           
 SConstraint[] makeConstraintAndOpposite(Solver solver, RealVariable[] variables, Object parameters, List<String> options)
          Build a constraint and its opposite for the given solver and "model variables"
abstract  RealExp makeRealExpression(Solver solver, Variable... vars)
          Build a expression node
 
Methods inherited from class choco.kernel.model.constraints.ConstraintManager
checkParameter, fail, fail, getACFavoriteIntDomains, getBCFavoriteIntDomains, makeConstraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface choco.kernel.model.constraints.ExpressionManager
makeNode
 

Constructor Detail

RealConstraintManager

public RealConstraintManager()
Method Detail

getFavoriteDomains

public int[] getFavoriteDomains(List<String> options)
Specified by:
getFavoriteDomains in class ConstraintManager<RealVariable>
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

makeRealExpression

public abstract RealExp makeRealExpression(Solver solver,
                                           Variable... vars)
Build a expression node

Parameters:
solver -
vars - variables
Returns:

getRealExp

public final RealExp getRealExp(Solver s,
                                Variable rev)

makeConstraintAndOpposite

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

Specified by:
makeConstraintAndOpposite in class ConstraintManager<RealVariable>
Parameters:
solver -
variables -
parameters -
options -
Returns:
array of 2 SConstraint object, the constraint and its opposite


Copyright © 2012. All Rights Reserved.