ptolemy.kernel.util
Interface Debuggable

All Known Subinterfaces:
DEEventQueue
All Known Implementing Classes:
CalendarQueue, DECQEventQueue, NamedObj, PtolemyThread

public interface Debuggable

This is an interface for objects that debug listeners can be attached to.

Since:
Ptolemy II 0.4
Version:
$Id: Debuggable.java,v 1.20 2004/04/13 03:43:29 cxh Exp $
Author:
Jie Liu
See Also:
DebugListener, DebugEvent
Accepted Rating:
Green (neuendor)
Proposed Rating:
Green (neuendor)

Method Summary
 void addDebugListener(DebugListener listener)
          Add a debug listener.
 void removeDebugListener(DebugListener listener)
          Unregister a debug listener.
 

Method Detail

addDebugListener

public void addDebugListener(DebugListener listener)
Add a debug listener. If the listener is already in the list, do not add it again.

Parameters:
listener - The listener to which to send debug messages.

removeDebugListener

public void removeDebugListener(DebugListener listener)
Unregister a debug listener. If the specified listener has not been previously registered, then do nothing.

Parameters:
listener - The listener to remove from the list of listeners to which debug messages are sent.