Task Class
Use extensions of this class to create the classes for individual tasks in your Simulation Assistant, one class for each task pane in the assistant. The Task displays text and allows the user to perform specified Star Actions.
The Task can have a list of pre-conditions that must be satisfied before the user can perform the task. The
setPreconditions()
function receives this list.
Independently, the Task can have a list of post-conditions that must be satisfied before the user can complete the function and continue. The
setPostconditions()
function receives this list.
A Task must use import star.assistant.Task
A Task often uses these items:
- @StarAssistantTask
- import star.assistant.annotation.StarAssistantTask
- import star.assistant.ui.FunctionTaskController
- setPreconditions()
- setPostconditions()
Example:
package Assistant;
import star.assistant.Task;
import star.assistant.annotation.StarAssistantTask;
import star.assistant.ui.FunctionTaskController;
...
@StarAssistantTask(display = "Run the Simulation",
contentPath = "HTML/06_RunSimulation.xhtml",
controller = Task06RunTheSimulation
.RunTaskController.class)
public class Task06RunTheSimulation extends Task {
public class RunTaskController extends
FunctionTaskController {
...
}
}
Online API:
For coding specifics, see the Simcenter STAR-CCM+ Help menu: