Package org.cytoscape.work
Class AbstractTaskManager<T,C>
java.lang.Object
org.cytoscape.work.AbstractTaskManager<T,C>
- All Implemented Interfaces:
TaskManager<T,C>
Provides access to a TunableInterceptor to all derived classes and a
utility method to determine if an object has been annotated with Tunables.
Cytoscape Backwards Compatibility (Abstract Class): This class is abstract and meant to be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
Module: work-api
To use this in your app, include the following dependency in your POM:
<dependency>
<groupId>org.cytoscape</groupId>
<artifactId>work-api</artifactId>
</dependency>-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CThe execution context of the task manager.protected final TunableMutatorThe single tunable mutator that will be used by this task manager.protected final List<TunableRecorder>The list of tunable recorders that will be used by this task manager. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractTaskManager(TunableMutator tunableMutator) Initializes anAbstractTaskManagerobject by setting itsTunableInterceptor. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddTunableRecorder(TunableRecorder tunableRecorder, Map props) Adds the specified TunableRecorder service to the task manager.TunableMutator<?,?> Returns theTunableMutatorfor thisTaskManageror null if there is none.final voidremoveTunableRecorder(TunableRecorder tunableRecorder, Map props) Removes the specified TunableRecorder service from the task manager.voidsetExecutionContext(C context) Simple sets the executionContext to the specified input value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cytoscape.work.TaskManager
execute, execute, getConfiguration
-
Field Details
-
tunableMutator
The single tunable mutator that will be used by this task manager. -
tunableRecorders
The list of tunable recorders that will be used by this task manager. Tunable recorders can be added and removed from the list with the add/remove methods below. -
executionContext
The execution context of the task manager. This can be set with the setExecutionContext method, assuming that the setExecutionContext method hasn't been overridden to do something different.
-
-
Constructor Details
-
AbstractTaskManager
Initializes anAbstractTaskManagerobject by setting itsTunableInterceptor.- Parameters:
tunableMutator- TheTunableMutatorto be used by thisTaskManager.
-
-
Method Details
-
addTunableRecorder
Adds the specified TunableRecorder service to the task manager.- Parameters:
tunableRecorder- The TunableRecorder service to be added to this task manager.props- The service properties associated with the tunableRecorder service.
-
removeTunableRecorder
Removes the specified TunableRecorder service from the task manager.- Parameters:
tunableRecorder- The TunableRecorder service to be removed from this task manager.props- The service properties associated with the tunableRecorder service.
-
setExecutionContext
Simple sets the executionContext to the specified input value. This may be overridden.- Specified by:
setExecutionContextin interfaceTaskManager<T,C> - Parameters:
context- The execution context to be set.
-
getTunableMutator
Returns theTunableMutatorfor thisTaskManageror null if there is none.- Specified by:
getTunableMutatorin interfaceTaskManager<T,C> - Returns:
- the
TunableMutatoror none
-