choco.cp.model.managers
Class MixedConstraintManager

java.lang.Object
  extended by choco.kernel.model.constraints.ConstraintManager<Variable>
      extended by choco.cp.model.managers.MixedConstraintManager
All Implemented Interfaces:
ExpressionManager
Direct Known Subclasses:
AbstractPrecedenceManager, AbstractResourceManager, AmongSetManager, ClausesManager, EqManager, ForbiddenIntervalsManager, InverseSetManager, MemberManager, MemberXiY.MemberXiYManager, MetaTaskConstraintManager, MinMaxManager, NotMemberManager, PackManager, ReifiedManager, SignOpManager

public abstract class MixedConstraintManager
extends ConstraintManager<Variable>


Field Summary
 
Fields inherited from interface choco.kernel.model.constraints.ExpressionManager
LOGGER
 
Constructor Summary
MixedConstraintManager()
           
 
Method Summary
 int[] getFavoriteDomains(List<String> options)
           
 SConstraint[] makeConstraintAndOpposite(Solver solver, Variable[] variables, Object parameters, List<String> options)
          Build a constraint and its opposite for the given solver and "model variables"
 INode makeNode(Solver solver, Constraint[] cstrs, 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
 

Constructor Detail

MixedConstraintManager

public MixedConstraintManager()
Method Detail

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"

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

getFavoriteDomains

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

makeNode

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

Parameters:
solver -
cstrs - constraints
vars - variables
Returns:


Copyright © 2012. All Rights Reserved.