public class FuncNode extends TermNode
| Modifier and Type | Field and Description |
|---|---|
private Bag |
bag |
private double[] |
of |
parent| Constructor and Description |
|---|
FuncNode(java.lang.String name,
boolean negate) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Expression x)
Adds the expression as a child.
|
Expression |
child(int i)
Returns the child expression at the specified index.
|
double |
eval(VarMap v,
FuncMap f)
Evaluates each of the children, storing the result in an internal double array.
|
void |
insert(Expression x,
int i)
Adds the expression as a child at the specified index.
|
int |
numChildren()
Returns the number of child expressions.
|
void |
remove(Expression x)
Removes the specified expression as a child.
|
checkBeforeAccept, getFunctionNames, getParent, getVariableNames, isDescendent, toStringprivate Bag bag
private double[] of
public void add(Expression x)
public void insert(Expression x, int i)
public void remove(Expression x)
public int numChildren()
public Expression child(int i)
public double eval(VarMap v, FuncMap f)
eval in class Expression