|
AIDA API Version 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Function factory.
Method Summary | |
IFunctionCatalog |
catalog()
get access to the function catalog |
IFunction |
cloneFunction(String path,
IFunction f)
Create a clone of an existing function. |
IFunction |
createFunctionByName(String path,
String model)
Create function from a model registered in the catalog. |
IFunction |
createFunctionFromScript(String name,
int dim,
String valexpr,
String parameters,
String description)
Create function from script. |
IFunction |
createFunctionFromScript(String name,
int dim,
String valexpr,
String parameters,
String description,
String gradexpr)
Create function from script. |
Method Detail |
public IFunction createFunctionByName(String path, String model) throws IllegalArgumentException
path
- The path of the IFunction. The path can either be a relative or full path.
("/folder1/folder2/functionName" and "../folder/functionName" are valid paths).
All the directories in the path must exist. The characther `/` cannot be used
in names; it is only used to delimit directories within paths.model
- The model of the function to be created.
IllegalArgumentException
- if a directory in the path does not exist, or the path is illegal.public IFunction createFunctionFromScript(String name, int dim, String valexpr, String parameters, String description) throws IllegalArgumentException
dim
- The dimension of the function, i.e. the number of variables.valexpr
- The expression of the scripted function.parameters
- A comma separeted list of what has to be considered as a parameter in the valexpr expression.description
- The description of the function.
IllegalArgumentException
- if a directory in the path does not exist, or the path is illegal, or if any of the
provided expressions is illigal.public IFunction createFunctionFromScript(String name, int dim, String valexpr, String parameters, String description, String gradexpr) throws IllegalArgumentException
dim
- The dimension of the function, i.e. the number of variables.valexpr
- The expression of the scripted function.parameters
- A comma separeted list of what has to be considered as a parameter in the valexpr expression.description
- The description of the function.gradexpr
- A comma separated list of the expressions for the derivatives of the function with respect to the parameters.
IllegalArgumentException
- if a directory in the path does not exist, or the path is illegal, or if any of the
provided expressions is illigal.public IFunction cloneFunction(String path, IFunction f) throws IllegalArgumentException
path
- The path of the IFunction. The path can either be a relative or full path.
("/folder1/folder2/functionName" and "../folder/functionName" are valid paths).
All the directories in the path must exist. The characther `/` cannot be used
in names; it is only used to delimit directories within paths.f
- The IFunction to be cloned.
IllegalArgumentException
- if a directory in the path does not exist, or the path is illegal.public IFunctionCatalog catalog()
|
AIDA API Version 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |