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

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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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