Class ExecEvent

  • All Implemented Interfaces:
    DebugEvent

    public class ExecEvent
    extends java.lang.Object
    implements DebugEvent
    An event that indicates that an actor is in a particular state. The event contains two pieces of information: the actor that generated the event and the (integer) state of the actor when the event was generated. A class that listens for ExecEvents must implement the ExecEventListener interface. The interpretation of state is determined by the actors and listeners that use the ExecEvent class and ExecEventListener interface. The author of code that takes advantage of these facilities should write the actors and listeners so that they utilize a common meaning for the integer states.
    Since:
    Ptolemy II 1.0
    Version:
    $Id$
    Author:
    Mudit Goel, John S. Davis II
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (davisj)
    • Constructor Detail

      • ExecEvent

        public ExecEvent​(NamedObj actorSource,
                         ExecEvent.ExecEventType state)
        Create an ExecEvent with the specified actor and state.
        Parameters:
        actorSource - The actor that generated the event.
        state - The state of the actor when the event is is generated.
    • Method Detail

      • getSource

        public NamedObj getSource()
        Return the actor corresponding to the event.
        Specified by:
        getSource in interface DebugEvent
        Returns:
        The actor that generated this event.
      • getState

        public ExecEvent.ExecEventType getState()
        Return the state of the actor when the event was generated.
        Returns:
        The state of the actor when the event was generated.