|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
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.SourceNodeStrategy
public class SourceNodeStrategy
Computation of source 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.
SourceNodeAnalysis
Red (ssb) |
Red (shahrooz) |
Constructor Summary | |
---|---|
SourceNodeStrategy(Graph graph)
Construct an instance of this strategy for a given graph. |
Method Summary | |
---|---|
protected java.lang.Object |
_compute()
Compute the source nodes in the graph in the form of a collection. |
protected java.lang.Object |
_convertResult()
Return the result of this analysis (collection of source nodes) in a form that cannot be modified. |
java.util.List |
nodes()
Compute the source nodes in the graph in the form of a collection. |
java.lang.String |
toString()
Return a description of the analyzer. |
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 SourceNodeStrategy(Graph graph)
graph
- The given graph.Method Detail |
---|
public java.util.List nodes()
Node
.
nodes
in interface SourceNodeAnalyzer
public java.lang.String toString()
toString
in interface Analyzer
toString
in class CachedStrategy
public boolean valid()
valid
in interface Analyzer
protected java.lang.Object _compute()
Node
.
_compute
in class CachedStrategy
protected java.lang.Object _convertResult()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |