public class FunctionNode extends AbstractUnaryNode implements DoubleParseTreeNode
rightBNARY_OPERATOR, CLOSE, CONSTANT, OPEN, type, UNARY_OPERATOR, UNKNOWN, VARIABLE| Constructor and Description |
|---|
FunctionNode(String sf) |
| Modifier and Type | Method and Description |
|---|---|
double |
call(double arg) |
void |
claim() |
void |
doVisit(ExpressionVisitor ev) |
static double |
evaluate(double arg,
String fname) |
Dimensional |
evaluateDimensional(HashMap<String,Dimensional> dhm) |
Dimensional |
getDimensionality(HashMap<String,Dimensional> dimHM) |
AbstractDVal |
makeEvaluable(HashMap<String,Double> fixedHM) |
void |
replaceChild(Node nold,
Node nnew) |
void |
substituteVariables(HashMap<String,String> varHM) |
String |
toExpression() |
String |
toString() |
claimRight, replaceSymbolsdeparent, detachNext, detachPrevious, dispose, isClose, isOpen, linkNext, next, parent, previous, remove, replaceNext, replacePrevious, replaceWith, setParent, siblingsToStringpublic FunctionNode(String sf)
public String toExpression() throws ContentError
toExpression in interface DoubleParseTreeNodetoExpression in interface ParseTreeNodeContentErrorpublic void claim()
throws ParseError
claim in class AbstractUnaryNodeParseErrorpublic void replaceChild(Node nold, Node nnew) throws ParseError
replaceChild in class NodeParseErrorpublic double call(double arg)
public static double evaluate(double arg,
String fname)
public 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> 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.