com.ff.JEvaluator
Class EvaluatorNodeFunc

java.lang.Object
  extended by com.ff.JEvaluator.EvaluatorNodeBaseClass
      extended by com.ff.JEvaluator.EvaluatorNodeFunc

public class EvaluatorNodeFunc
extends EvaluatorNodeBaseClass

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

Constructor Summary
EvaluatorNodeFunc()
           
 
Method Summary
 int getNumberOfParameters()
          Returns the number of parameters in 'params' ArrayList
 EvaluatorNodeBaseClass getParameter(int n)
          Returns the n-th EvaluatorNodeFunc parameter subtree
 void setParameter(int n, EvaluatorNodeBaseClass p)
          Sets the n-th EvaluatorNodeFunc parameter subtree
 
Methods inherited from class com.ff.JEvaluator.EvaluatorNodeBaseClass
dump, getSymbol, getSymbolType, setSymbol, setSymbolType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvaluatorNodeFunc

public EvaluatorNodeFunc()
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,
                         EvaluatorNodeBaseClass 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 EvaluatorNodeBaseClass 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