mocgraph.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.

Version:
$Id: MaximumProfitToCostRatioAnalyzer.java,v 1.1 2007/04/07 13:58:17 ssb Exp $
Author:
Shahrooz Shahparnia
See Also:
graph.analysis.MaximumProfitToCostRatioAnalysis

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 mocgraph.analysis.analyzer.GraphAnalyzer
graph
 
Methods inherited from interface mocgraph.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.