Package ptolemy.actor

Interface ExecutionAspectListener

  • All Known Implementing Classes:
    ExecutionAspectPlotterEditorFactory

    public interface ExecutionAspectListener
    This is an interface for an execution aspect. Classes that implement this interface are interested in schedule events created by resource schedulers.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Patricia Derler
    Pt.AcceptedRating:
    Red (derler)
    Pt.ProposedRating:
    Red (derler)
    • Method Detail

      • initialize

        void initialize​(java.util.List<NamedObj> actors,
                        ActorExecutionAspect scheduler)
        Initialize listener.
        Parameters:
        actors - Actors to be scheduled.
        scheduler - Resource scheduler scheduling actors.
      • event

        void event​(NamedObj actor,
                   double physicalTime,
                   ExecutionAspectListener.ExecutionEventType scheduleEvent)
        Plot a new execution event for an actor (i.e. an actor started/finished execution, was preempted or resumed).
        Parameters:
        actor - The actor.
        physicalTime - The physical time when this scheduling event occurred.
        scheduleEvent - The scheduling event.