uk.ac.liv.auction.stats
Class DirectRevelationReport

java.lang.Object
  extended byuk.ac.liv.auction.stats.AbstractAuctionReport
      extended byuk.ac.liv.auction.stats.AbstractMarketStatsReport
          extended byuk.ac.liv.auction.stats.DirectRevelationReport
All Implemented Interfaces:
AuctionEventListener, AuctionReport, Parameterizable, Resetable, java.io.Serializable
Direct Known Subclasses:
EquilibriumReport, SupplyAndDemandStats

public abstract class DirectRevelationReport
extends AbstractMarketStatsReport
implements Resetable, java.io.Serializable

This class computes the hypothetical auction state when all agents bid at their private valuation, ie when all agents bid truthfully. This can be used, for example, for equilibrium calculations.

Version:
$Revision: 1.2 $
Author:
Steve Phelps
See Also:
Serialized Form

Field Summary
protected  RoundRobinAuction auction
          The auction we are computing stats for.
protected  FourHeapShoutEngine shoutEngine
          The auction state after forced direct revelation.
protected  java.util.ArrayList shouts
          The truthful shouts of all traders in the auction.
 
Constructor Summary
DirectRevelationReport()
           
DirectRevelationReport(RoundRobinAuction auction)
           
 
Method Summary
 void calculate()
           
protected  void enumerateTruthfulShout(Shout shout)
          Process a truthful shout from an agent
 void initialise()
           
 void reset()
          Reinitialise our state to the original settings.
 void setAuction(RoundRobinAuction auction)
          Specify the auction to be used when generating the report.
 void setup(ec.util.ParameterDatabase parameters, ec.util.Parameter base)
          Initialise this object from a parameter database.
protected  void simulateDirectRevelation()
          Update the auction state with a truthful shout from each trader.
 
Methods inherited from class uk.ac.liv.auction.stats.AbstractMarketStatsReport
eventOccurred
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.ac.liv.auction.stats.AuctionReport
getVariables, produceUserOutput
 

Field Detail

shoutEngine

protected FourHeapShoutEngine shoutEngine
The auction state after forced direct revelation.


auction

protected RoundRobinAuction auction
The auction we are computing stats for.


shouts

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

Constructor Detail

DirectRevelationReport

public DirectRevelationReport(RoundRobinAuction auction)

DirectRevelationReport

public DirectRevelationReport()
Method Detail

setAuction

public void setAuction(RoundRobinAuction auction)
Description copied from interface: AuctionReport
Specify the auction to be used when generating the report.

Specified by:
setAuction in interface AuctionReport
Overrides:
setAuction in class AbstractAuctionReport

setup

public void setup(ec.util.ParameterDatabase parameters,
                  ec.util.Parameter base)
Description copied from interface: Parameterizable
Initialise this object from a parameter database.

Specified by:
setup in interface Parameterizable

calculate

public void calculate()
Specified by:
calculate in class AbstractMarketStatsReport

simulateDirectRevelation

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


initialise

public void initialise()

reset

public void reset()
Description copied from interface: Resetable
Reinitialise our state to the original settings.

Specified by:
reset in interface Resetable

enumerateTruthfulShout

protected void enumerateTruthfulShout(Shout shout)
Process a truthful shout from an agent

Parameters:
shout - The truthful shout