choco.kernel.model.constraints
Class ComponentConstraint

java.lang.Object
  extended by choco.kernel.model.VariableArray
      extended by choco.kernel.model.ModelObject
          extended by choco.kernel.model.constraints.AbstractConstraint
              extended by choco.kernel.model.constraints.ComponentConstraint
All Implemented Interfaces:
IPretty, IIndex, Constraint, IFindManager, IOptions, IVariableArray, Serializable, Comparable
Direct Known Subclasses:
ComponentConstraintWithSubConstraints, MetaTaskConstraint, TemporalConstraint

public class ComponentConstraint
extends AbstractConstraint

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class choco.kernel.model.VariableArray
VariableArray.VConstraintsDataStructure
 
Field Summary
protected  Object parameters
           
 
Fields inherited from class choco.kernel.model.constraints.AbstractConstraint
manager
 
Fields inherited from class choco.kernel.model.VariableArray
NO_CONSTRAINTS
 
Fields inherited from interface choco.kernel.model.constraints.Constraint
LOGGER
 
Constructor Summary
ComponentConstraint(Class componentClass, Object parameters, Variable[] variables)
           
ComponentConstraint(ConstraintType constraintType, Object parameters, Variable[] variables)
           
ComponentConstraint(String componentClassName, Object parameters, Variable[] variables)
           
 
Method Summary
 int[] getFavoriteDomains()
           
 Object getParameters()
           
 
Methods inherited from class choco.kernel.model.constraints.AbstractConstraint
compareTo, findManager, getConstraintManager, getConstraintType, getExpressionManager, getIntVariableScope, getManager, getName, pretty
 
Methods inherited from class choco.kernel.model.ModelObject
addOption, addOptions, addOptions, addOptions, addOptions, containsOption, getIndex, getOptions, hashCode, toString
 
Methods inherited from class choco.kernel.model.VariableArray
cancelExtractVariables, doExtractVariables, extractVariables, forceExtractVariables, getNbVars, getVariable, getVariableIterator, getVariables, replaceBy, replaceByConstantAt, setVariables, setVariables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface choco.kernel.common.IIndex
getIndex
 
Methods inherited from interface choco.kernel.model.IVariableArray
extractVariables, getNbVars, getVariable, getVariableIterator, getVariables, replaceBy
 
Methods inherited from interface choco.kernel.model.IOptions
addOption, addOptions, addOptions, addOptions, addOptions, containsOption, getOptions
 

Field Detail

parameters

protected final Object parameters
Constructor Detail

ComponentConstraint

public ComponentConstraint(ConstraintType constraintType,
                           Object parameters,
                           Variable[] variables)

ComponentConstraint

public ComponentConstraint(String componentClassName,
                           Object parameters,
                           Variable[] variables)

ComponentConstraint

public ComponentConstraint(Class componentClass,
                           Object parameters,
                           Variable[] variables)
Method Detail

getParameters

public Object getParameters()
Overrides:
getParameters in class AbstractConstraint

getFavoriteDomains

public int[] getFavoriteDomains()
Specified by:
getFavoriteDomains in interface Constraint
Overrides:
getFavoriteDomains in class AbstractConstraint
Returns:
a list of domains accepted by the constraint and sorted by order of preference


Copyright © 2012. All Rights Reserved.