Package com.graphbuilder.math
Class ValNode
java.lang.Object
com.graphbuilder.math.Expression
com.graphbuilder.math.ValNode
A node of an expression tree that represents a value. A ValNode cannot have any children.
-
Field Summary
FieldsFields inherited from class com.graphbuilder.math.Expression
parent -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.graphbuilder.math.Expression
checkBeforeAccept, getFunctionNames, getParent, getVariableNames, isDescendent, toString
-
Field Details
-
val
protected double val
-
-
Constructor Details
-
ValNode
public ValNode(double d)
-
-
Method Details
-
eval
Returns the value.- Specified by:
evalin classExpression
-
getValue
public double getValue() -
setValue
public void setValue(double d)
-