Online documentation for FunctionFactory
Generated 2006-03-17
Used to create components which can calculate functions.
Summary
FunctionFactory is a component which allows a user to select
from a list of pre-defined mathematical functions.
It provides a graphical user interface which
- lists available functions
- allows a user to render a preview of each available function,
using default parameters
- allows a user to create a component capable of calculating
the equation representing the function
- allows a user to modify properties of this component, thereby
modifying parameters that define the function and altering
the calculation performed by the component
FunctionFactory is supplied with a number of pre-defined functions,
and developers can easily add new functions using a simple
plugin system.
Usage
Request an instance of the FunctionFactory component.
This will cause a window to be opened on your desktop, which
is your graphical user interface to the function factory.
Technical Details
Developers can easily plug new functions into the FunctionFactory
component. Simply
- add a class implementing the
equip.ect.components.functionfactory.Function
interface to directory
src/equip/ect/components/functionfactory/functions
The easiest way to do this may be by extending the
equip.ect.components.functionfactory.functions.AbstractFunction
class. See class equip.ect.components.functionfactory.functions.Linear
for an exampe of how to do this
- modify file src/equip/ect/components/functionfactory/functionslist.txt
file to include your new class
- recompile and reinstall using the functionfactory target in the
ECT build file