public class RealVariable extends Variable implements RealEvaluator
RealVariable
is a Variable
of Type
RealType
. Although the Type
is clear
you have to give it by the constructor. So you can also specify your
own RealType
implementation.RealVariable
is used as a RealEvaluator
in an evaluator-tree. The method getRealValue(Real)
assigns
the constant's value to a Real
object.ComplexVariable
,
RealConstant
Constructor and Description |
---|
RealVariable(String name,
Real value,
Type type)
Creates a new
RealVariable . |
Modifier and Type | Method and Description |
---|---|
void |
getRealValue(Real r)
Assigns
r the evaluated Real value. |
equals, evaluate, getName, getReturnType, getValue, setValue, setValue, toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
evaluate, getReturnType
public void getRealValue(Real r)
RealEvaluator
r
the evaluated Real
value.getRealValue
in interface RealEvaluator
r
- the Real
value the evaluated value is to be
assigned to.RealEvaluator.getRealValue(Real)