|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmocgraph.analysis.strategy.CachedStrategy
mapss.dif.graph.DFSAllTopSortsStrategy
public class DFSAllTopSortsStrategy
A depth-first-search approach for finding all topological sorting orders.
AllTopSortsAnalysis| Constructor Summary | |
|---|---|
DFSAllTopSortsStrategy(mocgraph.Graph graph)
Constructor with an input graph. |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
_compute()
Compute all topological sorting orders. |
java.util.Collection |
topSorts()
Return the collection of all topological sorting orders. |
java.lang.String |
toString()
Return a description of the analysis in finding all top sorting orders. |
boolean |
valid()
Check compatibility of the class of graph. |
| Methods inherited from class mocgraph.analysis.strategy.CachedStrategy |
|---|
_convertResult, _result, cachingStatus, disableCaching, enableCaching, getCachedResult, graph, obsolete, reset, setCachedResult |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface mocgraph.analysis.analyzer.GraphAnalyzer |
|---|
graph |
| Constructor Detail |
|---|
public DFSAllTopSortsStrategy(mocgraph.Graph graph)
graph - The given graph.| Method Detail |
|---|
public java.lang.String toString()
toString in interface mocgraph.analysis.analyzer.AnalyzertoString in class mocgraph.analysis.strategy.CachedStrategypublic java.util.Collection topSorts()
List.
topSorts in interface AllTopSortsAnalyzerpublic boolean valid()
DirectedGraph and have
acyclic structure.
valid in interface mocgraph.analysis.analyzer.Analyzerprotected java.lang.Object _compute()
Collection, where each element is a
topological sorting order in List.
_compute in class mocgraph.analysis.strategy.CachedStrategy
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||