ptolemy.domains.ptera.kernel
Interface EventQueueDebugListener

All Superinterfaces:
DebugListener
All Known Implementing Classes:
EventQueueDebugger

public interface EventQueueDebugListener
extends DebugListener

Interface for the debug listeners that receives event insertion and removal messages.

Since:
Ptolemy II 8.0
Version:
$Id: EventQueueDebugListener.java 57044 2010-01-27 22:41:05Z cxh $
Author:
Thomas Huining Feng
Accepted Rating:
Red (tfeng)
Proposed Rating:
Yellow (tfeng)

Method Summary
 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 removeEvent(int position, boolean isCancelled)
          Invoked when an event or actor is removed from the event queue.
 
Methods inherited from interface ptolemy.kernel.util.DebugListener
event, message
 

Method Detail

insertActor

void insertActor(int position,
                 Time time,
                 Actor actor,
                 Token arguments)
Invoked when an actor is inserted into the event queue.

Parameters:
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.

insertEvent

void insertEvent(int position,
                 Time time,
                 Event event,
                 Token arguments)
Invoked when an event is inserted into the event queue.

Parameters:
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.

removeEvent

void removeEvent(int position,
                 boolean isCancelled)
Invoked when an event or actor is removed from the event queue.

Parameters:
position - The position of the event or actor.
isCancelled - Whether the removal is due to cancelation or successful processing.