|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.kernel.util.ConfigurableAttribute
ptolemy.kernel.util.SingletonConfigurableAttribute
ptolemy.vergil.debugger.DebugController
public class DebugController
An execution listener that suspends execution based on breakpoints. Instances of this class should be contained by a director. This class keeps a DebugProfile for each actor that belongs to that director and is being debugged. This attribute is not persistent by default.
DebugProfile
,
Serialized Form
Red (celaine) |
Red (celaine) |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
---|
NamedObj.ContainedObjectsIterator |
Nested classes/interfaces inherited from interface ptolemy.kernel.util.Settable |
---|
Settable.Visibility |
Field Summary | |
---|---|
private DebugRenderer |
_debugRenderer
|
private java.util.Hashtable |
_toDebug
|
Fields inherited from class ptolemy.kernel.util.NamedObj |
---|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
Fields inherited from interface ptolemy.kernel.util.Settable |
---|
EXPERT, FULL, NONE, NOT_EDITABLE |
Constructor Summary | |
---|---|
DebugController(NamedObj container,
java.lang.String name)
Construct a debug listener with the given container and name. |
Method Summary | |
---|---|
void |
clear()
Clear the set of actors that are being debugged. |
void |
event(DebugEvent debugEvent)
Respond to all FiringEvents. |
DebugProfile |
getDebugProfile(Executable actor)
Get the profile for an actor that is being debugged. |
boolean |
isEnabled()
Determine whether debugging is enabled on the set of actors. |
void |
message(java.lang.String string)
React to a debug message from the director that we are listening to by ignoring the message. |
void |
putDebugProfile(Executable actor,
DebugProfile profile)
Add an actor to the set of actors that are being debugged. |
void |
removeDebugProfile(Executable actor)
Remove an actor from the set of actors that are being debugged. |
private void |
render(Figure figure,
Manager manager,
java.lang.String message)
Highlight the actor and wait for the user to select the Resume button before unhighlighting the actor. |
void |
setEnabled(boolean enabled)
Enable/disable debugging on the set of actors. |
Methods inherited from class ptolemy.kernel.util.SingletonConfigurableAttribute |
---|
setContainer |
Methods inherited from class ptolemy.kernel.util.ConfigurableAttribute |
---|
_exportMoMLContents, _propagateValue, addValueListener, clone, configure, getBase, getConfigureSource, getConfigureText, getDefaultExpression, getDisplayName, getExpression, getValueAsString, getVisibility, removeValueListener, setDisplayName, setExpression, setVisibility, validate, value |
Methods inherited from class ptolemy.kernel.util.Attribute |
---|
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setName, updateContent |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ptolemy.kernel.util.Nameable |
---|
description, getContainer, getFullName, getName, getName, setName |
Field Detail |
---|
private DebugRenderer _debugRenderer
private java.util.Hashtable _toDebug
Constructor Detail |
---|
public DebugController(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name.
IllegalActionException
- If the container does not accept
this entity (this should not occur).
NameDuplicationException
- If the name coincides with an
attribute already in the container.Method Detail |
---|
public void clear()
public void event(DebugEvent debugEvent)
event
in interface DebugListener
event
in class NamedObj
debugEvent
- The debug event.This is similar to doing animation.
,
ActorViewerGraphController.event(ptolemy.kernel.util.DebugEvent)
public DebugProfile getDebugProfile(Executable actor)
actor
- The actor for which to retrieve the profile.
public boolean isEnabled()
public void message(java.lang.String string)
message
in interface DebugListener
message
in class NamedObj
string
- Debug message.public void putDebugProfile(Executable actor, DebugProfile profile)
actor
- The actor to debug.profile
- The breakpoint configuration for this actor.public void removeDebugProfile(Executable actor)
actor
- The actor to remove.public void setEnabled(boolean enabled)
enabled
- True if debugging should be enabled.private void render(Figure figure, Manager manager, java.lang.String message)
figure
- The figure that we are highlighting.manager
- The manager for the figure.message
- The message to display in the Run window while
pausing on the breakpoint.DebugRenderer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |