R- The type of the value this
public interface ObservableTask extends Task
Taskthat notifies its observers when it is finished executing.
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>work-api</artifactId> </dependency>
<R> R getResults(Class<? extends R> type)
type- the class type of the returned results. This is primarily used to request that the Task format the return as a String, but other types are possible also. All ObservableTasks should be able to handle String requests.
Copyright 2011 Cytoscape Consortium. All rights reserved.