com.ff.JEvaluator
Class JEvaluatorNodeFunc

java.lang.Object
  extended by com.ff.JEvaluator.JEvaluatorNodeBaseClass
      extended by com.ff.JEvaluator.JEvaluatorNodeFunc

public class JEvaluatorNodeFunc
extends JEvaluatorNodeBaseClass

Author:
fiorucci Implements the node for the binary tree of the evaluator object, to handle and evaluate mathematical expressions

Field Summary
private  java.util.List<JEvaluatorNodeBaseClass> params
           
 
Fields inherited from class com.ff.JEvaluator.JEvaluatorNodeBaseClass
log, symbol, symbolType
 
Constructor Summary
JEvaluatorNodeFunc()
           
 
Method Summary
 int getNumberOfParameters()
          Returns the number of parameters in 'params' ArrayList
 JEvaluatorNodeBaseClass getParameter(int n)
          Returns the n-th EvaluatorNodeFunc parameter subtree
 void setParameter(int n, JEvaluatorNodeBaseClass p)
          Sets the n-th EvaluatorNodeFunc parameter subtree
 
Methods inherited from class com.ff.JEvaluator.JEvaluatorNodeBaseClass
dump, getSymbol, getSymbolType, setSymbol, setSymbolType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

params

private java.util.List<JEvaluatorNodeBaseClass> params
Constructor Detail

JEvaluatorNodeFunc

public JEvaluatorNodeFunc()
Method Detail

getNumberOfParameters

public int getNumberOfParameters()
Returns the number of parameters in 'params' ArrayList

Returns:
the number of parameters available in 'params'

setParameter

public void setParameter(int n,
                         JEvaluatorNodeBaseClass p)
Sets the n-th EvaluatorNodeFunc parameter subtree

Parameters:
n - the parameters' position in the function call
p - the parameter subtree's root node

getParameter

public JEvaluatorNodeBaseClass getParameter(int n)
Returns the n-th EvaluatorNodeFunc parameter subtree

Parameters:
n - the number of the parameter to be returned
Returns:
the rootnode to the parameter's subtree