Package net.algart.contexts
package net.algart.contexts
Execution contexts for complex algorithms and other modules.
- Author:
- Daniel Alievsky
-
ClassDescriptionA skeletal implementation of the
Context
interface to minimize the effort required to implement this interface.The context informing the module, working withAlgART arrays
, about the preferredmemory model
.The context informing the module, working withAlgART arrays
, about the preferredthread pool factory
.Execution context for any modules.The context informing the module, working withAlgART arrays
, about some current folder (usually a disk directory).A simple implementation ofArrayContext
interface, based on thememory
,thread pool
,interruption
andprogress
contexts defined in this package.An adapter class containing the simplest ("empty") implementations of the following standard contexts:InterruptionContext
,ArrayMemoryContext
,ArrayThreadPoolContext
,ProgressUpdater
,StatusUpdater
.The class allowing to execute some action, interruptable via standard Java technique, in terms of someInterruptionContext
.The context allowing the user to interrupt any algorithm.The interruption event: an argument ofInterruptionContext.Listener.interruptionRequested(InterruptionContext.Event)
method.Unchecked analog of the standard InterruptedException.The context allowing to inform the user about the percents of some long-working method.The context allowing to inform the application that some rectangular region of some 2D matrix or image has been updated.The context allowing to inform the user about execution of a long-working method via some status line or its analog.A tool allowing to build a new context, called "sub-context", that inherits behavior of an existing context with some changes or extensions.A wrapper around the parent context, allowing to describe a subtask of some long-working task.Unchecked exception thrown byContext.as(Class)
method when it cannot serve the request.