inpro.incremental.processor
Class IUBasedFloorTracker.TimeOutThread

java.lang.Object
  extended by java.lang.Thread
      extended by inpro.incremental.processor.IUBasedFloorTracker.TimeOutThread
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
IUBasedFloorTracker.ExpectingInputTimeOutThread, IUBasedFloorTracker.WordTimeOutThread
Enclosing class:
IUBasedFloorTracker

private abstract class IUBasedFloorTracker.TimeOutThread
extends java.lang.Thread

supports classes for timing out and sending signals

Author:
timo

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  boolean killbit
          if set, this timeout thread will not do anything when its timer runs out
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
IUBasedFloorTracker.TimeOutThread(java.lang.String name)
          create thread with a given name
 
Method Summary
private  void kill()
           
abstract  void run()
           
protected  boolean shouldDie()
           
protected  void signal(AbstractFloorTracker.Signal s)
           
protected  void sleepSafely(long timeout)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

killbit

private boolean killbit
if set, this timeout thread will not do anything when its timer runs out

Constructor Detail

IUBasedFloorTracker.TimeOutThread

public IUBasedFloorTracker.TimeOutThread(java.lang.String name)
create thread with a given name

Method Detail

sleepSafely

protected void sleepSafely(long timeout)

kill

private void kill()

shouldDie

protected boolean shouldDie()

signal

protected void signal(AbstractFloorTracker.Signal s)

run

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