public interface TaskFactory
TaskIterator
. Intended to be
provided and used as an OSGi service. A TaskFactory is a singleton, although each type of
Task
gets its own TaskFactory. For instance, a "load network from file" task will
have one TaskFactory and an "apply preferred layout" task will have a different TaskFactory.
TaskIterator
without relying on any other mutable state within the TaskFactory.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>
Modifier and Type | Method and Description |
---|---|
TaskIterator |
createTaskIterator()
Returns an iterator containing a sequence of
Task s. |
boolean |
isReady()
Returns true if the TaskFactory has all necessary preconditions needed to generate
a task that will execute properly, false otherwise.
|
TaskIterator createTaskIterator()
Task
s.Task
s.boolean isReady()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.