Package ptolemy.actor

Interface IOPortEventListener

  • All Known Implementing Classes:
    RemoveIOPortEventListener

    public interface IOPortEventListener
    Listen for events that are issued during the send(), broadcast(), sendInside(), get(), getInside() function calls of an IOPort. In general, an object that implements this interface will be collecting tokens for storage.

    Currently this class is being used in Kepler by the ProvenanceExecutionListener for saving tokens with provenance information. In the future, listeners will use this interface to save tokens in a cache for use during "smart" reruns or for fault tolerance.

    Since:
    Ptolemy II 7.0
    Version:
    $Id$
    Author:
    Oscar Barney, Norbert Podhorszki
    See Also:
    IOPort
    Pt.AcceptedRating:
    Red (barney)
    Pt.ProposedRating:
    Red (barney)
    • Method Detail

      • portEvent

        void portEvent​(IOPortEvent event)
                throws IllegalActionException
        Report a port activity. This method is called when a token has been sent or received from one IOPort to another.
        Parameters:
        event - The event to report.
        Throws:
        IllegalActionException - If thrown by the implementation.