Class ExecutionAspectPlotterEditorFactory

    • Field Detail

      • plot

        public Plot plot
        The plot displayed by this ScheduleFactory.
      • _actors

        protected java.util.List<NamedObj> _actors
        Contains the actors inside a ptides platform (=platforms).
    • Constructor Detail

      • ExecutionAspectPlotterEditorFactory

        public ExecutionAspectPlotterEditorFactory​(NamedObj container,
                                                   java.lang.String name)
                                            throws IllegalActionException,
                                                   NameDuplicationException
        Constructs a SchedulePlotter$SchedulePlotterEditorFactory object.
        Parameters:
        container - The container.
        name - The name of the factory.
        Throws:
        IllegalActionException - If the factory is not of an acceptable attribute for the container.
        NameDuplicationException - If the name coincides with an attribute already in the container.
    • Method Detail

      • createEditor

        public void createEditor​(NamedObj object,
                                 java.awt.Frame parent)
        Create an editor for configuring the specified object with the specified parent window.
        Specified by:
        createEditor in interface Editable
        Specified by:
        createEditor in class EditorFactory
        Parameters:
        object - The object to configure.
        parent - The parent window, or null if there is none.
      • event

        public 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).
        Specified by:
        event in interface ExecutionAspectListener
        Parameters:
        actor - The actor.
        physicalTime - The physical time when this scheduling event occurred.
        scheduleEvent - The scheduling event.
      • initialize

        public void initialize​(java.util.List<NamedObj> actors,
                               ActorExecutionAspect scheduler)
        Initialize plot.
        Specified by:
        initialize in interface ExecutionAspectListener
        Parameters:
        actors - Actors scheduled by the resource scheduler associated with this plot.
        scheduler - Resource Scheduler associated with this plot.