org.objectweb.fractal.explorer.attributes
Class AttributeMonitoringThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.objectweb.fractal.explorer.attributes.AttributeMonitoringThread
All Implemented Interfaces:
Runnable

public class AttributeMonitoringThread
extends Thread

A Thread responsible for periodically testing the value of the monitored attribute.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 boolean running
          running .
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AttributeMonitoringThread(int monitoringPeriod, Object attributeController, String monitoredAttribute, JTable table, int row)
          Creates a new attribute monitoring thread.
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

running

public boolean running
running .

Constructor Detail

AttributeMonitoringThread

public AttributeMonitoringThread(int monitoringPeriod,
                                 Object attributeController,
                                 String monitoredAttribute,
                                 JTable table,
                                 int row)
Creates a new attribute monitoring thread.

Parameters:
monitoringPeriod - the period of testing the attribute's value.
attributeController - the object providing access to the monitored attribute's value.
monitoredAttribute - the name of the attribute to be monitored.
table - a JTable that should be updated when the monitored attribute's value changes.
row - a row of the table which stores the attribute monitored by this thread.
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Thread.run()