public class PtolemyThread extends java.lang.Thread implements Debuggable
| Green (liuj) |
| Green (lmuliadi) |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_debugging
Flag that is true if there are debug listeners.
|
protected java.util.LinkedList |
_debugListeners
The list of DebugListeners registered with this object.
|
| Constructor and Description |
|---|
PtolemyThread()
Construct a new PtolemyThread object.
|
PtolemyThread(java.lang.Runnable target)
Construct a new PtolemyThread object.
|
PtolemyThread(java.lang.Runnable target,
java.lang.String name)
Construct a new PtolemyThread object.
|
PtolemyThread(java.lang.String name)
Construct a new PtolemyThread object.
|
PtolemyThread(java.lang.ThreadGroup group,
java.lang.Runnable target)
Construct a new PtolemyThread object.
|
PtolemyThread(java.lang.ThreadGroup group,
java.lang.Runnable target,
java.lang.String name)
Construct a new PtolemyThread object so that it has target as
its run object, has the specified name as its name, and belongs
to the thread group referred to by group.
|
PtolemyThread(java.lang.ThreadGroup group,
java.lang.String name)
Construct a new PtolemyThread object.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
_debug(DebugEvent event)
Send a debug event to all debug listeners that have registered.
|
protected void |
_debug(java.lang.String message)
Send a debug message to all debug listeners that have registered.
|
void |
addDebugListener(DebugListener listener)
Append a listener to the current set of debug listeners.
|
void |
removeDebugListener(DebugListener listener)
Unregister a debug listener.
|
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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected volatile boolean _debugging
protected java.util.LinkedList _debugListeners
public PtolemyThread()
public PtolemyThread(java.lang.Runnable target)
target - The object whose run method is called.public PtolemyThread(java.lang.Runnable target,
java.lang.String name)
target - The object whose run method is called.name - The name of the new thread.public PtolemyThread(java.lang.String name)
name - The name of the new thread.public PtolemyThread(java.lang.ThreadGroup group,
java.lang.Runnable target)
group - The thread grouptarget - The object whose run method is called.public PtolemyThread(java.lang.ThreadGroup group,
java.lang.Runnable target,
java.lang.String name)
group - The thread group.target - The object whose run method is called.name - The name of the new thread.java.lang.SecurityException - If the superclass constructor throws it.public PtolemyThread(java.lang.ThreadGroup group,
java.lang.String name)
group - The thread group.name - The name of the new thread.public void addDebugListener(DebugListener listener)
addDebugListener in interface Debuggablelistener - The listener to which to send debug messages.removeDebugListener(DebugListener)public void removeDebugListener(DebugListener listener)
removeDebugListener in interface Debuggablelistener - The listener to remove from the list of listeners
to which debug messages are sent.addDebugListener(DebugListener)protected final void _debug(DebugEvent event)
event - The event.protected final void _debug(java.lang.String message)
message - The message.