function
Class FunctionFactory

java.lang.Object
  extended by function.FunctionFactory

public class FunctionFactory
extends java.lang.Object

Factory for instantiating BasicScalarFunctions of fixed and variable dimensions.

Author:
dgorur

Constructor Summary
FunctionFactory()
           
 
Method Summary
static ScalarFunction getInstance(java.lang.String name)
          Creates an instance of the requested function.
static ScalarFunction getInstance(java.lang.String name, java.lang.Integer inputDimension)
          Returns an instance of the requested function in the given number of dimensions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionFactory

public FunctionFactory()
Method Detail

getInstance

public static ScalarFunction getInstance(java.lang.String name)
Creates an instance of the requested function. If the function is of variable dimensionality, then the default number of dimensions is used.

Parameters:
name - the name of the function to create.
Returns:
an instance of the requested function.
See Also:
VariableDomainScalarFunction

getInstance

public static ScalarFunction getInstance(java.lang.String name,
                                         java.lang.Integer inputDimension)
Returns an instance of the requested function in the given number of dimensions. If the requested function is of fixed dimensionality, and the requested dimensionality matches this, a successful instantiation results, otherwise a RuntimeException is thrown.

Parameters:
name - the name of the requested function.
inputDimension - the given number of dimensions.
Returns:
an instance of the requested function in the given number of dimensions.