public interface TaskManager<T,C>
| Modifier and Type | Method and Description |
|---|---|
void |
execute(TaskIterator iterator)
|
T |
getConfiguration(TaskFactory factory,
Object tunableContext)
Returns a configuration object generated from the
Tunables
read from the TaskFactory. |
void |
setExecutionContext(C context)
Allows a user of a TaskManager to set the execution context for
the task, for example the parent Window of a dialog or the top-level
menu for menu generation.
|
T getConfiguration(TaskFactory factory, Object tunableContext)
Tunables
read from the TaskFactory.factory - The TaskFactory that will be scanned for Tunables.tunableContext - An object providing context for the Tunables.Tunables
read from the TaskFactory.void setExecutionContext(C context)
context - The object to serve as the execution context for the TaskManager.void execute(TaskIterator iterator)
Tasks in a TaskIterator provided
by a TaskFactory.
This method returns once the Tasks derived from the TaskIterator
returned by the TaskFactory's createTaskIterator() method have
started (but not necessarily completed) execution.
It does not wait for the Tasks to finish.iterator - The TaskIterator whose tasks will be executed.Copyright 2011 Cytoscape Consortium. All rights reserved.