LSPFunction Class¶
- class localsolver.modeler.LSPFunction¶
A function can be either a user-defined function or a built-in function. It is possible to create external functions from the modeler API and call them in the modeler. See
LSPFunctor
for more information on how to create external functions.- See
- Since
10.0
Summary¶
Gets the name of the function. |
|
Calls the function with no argument and returns the result. |
|
Gets the function as an LSPValue. |
Instance methods¶
- string GetDeclaredName()¶
Gets the name of the function. The name of the function does not necessarily reflect the name of the variable(s) to which the function is associated. The name is mainly used to identify the function in stack traces when exceptions occur.
- Returns
Name of the function.
- Return type
string
- LSPValue Call()¶
Calls the function with no argument and returns the result.
- Returns
Return value of the call.
- Return type
- LSPValue Call(params LSPValue[] arguments)
- LSPValue Call(List<LSPValue> arguments)
Calls the function with the provided arguments and returns the result.
- Arguments
arguments – List of arguments.
- Returns
Return value of the call.
- Return type