Package edu.cnu.mdi.sim.task
package edu.cnu.mdi.sim.task
Typed one-shot background execution built on MDI's simulation engine.
Use BackgroundTasks.create(edu.cnu.mdi.sim.task.BackgroundTask<R>) when listeners or
controls must be attached before execution, then call
TaskHandle.start(). Use
BackgroundTasks.submit(edu.cnu.mdi.sim.task.BackgroundTask<R>) for fire-and-observe
work. Task bodies remain independent of Swing and communicate through
TaskContext.
-
ClassDescriptionA single background computation managed by MDI's simulation infrastructure.Factory methods for concise one-shot background execution.Internal control-flow exception raised by
TaskContext.throwIfCancellationRequested().Services made available to aBackgroundTaskwhile it executes.TaskHandle<R>Controls and observes one execution of a typedBackgroundTask.TaskListener<R>Listener for a typed, one-shotBackgroundTask.