nl.tudelft.simulation.language.concurrent
Class WorkerThread

java.lang.Object
  extended byjava.lang.Thread
      extended bynl.tudelft.simulation.language.concurrent.WorkerThread
All Implemented Interfaces:
java.lang.Runnable

public class WorkerThread
extends java.lang.Thread

The WorkerThread is a working thread. The thread sleeps while not interrupted. If interuppted the jon.run operation is invoked.

(c) copyright 2004 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Version:
2.0 21.09.2003
Author:
Peter Jacobs , Alexander Verbraeck

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
WorkerThread(java.lang.String name, java.lang.Runnable job)
          constructs a new SimulatorRunThread
 
Method Summary
 void finalize()
           
 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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorkerThread

public WorkerThread(java.lang.String name,
                    java.lang.Runnable job)
constructs a new SimulatorRunThread

Parameters:
name - the name of the thread
job - the job to run
Method Detail

finalize

public void finalize()
See Also:
Object.finalize()

run

public void run()
See Also:
Runnable.run()


Copyright © 2002-2004 Delft University of Technology, the Netherlands. All Rights Reserved.