com.graphbuilder.math
Class ValNode

java.lang.Object
  extended bycom.graphbuilder.math.Expression
      extended bycom.graphbuilder.math.ValNode

public class ValNode
extends Expression

A node of an expression tree that represents a value. A ValNode cannot have any children.


Field Summary
protected  double val
           
 
Fields inherited from class com.graphbuilder.math.Expression
parent
 
Constructor Summary
ValNode(double d)
           
 
Method Summary
 double eval(VarMap v, FuncMap f)
          Returns the value.
 double getValue()
           
 void setValue(double d)
           
 
Methods inherited from class com.graphbuilder.math.Expression
checkBeforeAccept, getFunctionNames, getParent, getVariableNames, isDescendent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

val

protected double val
Constructor Detail

ValNode

public ValNode(double d)
Method Detail

eval

public double eval(VarMap v,
                   FuncMap f)
Returns the value.

Specified by:
eval in class Expression

getValue

public double getValue()

setValue

public void setValue(double d)