net.sourceforge.jasa.report
Class DirectRevelationReportVariables

java.lang.Object
  extended by AbstractReportVariables
      extended by net.sourceforge.jasa.report.DirectRevelationReportVariables
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
EquilibriumReportVariables, SupplyAndDemandStats

public abstract class DirectRevelationReportVariables
extends AbstractReportVariables
implements java.io.Serializable

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

 

Field Summary
protected  Market auction
           
protected  FourHeapOrderBook shoutEngine
          The market state after forced direct revelation.
protected  java.util.ArrayList<Order> shouts
          The truthful shouts of all traders in the market.
 
Constructor Summary
DirectRevelationReportVariables(java.lang.String name)
           
DirectRevelationReportVariables(java.lang.String name, Market auction)
           
 
Method Summary
 void compute(SimEvent event)
           
 void dispose(SimEvent event)
           
protected  void enumerateTruthfulShout(Order shout)
          Process a truthful shout from an agent
 void initialise()
           
 void initialise(SimEvent ev)
           
 void setAuction(Market auction)
           
protected  void simulateDirectRevelation()
          Update the market state with a truthful shout from each trader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

auction

protected Market auction

shoutEngine

protected FourHeapOrderBook shoutEngine
The market state after forced direct revelation.


shouts

protected java.util.ArrayList<Order> shouts
The truthful shouts of all traders in the market.

Constructor Detail

DirectRevelationReportVariables

public DirectRevelationReportVariables(java.lang.String name,
                                       Market auction)

DirectRevelationReportVariables

public DirectRevelationReportVariables(java.lang.String name)
Method Detail

setAuction

public void setAuction(Market auction)

compute

public void compute(SimEvent event)

simulateDirectRevelation

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


initialise

public void initialise()

enumerateTruthfulShout

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

Parameters:
shout - The truthful shout

dispose

public void dispose(SimEvent event)

initialise

public void initialise(SimEvent ev)