edu.cuny.cat.stat
Class MoreRevelationReport

java.lang.Object
  extended by edu.cuny.cat.stat.MoreRevelationReport
All Implemented Interfaces:
AuctionEventListener, GameReport, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable, edu.cuny.stat.Report<AuctionEvent>, java.util.EventListener

public class MoreRevelationReport
extends java.lang.Object
implements GameReport, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable

A report that uses ThetaShoutEngine to process shouts at specialists to do additional theoretical analysis. The report uses MaxEfficienciesCalculator and logs the calculated efficiencies to, e.g, CSV files, a database back end, etc.

Version:
$Revision: 1.14 $
Author:
Jinzhong Niu

Field Summary
protected  int day
           
protected  int game
           
protected  ThetaShoutEngine globalShoutEngine
           
protected  edu.cuny.util.io.CSVWriter log
           
protected  Registry registry
           
protected  java.util.Map<java.lang.String,ThetaShoutEngine> shoutEngines
           
protected  java.util.ArrayList<Shout> shouts
          The truthful shouts of all traders in the auction.
protected  Trader[] traders
           
 
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
MoreRevelationReport()
           
 
Method Summary
 void calculate()
           
protected  void calculateGlobally()
          calculates the global market including all the specialists
protected  void calculateIndividually()
          calculates each individual specialist
 void eventOccurred(AuctionEvent event)
           
protected  void logEfficiencies(java.lang.String marketId, java.util.List<java.lang.Double> efficiencies)
           
 void produceUserOutput()
           
 void reset()
           
 void setup(edu.cuny.config.param.ParameterDatabase parameters, edu.cuny.config.param.Parameter base)
           
protected  void simulateDirectRevelation()
          Update the auction state with a truthful shout from each trader.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

globalShoutEngine

protected ThetaShoutEngine globalShoutEngine

shoutEngines

protected java.util.Map<java.lang.String,ThetaShoutEngine> shoutEngines

traders

protected Trader[] traders

shouts

protected java.util.ArrayList<Shout> shouts
The truthful shouts of all traders in the auction.


registry

protected Registry registry

log

protected edu.cuny.util.io.CSVWriter log

game

protected int game

day

protected int day
Constructor Detail

MoreRevelationReport

public MoreRevelationReport()
Method Detail

setup

public void setup(edu.cuny.config.param.ParameterDatabase parameters,
                  edu.cuny.config.param.Parameter base)
Specified by:
setup in interface edu.cuny.config.param.Parameterizable

reset

public void reset()
Specified by:
reset in interface edu.cuny.obj.Resetable

eventOccurred

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

calculate

public void calculate()

simulateDirectRevelation

protected void simulateDirectRevelation()
Update the auction state with a truthful shout from each trader.


calculateIndividually

protected void calculateIndividually()
calculates each individual specialist


calculateGlobally

protected void calculateGlobally()
calculates the global market including all the specialists


logEfficiencies

protected void logEfficiencies(java.lang.String marketId,
                               java.util.List<java.lang.Double> efficiencies)

produceUserOutput

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object