Class DijkstraSequenceEstimator


  • public class DijkstraSequenceEstimator
    extends SequenceEstimator
    A class that estimates a sequential schedule based on a modified version of Dijkstra's algorithm to compute longest paths.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Bastian Ristau
    Pt.AcceptedRating:
    Red (ristau)
    Pt.ProposedRating:
    Red (ristau)
    • Constructor Detail

      • DijkstraSequenceEstimator

        public DijkstraSequenceEstimator​(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. Do not care much about ordering constraints given by sequence numbers. FIXME: If the graph is cyclic, this method runs forever! Currently this has to (or at least should) be checked before.
        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.