choco.kernel.model.variables.real
Class RealConstantVariable
java.lang.Object
choco.kernel.model.VariableArray
choco.kernel.model.ModelObject
choco.kernel.model.variables.AbstractVariable
choco.kernel.model.variables.ComponentVariable
choco.kernel.model.variables.real.RealExpressionVariable
choco.kernel.model.variables.real.RealVariable
choco.kernel.model.variables.real.RealConstantVariable
- All Implemented Interfaces:
- IPretty, IIndex, IConstraintList, IFindManager, IOptions, IVariableArray, DoubleBoundedVariable, IHook, Variable, Serializable, Comparable
public class RealConstantVariable
- extends RealVariable
Created by IntelliJ IDEA.
User: charles
Date: 17 mars 2008
Time: 18:36:03
MOdel object for real constant
- See Also:
- Serialized Form
Fields inherited from interface choco.kernel.model.variables.Variable |
LOGGER |
Fields inherited from interface choco.kernel.model.variables.IHook |
NO_HOOK |
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.VariableArray |
cancelExtractVariables, extractVariables, forceExtractVariables, getNbVars, getVariable, getVariableIterator, getVariables, replaceBy, replaceByConstantAt, setVariables, setVariables |
RealConstantVariable
public RealConstantVariable(double value)
RealConstantVariable
public RealConstantVariable(double value1,
double value2)
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 RealVariable
- Returns:
- a readable string representation of the object
getValue
public double getValue()
setLowB
public void setLowB(double lowB)
- Specified by:
setLowB
in interface DoubleBoundedVariable
- Overrides:
setLowB
in class RealExpressionVariable
setUppB
public void setUppB(double uppB)
- Specified by:
setUppB
in interface DoubleBoundedVariable
- Overrides:
setUppB
in class RealExpressionVariable
Copyright © 2012. All Rights Reserved.