choco.kernel.model.variables.set
Class SetConstantVariable

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
                  extended by choco.kernel.model.variables.set.SetExpressionVariable
                      extended by choco.kernel.model.variables.set.SetVariable
                          extended by choco.kernel.model.variables.set.SetConstantVariable
All Implemented Interfaces:
IPretty, IIndex, IConstraintList, IFindManager, IOptions, IVariableArray, IHook, IntBoundedVariable, Variable, Serializable, Comparable

public class SetConstantVariable
extends SetVariable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class choco.kernel.model.variables.ComponentVariable
ComponentVariable.ConstraintsDataStructure
 
Nested classes/interfaces inherited from class choco.kernel.model.VariableArray
VariableArray.VConstraintsDataStructure
 
Field Summary
 
Fields inherited from class choco.kernel.model.variables.set.SetVariable
card, values
 
Fields inherited from class choco.kernel.model.variables.set.SetExpressionVariable
lowB, uppB
 
Fields inherited from class choco.kernel.model.variables.ComponentVariable
expressionManager, NO_CONSTRAINTS_DS, operator, parameters, 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
SetConstantVariable(IntegerConstantVariable card, int... values)
           
 
Method Summary
 boolean equals(Object o)
           
 int getLowB()
           
 int getUppB()
           
 int[] getValues()
           
 String pretty()
          pretty printing of the object.
 void setLowB(int lowB)
           
 void setUppB(int uppB)
           
 
Methods inherited from class choco.kernel.model.variables.set.SetVariable
addOption, doExtractVariables, getCard, setCard
 
Methods inherited from class choco.kernel.model.variables.set.SetExpressionVariable
getExpressionVariable
 
Methods inherited from class choco.kernel.model.variables.ComponentVariable
findManager, getComponentClass, getConstraintManager, getExpressionManager, getOperator, getOperatorClass, getParameters, getVariableManager
 
Methods inherited from class choco.kernel.model.variables.AbstractVariable
_addConstraint, _contains, _removeConstraint, compareTo, getConstraint, getConstraintIterator, getConstraintIterator, getConstraints, getHook, getName, getNbConstraint, getNbConstraint, getVariableType, removeConstraints, resetHook, setHook, setName, throwConstantException, toString
 
Methods inherited from class choco.kernel.model.ModelObject
addOptions, addOptions, addOptions, addOptions, containsOption, getIndex, getOptions, hashCode
 
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, 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
addOptions, addOptions, addOptions, addOptions, containsOption, getOptions
 

Constructor Detail

SetConstantVariable

public SetConstantVariable(IntegerConstantVariable card,
                           int... values)
Method Detail

getValues

public int[] getValues()
Overrides:
getValues in class SetVariable

getLowB

public int getLowB()
Specified by:
getLowB in interface IntBoundedVariable
Overrides:
getLowB in class SetExpressionVariable

getUppB

public int getUppB()
Specified by:
getUppB in interface IntBoundedVariable
Overrides:
getUppB in class SetExpressionVariable

setLowB

public void setLowB(int lowB)
Specified by:
setLowB in interface IntBoundedVariable
Overrides:
setLowB in class SetExpressionVariable

setUppB

public void setUppB(int uppB)
Specified by:
setUppB in interface IntBoundedVariable
Overrides:
setUppB in class SetExpressionVariable

pretty

public String pretty()
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 SetVariable
Returns:
a readable string representation of the object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2012. All Rights Reserved.