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$
    Author:
    Thomas Huining Feng
    Pt.AcceptedRating:
    Red (tfeng)
    Pt.ProposedRating:
    Yellow (tfeng)
    • 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 cancellation or successful processing.