Package ptolemy.domains.sequence.kernel
Class ListSchedulingSequenceEstimator
- java.lang.Object
-
- ptolemy.domains.sequence.kernel.SequenceEstimator
-
- ptolemy.domains.sequence.kernel.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)
-
-
Field Summary
-
Fields inherited from class ptolemy.domains.sequence.kernel.SequenceEstimator
_director
-
-
Constructor Summary
Constructors Constructor Description ListSchedulingSequenceEstimator(Director director)
Construct an estimator for the given director.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Vector<Actor>
estimateSequencedSchedule(java.util.List<SequenceAttribute> independentList)
Estimate a sequenced schedule.
-
-
-
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 classSequenceEstimator
- 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.
-
-