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, siblingsToString
public ConstantNode(String s)
public String toExpression()
toExpression
in interface DoubleParseTreeNode
toExpression
in interface ParseTreeNode
public AbstractDVal makeEvaluable(HashMap<String,Double> fixedHM)
makeEvaluable
in interface DoubleParseTreeNode
public double getDoubleValue()
public Dimensional getDimensionality(HashMap<String,Dimensional> dimHM) throws ContentError
getDimensionality
in interface ParseTreeNode
ContentError
public Dimensional evaluateDimensional(HashMap<String,Dimensional> dhm) throws ContentError
evaluateDimensional
in interface ParseTreeNode
ContentError
public void substituteVariables(HashMap<String,String> varHM) throws ContentError
substituteVariables
in interface ParseTreeNode
ContentError
public void doVisit(ExpressionVisitor ev) throws ContentError
doVisit
in interface ParseTreeNode
ContentError
Copyright © 2019. All rights reserved.