choco.kernel.model.variables
Class ComponentVariable

java.lang.Object
  extended by choco.kernel.model.VariableArray
      extended by choco.kernel.model.ModelObject
          extended by choco.kernel.model.variables.AbstractVariable
              extended by choco.kernel.model.variables.ComponentVariable
All Implemented Interfaces:
IPretty, IIndex, IConstraintList, IFindManager, IOptions, IVariableArray, IHook, Variable, Serializable, Comparable
Direct Known Subclasses:
IntegerExpressionVariable, RealExpressionVariable, SetExpressionVariable

public abstract class ComponentVariable
extends AbstractVariable

See Also:
Serialized Form

Nested Class Summary
protected static class ComponentVariable.ConstraintsDataStructure
           
 
Nested classes/interfaces inherited from class choco.kernel.model.VariableArray
VariableArray.VConstraintsDataStructure
 
Field Summary
protected  String expressionManager
           
static IConstraintList NO_CONSTRAINTS_DS
           
protected  Operator operator
           
protected  Object parameters
           
protected  String variableManager
           
 
Fields inherited from class choco.kernel.model.variables.AbstractVariable
name, type
 
Fields inherited from class choco.kernel.model.VariableArray
NO_CONSTRAINTS
 
Fields inherited from interface choco.kernel.model.variables.Variable
LOGGER
 
Fields inherited from interface choco.kernel.model.variables.IHook
NO_HOOK
 
Constructor Summary
protected ComponentVariable(VariableType variableType, boolean enableOption, Object parameters, IConstraintList constraints)
          For IntegerVariable, RealVariable, SetVariable.
protected ComponentVariable(VariableType variableType, Object parameters, ComponentVariable... vars)
          For expressions
  ComponentVariable(VariableType variableType, Operator operator, Object parameters, ComponentVariable... vars)
          For expressions
  ComponentVariable(VariableType variableType, String operatorManager, Object parameters, ComponentVariable... vars)
          For Expressions
 
Method Summary
 void findManager(Properties propertiesFile)
          Set the class manager
protected  String getComponentClass()
           
 ConstraintManager<?> getConstraintManager()
           
 ExpressionManager getExpressionManager()
           
 Operator getOperator()
           
protected  String getOperatorClass()
           
 Object getParameters()
           
 VariableManager<?> getVariableManager()
           
 
Methods inherited from class choco.kernel.model.variables.AbstractVariable
_addConstraint, _contains, _removeConstraint, compareTo, getConstraint, getConstraintIterator, getConstraintIterator, getConstraints, getHook, getName, getNbConstraint, getNbConstraint, getVariableType, pretty, removeConstraints, resetHook, setHook, setName, throwConstantException, toString
 
Methods inherited from class choco.kernel.model.ModelObject
addOption, addOptions, addOptions, addOptions, addOptions, containsOption, getIndex, getOptions, hashCode
 
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.model.IVariableArray
extractVariables, getNbVars, getVariable, getVariableIterator, getVariables, replaceBy
 
Methods inherited from interface choco.kernel.common.IIndex
getIndex
 
Methods inherited from interface choco.kernel.model.IOptions
addOption, addOptions, addOptions, addOptions, addOptions, containsOption, getOptions
 

Field Detail

NO_CONSTRAINTS_DS

public static final IConstraintList NO_CONSTRAINTS_DS

parameters

protected final Object parameters

variableManager

protected String variableManager

expressionManager

protected String expressionManager

operator

protected Operator operator
Constructor Detail

ComponentVariable

protected ComponentVariable(VariableType variableType,
                            boolean enableOption,
                            Object parameters,
                            IConstraintList constraints)
For IntegerVariable, RealVariable, SetVariable.


ComponentVariable

protected ComponentVariable(VariableType variableType,
                            Object parameters,
                            ComponentVariable... vars)
For expressions


ComponentVariable

public ComponentVariable(VariableType variableType,
                         Operator operator,
                         Object parameters,
                         ComponentVariable... vars)
For expressions


ComponentVariable

public ComponentVariable(VariableType variableType,
                         String operatorManager,
                         Object parameters,
                         ComponentVariable... vars)
For Expressions

Method Detail

getComponentClass

protected final String getComponentClass()

getOperatorClass

protected final String getOperatorClass()

getParameters

public final Object getParameters()

getOperator

public final Operator getOperator()

findManager

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


getVariableManager

public VariableManager<?> getVariableManager()

getExpressionManager

public ExpressionManager getExpressionManager()

getConstraintManager

public ConstraintManager<?> getConstraintManager()


Copyright © 2012. All Rights Reserved.