public class EventQueueDebugger extends SingletonAttribute implements EventQueueDebugListener, Initializable
NamedObj.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
Parameter |
active
A Boolean parameter that determines whether this debugger is active.
|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
EventQueueDebugger(NamedObj container,
java.lang.String name)
Construct an attribute with the given container and name.
|
Modifier and Type | Method and Description |
---|---|
void |
addInitializable(Initializable initializable)
Do nothing.
|
void |
initialize()
Do nothing.
|
void |
insertActor(int position,
Time time,
Actor actor,
Token arguments)
Invoked when an actor is inserted into the event queue.
|
void |
insertEvent(int position,
Time time,
Event event,
Token arguments)
Invoked when an event is inserted into the event queue.
|
void |
preinitialize()
Add this attribute as a debug listener to the director.
|
void |
removeEvent(int position,
boolean isCancelled)
Invoked when an event or actor is removed from the event queue.
|
void |
removeInitializable(Initializable initializable)
Do nothing.
|
void |
setContainer(NamedObj container)
Set the container and register this as an initializable in the
container.
|
void |
wrapup()
Remove this attribute from the list of debug listeners in the director.
|
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setName, updateContent
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _description, _executeChangeRequests, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, 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, message, 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
event, message
public Parameter active
public EventQueueDebugger(NamedObj container, java.lang.String name) throws NameDuplicationException, IllegalActionException
container
- The container.name
- The name of this attribute.IllegalActionException
- If the attribute cannot be contained
by the proposed container.NameDuplicationException
- If the container already has an
attribute with this name, and the class of that container is not
SingletonAttribute.public void addInitializable(Initializable initializable)
addInitializable
in interface Initializable
initializable
- Not used.Initializable.removeInitializable(Initializable)
public void initialize() throws IllegalActionException
initialize
in interface Initializable
IllegalActionException
- Not thrown in this class.public void insertActor(int position, Time time, Actor actor, Token arguments)
insertActor
in interface EventQueueDebugListener
position
- The position at which the actor is inserted.time
- The time at which the actor is scheduled to fire.actor
- The actor.arguments
- Arguments to the actor, which must be either an
ArrayToken or a RecordToken, or null.public void insertEvent(int position, Time time, Event event, Token arguments)
insertEvent
in interface EventQueueDebugListener
position
- The position at which the event is inserted.time
- The time at which the event is scheduled to fire.event
- The event.arguments
- Arguments to the event, which must be either an
ArrayToken or a RecordToken, or null.public void preinitialize() throws IllegalActionException
preinitialize
in interface Initializable
IllegalActionException
- Not thrown in this class.public void removeEvent(int position, boolean isCancelled)
removeEvent
in interface EventQueueDebugListener
position
- The position of the event or actor.isCancelled
- Whether the removal is due to cancellation or
successful processing.public void removeInitializable(Initializable initializable)
removeInitializable
in interface Initializable
initializable
- Not used.Initializable.addInitializable(Initializable)
public void setContainer(NamedObj container) throws IllegalActionException, NameDuplicationException
setContainer
in class SingletonAttribute
container
- The containerIllegalActionException
- If this attribute is not of the
expected class for the container, or it has no name,
or the attribute and container are not in the same workspace, or
the proposed container would result in recursive containment.NameDuplicationException
- If the container already has
an attribute with the name of this attribute that is of class
SingletonConfigurableAttribute.Attribute.getContainer()
public void wrapup() throws IllegalActionException
wrapup
in interface Initializable
IllegalActionException
- Not thrown in this class.