public class RealConstant extends Constant implements RealEvaluator
RealConstant
is a Constant
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.RealConstant
is used as a RealEvaluator
in an evaluator-tree. The method getRealValue(Real)
assigns
the constant's value to a Real
object.RealVariable
,
ComplexConstant
Constructor and Description |
---|
RealConstant(String n,
Real val,
Type t)
Creates a new
RealConstant . |
Modifier and Type | Method and Description |
---|---|
void |
getRealValue(Real r)
Assigns
r the evaluated Real value. |
evaluate, getConstant, getReturnType, isConstant, toString
clone, equals, 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)