de.wagner_ibw.iow
Class NotifierThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--de.wagner_ibw.iow.NotifierThread
All Implemented Interfaces:
java.lang.Runnable

class NotifierThread
extends java.lang.Thread

Internal Class for a notifier thread. If the port's data changed (after the IO Warrior device was read), for each IowPortChangeListener will this thread created. This guarantees a asyncrone notification.

Author:
Thomas Wagner

Field Summary
(package private)  IowPortChangeListener listener
           
(package private)  IowPort port
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
(package private) NotifierThread(IowPort port, IowPortChangeListener listener)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

port

IowPort port

listener

IowPortChangeListener listener
Constructor Detail

NotifierThread

NotifierThread(IowPort port,
               IowPortChangeListener listener)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread