public class DebugController extends SingletonConfigurableAttribute
DebugProfile
NamedObj.ContainedObjectsIterator
Settable.Visibility
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
EXPERT, FULL, NONE, NOT_EDITABLE
Constructor and Description |
---|
DebugController(NamedObj container,
java.lang.String name)
Construct a debug listener with the given container and name.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
setEnabled(boolean enabled)
Enable/disable debugging on the set of actors.
|
setContainer
_exportMoMLContents, _propagateValue, addValueListener, clone, configure, getBase, getConfigureSource, getConfigureText, getDefaultExpression, getExpression, getValueAsString, getVisibility, removeValueListener, setExpression, setVisibility, validate, value
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setName, updateContent
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _description, _executeChangeRequests, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDisplayName
description, getContainer, getFullName, getName, getName, setName
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.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.