public class ConstantNode extends Node implements DoubleParseTreeNode
BNARY_OPERATOR, CLOSE, CONSTANT, OPEN, type, UNARY_OPERATOR, UNKNOWN, VARIABLE| Constructor and Description |
|---|
ConstantNode(String s) |
| Modifier and Type | Method and Description |
|---|---|
void |
doVisit(ExpressionVisitor ev) |
double |
evalD(HashMap<String,Double> valHS) |
Dimensional |
evaluateDimensional(HashMap<String,Dimensional> dhm) |
Dimensional |
getDimensionality(HashMap<String,Dimensional> dimHM) |
double |
getDoubleValue() |
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 ConstantNode(String s)
public String toExpression()
toExpression in interface DoubleParseTreeNodetoExpression in interface ParseTreeNodepublic AbstractDVal makeEvaluable(HashMap<String,Double> fixedHM)
makeEvaluable in interface DoubleParseTreeNodepublic double getDoubleValue()
public Dimensional getDimensionality(HashMap<String,Dimensional> dimHM) throws ContentError
getDimensionality in interface ParseTreeNodeContentErrorpublic Dimensional evaluateDimensional(HashMap<String,Dimensional> dhm) throws ContentError
evaluateDimensional in interface ParseTreeNodeContentErrorpublic void substituteVariables(HashMap<String,String> varHM) throws ContentError
substituteVariables in interface ParseTreeNodeContentErrorpublic void doVisit(ExpressionVisitor ev) throws ContentError
doVisit in interface ParseTreeNodeContentErrorCopyright © 2019. All rights reserved.