Package 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$
- Author:
- Shahrooz Shahparnia
- See Also:
MaximumProfitToCostRatioAnalysis
- Pt.AcceptedRating:
- Red (ssb)
- Pt.ProposedRating:
- Red (shahrooz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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
-
-
-
-
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.
-
-