|
|||||||||
| 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.BaseTopSortStrategy
public class BaseTopSortStrategy
A base class for topological sorting. This class merely provides common public function calls and does not perform topological sorting computation.
TopSortAnalysis| Constructor Summary | |
|---|---|
BaseTopSortStrategy(mocgraph.Graph graph)
Construct a top sorting strategy for a given graph. |
|
| Method Summary | |
|---|---|
protected void |
_validate()
Validate the graph for topological sorting. |
mocgraph.DirectedGraph |
directedGraph()
Return the graph in the form of DirectedGraph. |
java.util.List |
topSort()
Return a topological sorting order. |
java.lang.String |
toString()
Return a description of the analysis in finding a top sorting order. |
boolean |
valid()
Check compatibility of the class of graph. |
| Methods inherited from class mocgraph.analysis.strategy.CachedStrategy |
|---|
_compute, _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 BaseTopSortStrategy(mocgraph.Graph graph)
graph - The given graph.| Method Detail |
|---|
public mocgraph.DirectedGraph directedGraph()
DirectedGraph.
public java.lang.String toString()
toString in interface mocgraph.analysis.analyzer.AnalyzertoString in class mocgraph.analysis.strategy.CachedStrategypublic java.util.List topSort()
topSort in interface TopSortAnalyzerpublic boolean valid()
DirectedGraph and have
acyclic structure.
valid in interface mocgraph.analysis.analyzer.Analyzerprotected void _validate()
CachedStrategy._compute().
java.lang.RuntimeException - will be thrown if valid()
returns false.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||