choco.kernel.model.constraints
Class MetaConstraint<E extends Constraint>

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.MetaConstraint<E>
All Implemented Interfaces:
IPretty, IIndex, Constraint, IFindManager, IOptions, IVariableArray, Serializable, Comparable

public final class MetaConstraint<E extends Constraint>
extends AbstractConstraint

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class choco.kernel.model.VariableArray
VariableArray.VConstraintsDataStructure
 
Field Summary
protected  E[] constraints
           
 
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
MetaConstraint(Class metaManager, E... constraints)
           
MetaConstraint(ConstraintType type, E... constraints)
           
MetaConstraint(String metaManager, E... constraints)
           
 
Method Summary
 Variable[] doExtractVariables()
          Extract variables of a constraint and return an array of variables.
 void findManager(Properties propertiesFile)
          Set the class manager
 E getConstraint(int idx)
           
 E[] getConstraints()
           
 String pretty()
          pretty printing of the object.
 
Methods inherited from class choco.kernel.model.constraints.AbstractConstraint
compareTo, getConstraintManager, getConstraintType, getExpressionManager, getFavoriteDomains, getIntVariableScope, getManager, getName, getParameters
 
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, 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

constraints

protected E extends Constraint[] constraints
Constructor Detail

MetaConstraint

public MetaConstraint(ConstraintType type,
                      E... constraints)

MetaConstraint

public MetaConstraint(Class metaManager,
                      E... constraints)

MetaConstraint

public MetaConstraint(String metaManager,
                      E... constraints)
Method Detail

getConstraints

public E[] getConstraints()

getConstraint

public final E getConstraint(int idx)

doExtractVariables

public Variable[] doExtractVariables()
Extract variables of a constraint and return an array of variables.

Overrides:
doExtractVariables in class VariableArray
Returns:
an array of every variables contained in the Constraint.

findManager

public void findManager(Properties propertiesFile)
Description copied from interface: IFindManager
Set the class manager

Specified by:
findManager in interface IFindManager
Overrides:
findManager in class AbstractConstraint

pretty

public String pretty()
Description copied from interface: IPretty
pretty printing of the object. This String is not constant and may depend on the context.

Specified by:
pretty in interface IPretty
Overrides:
pretty in class AbstractConstraint
Returns:
a readable string representation of the object


Copyright © 2012. All Rights Reserved.