mapss.dif.graph
Class AllTopSortsAnalysis

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

public class AllTopSortsAnalysis
extends mocgraph.analysis.Analysis

Finding all topological sorting orders of a graph.

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

Constructor Summary
AllTopSortsAnalysis(AllTopSortsAnalyzer analyzer)
          Construct an instance of this class using a given analyzer.
 
Method Summary
 java.util.Collection topSorts()
          Return the collection of all topological sorting orders.
 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

AllTopSortsAnalysis

public AllTopSortsAnalysis(AllTopSortsAnalyzer analyzer)
Construct an instance of this class using a given analyzer.

Parameters:
analyzer - The given analyzer.
Method Detail

topSorts

public java.util.Collection topSorts()
Return the collection of all topological sorting orders. Each element is an order in List.

Returns:
The collection of topological sorting orders.

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.