ptolemy.graph.sched
Class ScheduleAnalysis

java.lang.Object
  extended by ptolemy.graph.analysis.Analysis
      extended by 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, Strategy, CachedStrategy, ScheduleAnalysis, ScheduleAnalyzer
Accepted Rating:
red (ssb)
Proposed Rating:
red (shahrooz)

Constructor Summary
ScheduleAnalysis(ScheduleAnalyzer analyzer)
          Construct an instance of this class with the given analyzer.
 
Method Summary
 Schedule schedule()
          Return the schedule computed by the associated analyzer.
 boolean validAnalyzerInterface(Analyzer analyzer)
          Check if a given analyzer is compatible with this analysis.
 
Methods inherited from class ptolemy.graph.analysis.Analysis
analyzer, changeAnalyzer, graph, toString, valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 class Analysis
Parameters:
analyzer - The given analyzer.
Returns:
True if the given analyzer is valid for this analysis.