public class FunctionNode extends AbstractUnaryNode implements DoubleParseTreeNode
right
BNARY_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, replaceSymbols
deparent, detachNext, detachPrevious, dispose, isClose, isOpen, linkNext, next, parent, previous, remove, replaceNext, replacePrevious, replaceWith, setParent, siblingsToString
public FunctionNode(String sf)
public String toExpression() throws ContentError
toExpression
in interface DoubleParseTreeNode
toExpression
in interface ParseTreeNode
ContentError
public void claim() throws ParseError
claim
in class AbstractUnaryNode
ParseError
public void replaceChild(Node nold, Node nnew) throws ParseError
replaceChild
in class Node
ParseError
public double call(double arg)
public static double evaluate(double arg, String fname)
public AbstractDVal makeEvaluable(HashMap<String,Double> fixedHM) throws ContentError
makeEvaluable
in interface DoubleParseTreeNode
ContentError
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.