edu.cuny.cat.stat
Class DirectRevelationReport

java.lang.Object
  extended by edu.cuny.cat.stat.DirectRevelationReport
All Implemented Interfaces:
AuctionEventListener, GameReport, edu.cuny.obj.Resetable, edu.cuny.stat.Report<AuctionEvent>, java.util.EventListener
Direct Known Subclasses:
MarketMetricsReport

public abstract class DirectRevelationReport
extends java.lang.Object
implements GameReport, edu.cuny.obj.Resetable

A report that uses FourHeapShoutEngine to process shouts at specialists to make theoretical analysis later on (in subclasses).

Version:
$Revision: 1.14 $
Author:
Kai Cai

Field Summary
protected  FourHeapShoutEngine globalShoutEngine
          The auction state after forced direct revelation.
protected  java.util.Map<java.lang.String,FourHeapShoutEngine> shoutEngines
           
protected  java.util.ArrayList<Shout> shouts
          The truthful shouts of all traders in the auction.
 
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
DirectRevelationReport()
           
 
Method Summary
 void calculate()
           
 void eventOccurred(AuctionEvent event)
           
 void reset()
           
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
 
Methods inherited from interface edu.cuny.stat.Report
produceUserOutput
 

Field Detail

globalShoutEngine

protected FourHeapShoutEngine globalShoutEngine
The auction state after forced direct revelation.


shoutEngines

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

shouts

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

Constructor Detail

DirectRevelationReport

public DirectRevelationReport()
Method Detail

reset

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

calculate

public void calculate()

eventOccurred

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

simulateDirectRevelation

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


toString

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