josx.robotics
Class ActivityBase

java.lang.Object
  extended byjava.lang.Thread
      extended byjosx.robotics.ActivityBase
Direct Known Subclasses:
Activity

public abstract class ActivityBase
extends Thread

Useful base class. Makes it less obvious that we happen to be subclassing Thread. In addition if you need an activity that executes whenever a Activity is executed, you can subclass this and waut() on monitor.

See Also:
Activity

Field Summary
protected static Object monitor
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ActivityBase()
          Set this thread to be a daemon thread.
 
Methods inherited from class java.lang.Thread
currentThread, getPriority, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, run, setDaemon, setPriority, sleep, start, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Field Detail

monitor

protected static final Object monitor
Constructor Detail

ActivityBase

public ActivityBase()
Set this thread to be a daemon thread.