|
Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.task.sample.SampleTask
public class SampleTask
Sample Task, used to illustrate the Task Framework. This tasks counts from 0 to maxValue.
Constructor Summary | |
---|---|
SampleTask(int max,
long countDelay)
Constructor. |
|
SampleTask(int max,
long countDelay,
int exceptionIndex)
Constructor. |
Method Summary | |
---|---|
String |
getTitle()
Gets the Task Title. |
void |
halt()
Non-blocking call to interrupt the task. |
void |
run()
Run the Task. |
void |
setTaskMonitor(TaskMonitor taskMonitor)
Sets the Task Monitor. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SampleTask(int max, long countDelay)
max
- Max Count Value.countDelay
- Delay between each count (in milliseconds).public SampleTask(int max, long countDelay, int exceptionIndex)
max
- Max Count Value.countDelay
- Delay between each count (in milliseconds).exceptionIndex
- The Task will throw a NullPointerException
when it reaches the exceptionIndex
value.Method Detail |
---|
public void run()
run
in interface Task
run
in interface Runnable
public void halt()
halt
in interface Haltable
halt
in interface Task
public void setTaskMonitor(TaskMonitor taskMonitor)
setTaskMonitor
in interface Task
taskMonitor
- TaskMonitor Object.public String getTitle()
getTitle
in interface Task
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |