AlgART Home

Package net.algart.contexts

Execution contexts for complex algorithms and other modules.

See:
          Description

Interface Summary
Interface Description
ArrayMemoryContext The context informing the module, working with AlgART arrays, about the preferred memory model.
ArrayThreadPoolContext The context informing the module, working with AlgART arrays, about the preferred thread pool factory.
Context Execution context for any modules.
CurrentFolderContext The context informing the module, working with AlgART arrays, about some current folder (usually a disk directory).
InterruptionContext The context allowing the user to interrupt any algorithm.
InterruptionContext.Listener The interruption listener, that can be added and removed by the interruption context.
ProgressUpdater The context allowing to inform the user about the percents of some long-working method.
RectangleUpdater The context allowing to inform the application that some rectangular region of some 2D matrix or image has been updated.
StatusUpdater The context allowing to inform the user about execution of a long-working method via some status line or its analog.
 

Class Summary
Class Description
AbstractContext A skeletal implementation of the Context interface to minimize the effort required to implement this interface.
DefaultArrayContext A simple implementation of ArrayContext interface, based on the memory, thread pool, interruption and progress contexts defined in this package.
DefaultContext An adapter class containing the simplest ("empty") implementations of the following standard contexts: InterruptionContext, ArrayMemoryContext, ArrayThreadPoolContext, ProgressUpdater, StatusUpdater.
InterruptableAction<T> The class allowing to execute some action, interruptable via standard Java technique, in terms of some InterruptionContext.
InterruptionContext.Event The interruption event: an argument of InterruptionContext.Listener.interruptionRequested(InterruptionContext.Event) method.
SubContext A tool allowing to build a new context, called "sub-context", that inherits behavior of an existing context with some changes or extensions.
SubtaskContext A wrapper around the parent context, allowing to describe a subtask of some long-working task.
 

Exception Summary
Exception Description
InterruptionException Unchecked analog of the standard InterruptedException.
UnsupportedContextException Unchecked exception thrown by Context.as(Class) method when it cannot serve the request.
 

Package net.algart.contexts Description

Execution contexts for complex algorithms and other modules.

AlgART Laboratory 2007-2013

Since:
JDK 1.5
Version:
1.2
Author:
Daniel Alievsky