|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.graph.analysis.strategy.Strategy
ptolemy.graph.analysis.strategy.CachedStrategy
ptolemy.graph.analysis.strategy.SinkNodeStrategy
public class SinkNodeStrategy
Computation of sink nodes in a graph. The collection returned cannot be modified.
This analysis requires O(N) time, where N is the number of nodes in the graph.
SinkNodeAnalysis
| Red (ssb) |
| Red (ssb) |
| Constructor Summary | |
|---|---|
SinkNodeStrategy(Graph graph)
Construct a sink node analysis for a given graph. |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
_compute()
Compute the sink nodes in the graph in the form of a collection. |
protected java.lang.Object |
_convertResult()
Return the result of this analysis (collection of sink nodes) in a form that cannot be modified. |
java.util.List |
nodes()
Compute the sink nodes in the graph in the form of a collection. |
java.lang.String |
toString()
Return a description of sink nodes. |
boolean |
valid()
Check compatibility of the class of graph. |
| Methods inherited from class ptolemy.graph.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 ptolemy.graph.analysis.analyzer.GraphAnalyzer |
|---|
graph |
| Constructor Detail |
|---|
public SinkNodeStrategy(Graph graph)
graph - The given graph.| Method Detail |
|---|
public java.util.List nodes()
Node.
nodes in interface SinkNodeAnalyzerpublic java.lang.String toString()
toString in interface AnalyzertoString in class CachedStrategypublic boolean valid()
valid in interface Analyzerprotected java.lang.Object _compute()
Node.
_compute in class CachedStrategyprotected java.lang.Object _convertResult()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||