gov.sns.tools.formula
Interface Function


public interface Function

Function is the interface that all functions must implement to be referenced and executed by the interpreter. All functions should take an array of Double arguments and return a Double value.

See Also:
FunctionFactory

Method Summary
 double evaluate(double[] args)
          Evaluate the function with the given arguments.
 java.lang.String getName()
          Get the name of the function.
 int maxArgumentCount()
          The maximum number of arguments the function can take.
 int minArgumentCount()
          The minimum number of arguments the function can take.
 

Method Detail

evaluate

public double evaluate(double[] args)
Evaluate the function with the given arguments.


minArgumentCount

public int minArgumentCount()
The minimum number of arguments the function can take.


maxArgumentCount

public int maxArgumentCount()
The maximum number of arguments the function can take.


getName

public java.lang.String getName()
Get the name of the function.