public class VariableNode extends Node implements DoubleParseTreeNode
BNARY_OPERATOR, CLOSE, CONSTANT, OPEN, type, UNARY_OPERATOR, UNKNOWN, VARIABLE| Constructor and Description |
|---|
VariableNode(String s) |
| Modifier and Type | Method and Description |
|---|---|
void |
doVisit(ExpressionVisitor ev) |
double |
evalD(HashMap<String,Double> valHS) |
Dimensional |
evaluateDimensional(HashMap<String,Dimensional> dimHM) |
Dimensional |
getDimensionality(HashMap<String,Dimensional> dimHM) |
AbstractDVal |
makeEvaluable(HashMap<String,Double> fixedHM) |
void |
substituteVariables(HashMap<String,String> varHM) |
String |
toExpression() |
String |
toString() |
deparent, detachNext, detachPrevious, dispose, isClose, isOpen, linkNext, next, parent, previous, remove, replaceChild, replaceNext, replacePrevious, replaceSymbols, replaceWith, setParent, siblingsToStringpublic VariableNode(String s)
public String toExpression()
toExpression in interface DoubleParseTreeNodetoExpression in interface ParseTreeNodepublic void substituteVariables(HashMap<String,String> varHM)
substituteVariables in interface ParseTreeNodepublic double evalD(HashMap<String,Double> valHS) throws ParseError
ParseErrorpublic AbstractDVal makeEvaluable(HashMap<String,Double> fixedHM) throws ContentError
makeEvaluable in interface DoubleParseTreeNodeContentErrorpublic Dimensional getDimensionality(HashMap<String,Dimensional> dimHM) throws ContentError
getDimensionality in interface ParseTreeNodeContentErrorpublic Dimensional evaluateDimensional(HashMap<String,Dimensional> dimHM) throws ContentError
evaluateDimensional in interface ParseTreeNodeContentErrorpublic void doVisit(ExpressionVisitor ev)
doVisit in interface ParseTreeNodeCopyright © 2019. All rights reserved.