edu.ntnu.ecosim.management
Class Statistics

java.lang.Object
  extended by edu.ntnu.ecosim.management.Statistics

public class Statistics
extends java.lang.Object

This class is responsible for gathering statistics and (if necessary) use this information to create new statistics.


Constructor Summary
protected Statistics(Market m)
          The Constructor.
 
Method Summary
protected  double getARPU(int provider)
          Gets the ARPU (Average Revenue Per User).
protected  double getAverageConsumerExpense()
          Gets the average consumer expense in the market
protected  double getChurnRate(int provider)
          Gets the customer churn rate of a service provider.
protected  double getHighestThisRound(int place)
          Gets the highest value of this round.
protected  int getInnovationsForProvider(int prov)
          Gets the number of innovations produced by a specified provider
protected  java.lang.String getInnovationStats()
          Method to get the statistics on produced innovations
protected  int getNofChanges()
          Gets the total number of changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Statistics

protected Statistics(Market m)
The Constructor.

Method Detail

getARPU

protected double getARPU(int provider)
Gets the ARPU (Average Revenue Per User).

Parameters:
provider - the providers place in the markets service provider list
Returns:
the ARPU

getAverageConsumerExpense

protected double getAverageConsumerExpense()
Gets the average consumer expense in the market

Returns:
the average consumer expense

getChurnRate

protected double getChurnRate(int provider)
Gets the customer churn rate of a service provider.

Parameters:
provider - the provider
Returns:
the customer churn rate

getHighestThisRound

protected double getHighestThisRound(int place)
Gets the highest value of this round.

Parameters:
place - the place in the markets service provider list where the provider is located
Returns:
the highest value this round

getInnovationsForProvider

protected int getInnovationsForProvider(int prov)
Gets the number of innovations produced by a specified provider

Parameters:
prov - the providers place in the market list
Returns:
the number of innovations

getNofChanges

protected int getNofChanges()
Gets the total number of changes.

Returns:
the nof changes

getInnovationStats

protected java.lang.String getInnovationStats()
Method to get the statistics on produced innovations

Returns:
A string describing the knowledge of innovations