Class SequenceEstimator

  • Direct Known Subclasses:
    DijkstraSequenceEstimator, ListSchedulingSequenceEstimator

    public abstract class SequenceEstimator
    extends java.lang.Object
    A base class for estimating sequence numbers in the sequence domain.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Bastian Ristau
    Pt.AcceptedRating:
    Red (ristau)
    Pt.ProposedRating:
    Red (ristau)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Director _director
      The director that controls the execution of the actors to be sequenced.
    • Constructor Summary

      Constructors 
      Constructor Description
      SequenceEstimator​(Director director)
      Construct an estimator for the given director.
    • Field Detail

      • _director

        protected Director _director
        The director that controls the execution of the actors to be sequenced.
    • Constructor Detail

      • SequenceEstimator

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

      • estimateSequencedSchedule

        public abstract java.util.Vector<Actor> estimateSequencedSchedule​(java.util.List<SequenceAttribute> independentList)
                                                                   throws NotSchedulableException
        Estimate a sequenced schedule.
        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.