Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.plugin
Class PluginManagerInquireTask

java.lang.Object
  extended by cytoscape.plugin.PluginManagerInquireTask
All Implemented Interfaces:
Haltable, Task, Runnable

public class PluginManagerInquireTask
extends Object
implements Task


Constructor Summary
PluginManagerInquireTask(String Url, PluginInquireAction Obj)
           
 
Method Summary
 String getTitle()
          Gets a Human Readable Title of this Task.
 void halt()
          Requests that a running process be aborted.
 void run()
          run() executes the task, and is called by an external entity.
 void setTaskMonitor(TaskMonitor monitor)
          Lets this Task know who it should report to regarding task progress, errors, status description, etc.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginManagerInquireTask

public PluginManagerInquireTask(String Url,
                                PluginInquireAction Obj)
Method Detail

setTaskMonitor

public void setTaskMonitor(TaskMonitor monitor)
                    throws IllegalThreadStateException
Description copied from interface: Task
Lets this Task know who it should report to regarding task progress, errors, status description, etc. monitor may be null, in which case the task will stop reporting.

This method must be called exactly once, and before run() is invoked.

If this method is called more than once, the method may throw an IllegalStateException.

If this method is not called before run() then run() may throw an IllegalStateException.

TaskMonitor methods can only be be called from the thread that invokes run().

Specified by:
setTaskMonitor in interface Task
Parameters:
monitor - TaskMonitor Object.
Throws:
IllegalThreadStateException - Indicates that the TaskMonitor has already been set.

halt

public void halt()
Description copied from interface: Haltable
Requests that a running process be aborted. halt() does not block; it returns quickly; it is likely that halt() will return before an underlying running process exits. If halt() is called before an underlying process is started, that underlying process should abort immediately if it is ever started. If an underlying process has been started and has finished executing before halt() is called, halt() will have no effect.

Specified by:
halt in interface Haltable
Specified by:
halt in interface Task

getTitle

public String getTitle()
Description copied from interface: Task
Gets a Human Readable Title of this Task.

Specified by:
getTitle in interface Task
Returns:
human readable title of task.

run

public void run()
Description copied from interface: Task
run() executes the task, and is called by an external entity.

Task process computations should be executed in this method, by the same thread that calls this method.

run() shall only be called once for a given instance. If an asynchronous call to halt() is made while run() is executing, run() should make an effort to abort its operations and exit as soon as it is safe to do so.

Specified by:
run in interface Task
Specified by:
run in interface Runnable

www.cytoscape.org