visidia.simulation
Class VisidiaThreadGroup

java.lang.Object
  extended by java.lang.ThreadGroup
      extended by visidia.simulation.VisidiaThreadGroup
All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler

public class VisidiaThreadGroup
extends java.lang.ThreadGroup

VisidiaThreadGroup is a thread group in visidia simulation mode. This class overrides his super class uncaughtException() method to handle uncaught exceptions from threads.


Constructor Summary
VisidiaThreadGroup(java.lang.String name)
          Instantiates a new thread group.
VisidiaThreadGroup(java.lang.ThreadGroup parent, java.lang.String name)
          Instantiates a new thread group.
 
Method Summary
 void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
          Handle uncaught exceptions raised from this thread group children.
 
Methods inherited from class java.lang.ThreadGroup
activeCount, activeGroupCount, allowThreadSuspension, checkAccess, destroy, enumerate, enumerate, enumerate, enumerate, getMaxPriority, getName, getParent, interrupt, isDaemon, isDestroyed, list, parentOf, resume, setDaemon, setMaxPriority, stop, suspend, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VisidiaThreadGroup

public VisidiaThreadGroup(java.lang.String name)
Instantiates a new thread group.

Parameters:
name - the name

VisidiaThreadGroup

public VisidiaThreadGroup(java.lang.ThreadGroup parent,
                          java.lang.String name)
Instantiates a new thread group.

Parameters:
parent - the parent
name - the name
Method Detail

uncaughtException

public void uncaughtException(java.lang.Thread t,
                              java.lang.Throwable e)
Handle uncaught exceptions raised from this thread group children.

Specified by:
uncaughtException in interface java.lang.Thread.UncaughtExceptionHandler
Overrides:
uncaughtException in class java.lang.ThreadGroup
Parameters:
t - the thread
e - the exception