Uses of Class
edu.cnu.mdi.sim.task.TaskHandle
Packages that use TaskHandle
Package
Description
Typed one-shot background execution built on MDI's simulation engine.
-
Uses of TaskHandle in edu.cnu.mdi.sim.task
Methods in edu.cnu.mdi.sim.task that return TaskHandleModifier and TypeMethodDescriptionstatic <R> TaskHandle<R> BackgroundTasks.create(BackgroundTask<R> task) Creates an unstarted handle, allowing listeners to be registered before execution begins.static <R> TaskHandle<R> BackgroundTasks.submit(BackgroundTask<R> task) Creates and immediately starts a task.Methods in edu.cnu.mdi.sim.task with parameters of type TaskHandleModifier and TypeMethodDescriptiondefault voidTaskListener.onCancelled(TaskHandle<R> handle) Called after cooperative cancellation.default voidTaskListener.onCompleted(TaskHandle<R> handle, CompletionStatus status, Throwable error) Called exactly once for every terminal outcome, after the corresponding outcome-specific callback above.default voidTaskListener.onFailed(TaskHandle<R> handle, Throwable error) Called after failure.default voidTaskListener.onMessage(TaskHandle<R> handle, String message) Called for a coalesced status message.default voidTaskListener.onProgress(TaskHandle<R> handle, ProgressInfo progress) Called for a coalesced progress update.default voidTaskListener.onStarted(TaskHandle<R> handle) Called when execution begins.default voidTaskListener.onStopped(TaskHandle<R> handle) Called after a normal stop request.default voidTaskListener.onSucceeded(TaskHandle<R> handle, R result) Called after successful computation. -
Uses of TaskHandle in edu.cnu.mdi.sim.ui
Methods in edu.cnu.mdi.sim.ui that return TaskHandleMethods in edu.cnu.mdi.sim.ui with parameters of type TaskHandleModifier and TypeMethodDescriptionfinal voidTaskControlPanel.bind(TaskHandle<R> newHandle) Binds this panel to a task handle, replacing any previous binding.voidTaskControlPanel.onCompleted(TaskHandle<R> taskHandle, CompletionStatus status, Throwable error) voidTaskControlPanel.onMessage(TaskHandle<R> taskHandle, String message) voidTaskControlPanel.onProgress(TaskHandle<R> taskHandle, ProgressInfo progress) voidTaskControlPanel.onStarted(TaskHandle<R> taskHandle) Constructors in edu.cnu.mdi.sim.ui with parameters of type TaskHandleModifierConstructorDescriptionTaskControlPanel(TaskHandle<R> handle) Creates and binds a task control panel.