|
|||||||||
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.SingletonAttribute
ptolemy.domains.ptera.lib.EventQueueDebugger
public class EventQueueDebugger
An attribute to debug the event queue of a Ptera model.
Red (tfeng) |
Yellow (tfeng) |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
---|
NamedObj.ContainedObjectsIterator |
Field Summary | |
---|---|
private static java.lang.String |
_ICON_DESCRIPTION
The icon of the event queue debugger attribute. |
Parameter |
active
A Boolean parameter that determines whether this debugger is active. |
Fields inherited from class ptolemy.kernel.util.NamedObj |
---|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
Constructor Summary | |
---|---|
EventQueueDebugger(NamedObj container,
java.lang.String name)
Construct an attribute with the given container and name. |
Method Summary | |
---|---|
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. |
Methods inherited from class ptolemy.kernel.util.Attribute |
---|
_checkContainer, _getContainedObject, _propagateExistence, clone, 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.DebugListener |
---|
event, message |
Field Detail |
---|
public Parameter active
private static final java.lang.String _ICON_DESCRIPTION
Constructor Detail |
---|
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.Method Detail |
---|
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 cancelation 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 container
IllegalActionException
- 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |