FunctionTaskController
FunctionTaskController
is an extension of
AbstractTaskController. Extend it to create a controller that defines functions that are called when the user clicks a hyperlink. The functions execute code sequentially (including macro code); that is, operations are synchronous.
A FunctionTaskController must use the following items:
- import star.assistant.Task
- import star.assistant.ui.FunctionTaskController
- A function name matching a Star Action name in the associated XHTML file.
A FunctionTaskController often uses these items:
- @StarAssistantTask
- import star.assistant.annotation.StarAssistantTask
Example:
public class CreateBoundaryTaskController extends FunctionTaskController {
public void createBoundary() {
Region region = lookupObject(Region.class);
Boundary boundary = region.getBoundaryManager().createEmptyBoundary();
boundary.setBoundaryType(InletBoundary.class);
addToTaskLookup(boundary);
}
}
Online API:
For coding specifics, see the Simcenter STAR-CCM+ Help menu: