Purple Code

com.purpletech.util
Class ActiveTask

java.lang.Object
  |
  +--com.purpletech.util.ActiveTask
All Implemented Interfaces:
java.lang.Runnable, Task
Direct Known Subclasses:
Processor, Receiver

public abstract class ActiveTask
extends java.lang.Object
implements Task


Field Summary
protected  boolean doStop
           
protected  java.lang.String name
           
protected  int priority
           
protected  ThreadWatcher watcher
           
 
Constructor Summary
protected ActiveTask(java.lang.String name)
           
protected ActiveTask(java.lang.String name, int priority)
           
 
Method Summary
 void setName(java.lang.String n)
           
 void setPriority(int p)
           
 void setWatcher(ThreadWatcher w)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

doStop

protected boolean doStop

watcher

protected ThreadWatcher watcher

priority

protected int priority

name

protected java.lang.String name
Constructor Detail

ActiveTask

protected ActiveTask(java.lang.String name)

ActiveTask

protected ActiveTask(java.lang.String name,
                     int priority)
Method Detail

stop

public void stop()
Specified by:
stop in interface Task

setWatcher

public void setWatcher(ThreadWatcher w)
Specified by:
setWatcher in interface Task

setPriority

public void setPriority(int p)

setName

public void setName(java.lang.String n)

start

public void start()

Documentation generated March 5 2003