edu.cuny.cat.stat
Class StatisticalReport

java.lang.Object
  extended by edu.cuny.stat.AbstractReport<E>
      extended by edu.cuny.stat.AbstractReportVariableReport<AuctionEvent>
          extended by edu.cuny.cat.stat.StatisticalReport
All Implemented Interfaces:
AuctionEventListener, GameReport, edu.cuny.config.param.Parameterizable, edu.cuny.stat.Report<AuctionEvent>, java.util.EventListener

public class StatisticalReport
extends edu.cuny.stat.AbstractReportVariableReport<AuctionEvent>
implements GameReport

This class tracks the values of specified report variables, and calculates and outputs the distribution of each value.

Version:
$Revision: 1.6 $
Author:
Jinzhong Niu

Field Summary
protected  java.util.Map<java.lang.String,edu.cuny.math.dist.CumulativeDistribution> distributions
           
 
Fields inherited from class edu.cuny.stat.AbstractReportVariableReport
P_NUM, P_VAR, paramVarNames, varNames
 
Fields inherited from interface edu.cuny.cat.stat.GameReport
ACCEPTED, ASK, BID, CONVERGENCE_COEFFICIENT, EFFICIENCY, EQUILIBRIUM, FEE, Formatter, GLOBAL, MARKETSHARE, MAX, MEAN, MIN, PLACED, PRICE, PROFIT, PROFIT_DISPERSION, QUANTITY, SCORE, SHOUT, SPECIALIST, STDEV, TOTAL, TRADER, TRANSACTION, TRANSACTIONRATE, VALUE
 
Constructor Summary
StatisticalReport()
           
 
Method Summary
protected  void dailyUpdate()
           
 void eventOccurred(AuctionEvent event)
           
 edu.cuny.math.dist.CumulativeDistribution getDistribution(java.lang.String varName)
           
 void produceUserOutput()
           
 
Methods inherited from class edu.cuny.stat.AbstractReportVariableReport
applyDecoder, setup, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

distributions

protected java.util.Map<java.lang.String,edu.cuny.math.dist.CumulativeDistribution> distributions
Constructor Detail

StatisticalReport

public StatisticalReport()
Method Detail

eventOccurred

public void eventOccurred(AuctionEvent event)
Specified by:
eventOccurred in interface AuctionEventListener

dailyUpdate

protected void dailyUpdate()

produceUserOutput

public void produceUserOutput()
Specified by:
produceUserOutput in interface edu.cuny.stat.Report<AuctionEvent>

getDistribution

public edu.cuny.math.dist.CumulativeDistribution getDistribution(java.lang.String varName)