|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.graphbuilder.math.Expression
com.graphbuilder.math.OpNode
com.graphbuilder.math.SubNode
A node of an expression tree, represented by the symbol "-".
Field Summary |
Fields inherited from class com.graphbuilder.math.OpNode |
leftChild, rightChild |
Fields inherited from class com.graphbuilder.math.Expression |
parent |
Constructor Summary | |
SubNode(Expression leftChild,
Expression rightChild)
|
Method Summary | |
double |
eval(VarMap v,
FuncMap f)
Subtracts the evaluation of the right side from the evaluation of the left side and returns the result. |
java.lang.String |
getSymbol()
Returns the text symbol that represents the operation. |
Methods inherited from class com.graphbuilder.math.OpNode |
getLeftChild, getRightChild, setLeftChild, setRightChild |
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 |
Constructor Detail |
public SubNode(Expression leftChild, Expression rightChild)
Method Detail |
public double eval(VarMap v, FuncMap f)
eval
in class Expression
public java.lang.String getSymbol()
OpNode
getSymbol
in class OpNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |