as.clynx
Class GUIThread

java.lang.Object
  extended by java.lang.Thread
      extended by as.clynx.GUIThread
All Implemented Interfaces:
java.lang.Runnable

public abstract class GUIThread
extends java.lang.Thread

This thread handles the evaluation in a seperate thread. when the thread schould be stoped 'stoped' must be set true.

Version:
cLynx v.1.2, JDK 6.0: 20.09.2007
Author:
Andreas Senfter - andreas@senfters.com

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static boolean paused
           
static boolean stoped
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GUIThread()
           
 
Method Summary
static void checkVadility()
          checks the current thread. if the current thread is a GUIThread instance and stoped was set true a ThreadExceededException is thrown.
 void pauseAction()
          pauses the thread
 void stopAction()
          sets the stoped var true
 
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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

stoped

public static boolean stoped

paused

public static boolean paused
Constructor Detail

GUIThread

public GUIThread()
Method Detail

stopAction

public void stopAction()
sets the stoped var true


pauseAction

public void pauseAction()
pauses the thread


checkVadility

public static void checkVadility()
                          throws ThreadExceededException
checks the current thread. if the current thread is a GUIThread instance and stoped was set true a ThreadExceededException is thrown.

Throws:
ThreadExceededException