|
|||||||||
| 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.SelfLoopStrategy
public class SelfLoopStrategy
Computation of self-loops in a graph. The returned collection cannot be modified.
This analysis requires O(E) time, where E is the number of edges in the graph.
SelfLoopAnalysis
| Red (ssb) |
| Red (ssb) |
| Constructor Summary | |
|---|---|
SelfLoopStrategy(Graph graph)
Construct an instance of this strategy for a given graph. |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
_compute()
Compute the self-loop edges in the graph in the form of a collection. |
protected java.lang.Object |
_convertResult()
Return the result of this analysis (collection of self-loop edges) in a form that cannot be modified. |
java.util.List |
edges()
Compute the self-loop edges in the graph in the form of a collection. |
java.lang.String |
toString()
Return a description of the analyzer. |
boolean |
valid()
Check for validity of this strategy. |
| 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 SelfLoopStrategy(Graph graph)
graph - The given graph.| Method Detail |
|---|
public java.util.List edges()
Edge.
edges in interface SelfLoopAnalyzerpublic java.lang.String toString()
toString in interface AnalyzertoString in class CachedStrategypublic boolean valid()
valid in interface Analyzerprotected java.lang.Object _compute()
Edge.
_compute in class CachedStrategyprotected java.lang.Object _convertResult()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||