Package ptolemy.graph.sched
Class ScheduleAnalysis
- java.lang.Object
-
- ptolemy.graph.analysis.Analysis
-
- ptolemy.graph.sched.ScheduleAnalysis
-
public class ScheduleAnalysis extends Analysis
An analysis for schedules on graphs. The analyzer associate with this analysis which is supposed to implement the ScheduleAnalyzer interface generates a Schedule for a given Graph. The analyzer that for a given implementation would extend the Strategy ( or CachedStrategy) class contains the scheduling algorithm. Scheduling strategies can be dynamically changed, therefore dynamic schedulings are also supported.- Since:
- Ptolemy II 4.0
- Author:
- Shahrooz Shahparnia
- See Also:
Graph
,Analysis
,CachedStrategy
,ScheduleAnalysis
,ScheduleAnalyzer
- Pt.AcceptedRating:
- red (ssb)
- Pt.ProposedRating:
- red (shahrooz)
-
-
Constructor Summary
Constructors Constructor Description ScheduleAnalysis(ScheduleAnalyzer analyzer)
Construct an instance of this class with the given analyzer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Schedule
schedule()
Return the schedule computed by the associated analyzer.boolean
validAnalyzerInterface(Analyzer analyzer)
Check if a given analyzer is compatible with this analysis.
-
-
-
Constructor Detail
-
ScheduleAnalysis
public ScheduleAnalysis(ScheduleAnalyzer analyzer)
Construct an instance of this class with the given analyzer.- Parameters:
analyzer
- The given analyzer.
-
-
Method Detail
-
schedule
public Schedule schedule()
Return the schedule computed by the associated analyzer.- Returns:
- Return the schedule computed by the associated analyzer.
-
validAnalyzerInterface
public boolean validAnalyzerInterface(Analyzer analyzer)
Check if a given analyzer is compatible with this analysis. In other words if it is possible to use it to compute the computation associated with this analysis. Derived classes should override this method to provide the valid type of analyzer that they need.- Overrides:
validAnalyzerInterface
in classAnalysis
- Parameters:
analyzer
- The given analyzer.- Returns:
- True if the given analyzer is valid for this analysis.
-
-