|
||||||||||
| 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.DivNode
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 | |
DivNode(Expression leftChild,
Expression rightChild)
|
|
| Method Summary | |
double |
eval(VarMap v,
FuncMap f)
Divides the evaluation of the left side by the evaluation of the right 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 DivNode(Expression leftChild,
Expression rightChild)
| Method Detail |
public double eval(VarMap v,
FuncMap f)
eval in class Expressionpublic 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 | |||||||||