org.gerhardb.lib.util
Class Killer

java.lang.Object
  extended by org.gerhardb.lib.util.Killer

public class Killer
extends java.lang.Object

Generally used by a parent to ask threads to die. Allows threads to clean up after themselves.


Constructor Summary
Killer()
           
 
Method Summary
 void dead()
          Signals that the thread is dead.
 boolean die()
          If this returns true, the thread should terminate ASAP.
 void kill()
          Signals threads to die.
 boolean live()
          If this returns true, the thread should not terminate.
 void setButtons(javax.swing.JButton start, javax.swing.JButton stop)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Killer

public Killer()
Method Detail

setButtons

public void setButtons(javax.swing.JButton start,
                       javax.swing.JButton stop)

die

public boolean die()
If this returns true, the thread should terminate ASAP.

Returns:
boolean

live

public boolean live()
If this returns true, the thread should not terminate.

Returns:
boolean

kill

public void kill()
Signals threads to die.


dead

public void dead()
Signals that the thread is dead.



Copyright ? 2007 Gerhard Beck. All rights reserved. Subject to GPL.