lejos.subsumption
Class ActivityBase

java.lang.Object
  extended by java.lang.Thread
      extended by lejos.subsumption.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.

Author:
Paul Andrews
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.
 
Method Summary
 
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.