|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.graph.analysis.Analysis
ptolemy.graph.analysis.ZeroLengthCycleAnalysis
public class ZeroLengthCycleAnalysis
Analysis to check if a cyclic directed graph has a zero-length cycle. A zero-length cycle is a cycle in which the sum of all the values associated with the edges of the cycle is zero.
| Red (ssb) |
| Red (shahrooz) |
| Constructor Summary | |
|---|---|
ZeroLengthCycleAnalysis(Graph graph,
ToDoubleMapping edgeLengths)
Construct an instance of this class using a default analyzer. |
|
ZeroLengthCycleAnalysis(ZeroLengthCycleAnalyzer analyzer)
Construct an instance of this class using a given analyzer. |
|
| Method Summary | |
|---|---|
boolean |
hasZeroLengthCycle()
Return true if a zero length cycle exists in the graph under analysis. |
java.lang.String |
toString()
Return a description of the analysis and the associated analyzer. |
boolean |
validAnalyzerInterface(Analyzer analyzer)
Check if a given analyzer is compatible with this analysis. |
| Methods inherited from class ptolemy.graph.analysis.Analysis |
|---|
analyzer, changeAnalyzer, graph, valid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ZeroLengthCycleAnalysis(Graph graph,
ToDoubleMapping edgeLengths)
graph - The given graph.edgeLengths - The lengths associated with the edges of the graph.public ZeroLengthCycleAnalysis(ZeroLengthCycleAnalyzer analyzer)
analyzer - The given analyzer.| Method Detail |
|---|
public boolean hasZeroLengthCycle()
public java.lang.String toString()
toString in class Analysispublic boolean validAnalyzerInterface(Analyzer analyzer)
validAnalyzerInterface in class Analysisanalyzer - The given analyzer.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||