mapss.dif.graph
Class TopSortAnalysis

java.lang.Object
  extended by mocgraph.analysis.Analysis
      extended by mapss.dif.graph.TopSortAnalysis

public class TopSortAnalysis
extends mocgraph.analysis.Analysis

Find a topological sorting order of a graph.

Version:
$Id: TopSortAnalysis.java 409 2007-05-13 19:47:16Z plishker $
Author:
Ming-Yung Ko

Constructor Summary
TopSortAnalysis(TopSortAnalyzer analyzer)
          Construct an instance of this class using a given analyzer.
 
Method Summary
 java.util.List topSort()
          Return a topological sorting order.
 java.lang.String toString()
          Return a description of the analysis and the associated analyzer.
 boolean validAnalyzerInterface(mocgraph.analysis.analyzer.Analyzer analyzer)
          Check if a given analyzer is compatible with this analysis.
 
Methods inherited from class mocgraph.analysis.Analysis
analyzer, changeAnalyzer, graph, valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TopSortAnalysis

public TopSortAnalysis(TopSortAnalyzer analyzer)
Construct an instance of this class using a given analyzer.

Parameters:
analyzer - The given analyzer.
Method Detail

topSort

public java.util.List topSort()
Return a topological sorting order.

Returns:
A topological sorting order.

toString

public java.lang.String toString()
Return a description of the analysis and the associated analyzer.

Overrides:
toString in class mocgraph.analysis.Analysis
Returns:
A description of the analysis and the associated analyzer.

validAnalyzerInterface

public boolean validAnalyzerInterface(mocgraph.analysis.analyzer.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.

Overrides:
validAnalyzerInterface in class mocgraph.analysis.Analysis
Parameters:
analyzer - The given analyzer.
Returns:
True if the given analyzer is valid for this analysis.