Package com.hexaly.modeler
Interface HxmFunctor
public interface HxmFunctor
External modeler function interface. To use your own external functions in
the modeler, you have to follow these steps :
- Implement the HxmFunctor interface with the call method.
- Then create a
HxmFunctionwithHexalyModeler.createFunction(java.lang.String, com.hexaly.modeler.HxmFunctor). - Finally, if you want to make this function available in your Hexaly modeling code,
you have to assign it to a module variable with
HxmModule.setFunction(java.lang.String, com.hexaly.modeler.HxmFunction).
HxIntExternalFunction or
HxDoubleExternalFunction).- Since:
- 10.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncall(HexalyModeler modeler, List<HxmValue> arguments) The function to call with its arguments.
-
Method Details
-
call
The function to call with its arguments.- Parameters:
modeler- Modeler instance.arguments- List of modeler values passed to the function by the caller.- Returns:
- Return value of the call.
-