com.apama.dashboard.function
Interface IFunctionLibrary


public interface IFunctionLibrary

IFunctionLibrary is the interface a Dashboard Studio custom function library must implement. A function library provides the ability to extend Dashboard Studio through the addition of custom functions. A custom function library can implement multiple functions.


Method Summary
 java.lang.Object evaluateFunction(java.lang.String function, IVariableData variables)
          Invoke a function.
 java.util.List<IFunctionDescriptor> getFunctionDescriptors()
          Get the list of FunctionDescriptors defining the functions implemented by the library.
 

Method Detail

getFunctionDescriptors

java.util.List<IFunctionDescriptor> getFunctionDescriptors()
Get the list of FunctionDescriptors defining the functions implemented by the library.

Returns:
List of FunctionDescriptors.

evaluateFunction

java.lang.Object evaluateFunction(java.lang.String function,
                                  IVariableData variables)
Invoke a function. Called at runtime when a data attachment requires data from a function.

Parameters:
function - Name of function to evaluate.
variables - Variable arguments to function.
Returns:
Result of function. The data type returned must be of the type declared for the function.


Submit a bug or feature
Copyright (c) 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG