Class ListSchedulingSequenceEstimator


  • public class ListSchedulingSequenceEstimator
    extends SequenceEstimator
    A class that estimates a sequential schedule. Order given by already present sequence numbers are preserved.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Bastian Ristau
    Pt.AcceptedRating:
    Red (ristau)
    Pt.ProposedRating:
    Red (ristau)
    • Constructor Detail

      • ListSchedulingSequenceEstimator

        public ListSchedulingSequenceEstimator​(Director director)
        Construct an estimator for the given director.
        Parameters:
        director - The director that needs to guess a schedule.
    • Method Detail

      • estimateSequencedSchedule

        public java.util.Vector<Actor> estimateSequencedSchedule​(java.util.List<SequenceAttribute> independentList)
                                                          throws NotSchedulableException
        Estimate a sequenced schedule. Take into account ordering constraints given by sequence numbers and data flow.
        Specified by:
        estimateSequencedSchedule in class SequenceEstimator
        Parameters:
        independentList - The already present SequenceAttributes for the Actors controlled by this scheduler.
        Returns:
        A vector with the ordered actors. Note that the sequence numbers are not changed. This has to be done somewhere else.
        Throws:
        NotSchedulableException - If the underlying graph of the actors is not acyclic.