ptolemy.graph.analysis.analyzer
Interface MaximumProfitToCostRatioAnalyzer

All Superinterfaces:
Analyzer, GraphAnalyzer
All Known Implementing Classes:
ParhiMaximumProfitToCostRatioStrategy

public interface MaximumProfitToCostRatioAnalyzer
extends GraphAnalyzer

A common interface for all the maximum profit to cost analyzers.

Since:
Ptolemy II 4.0
Version:
$Id: MaximumProfitToCostRatioAnalyzer.java 38798 2005-07-08 20:00:01Z cxh $
Author:
Shahrooz Shahparnia
See Also:
MaximumProfitToCostRatioAnalysis
Accepted Rating:
Red (ssb)
Proposed Rating:
Red (shahrooz)

Method Summary
 java.util.List cycle()
          Return the nodes on the cycle that corresponds to the maximum profit to cost ratio as an ordered list.
 double maximumRatio()
          Return the maximum profit to cost ratio.
 
Methods inherited from interface ptolemy.graph.analysis.analyzer.GraphAnalyzer
graph
 
Methods inherited from interface ptolemy.graph.analysis.analyzer.Analyzer
toString, valid
 

Method Detail

cycle

java.util.List cycle()
Return the nodes on the cycle that corresponds to the maximum profit to cost ratio as an ordered list. If there is more than one cycle with the same maximal/minimal cycle, one of them is returned randomly, but the same cycle is returned by different invocations of the method, unless the graph changes.

Returns:
Return the nodes on the cycle that corresponds to the maximum profit to cost ratio as an ordered list.

maximumRatio

double maximumRatio()
Return the maximum profit to cost ratio.

Returns:
Return the maximum profit to cost ratio.