net.sourceforge.jasa.report
Class SupplyAndDemandStats

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

public abstract class SupplyAndDemandStats
extends DirectRevelationReportVariables

 

Field Summary
protected  DataWriter demandStats
          The DataWriter to write the demand curve to.
protected  DataWriter supplyStats
          The DataWriter to write the supply curve to.
 
Fields inherited from class net.sourceforge.jasa.report.DirectRevelationReportVariables
auction, shoutEngine, shouts
 
Constructor Summary
SupplyAndDemandStats(Market auction, DataWriter supplyStats, DataWriter demandStats)
          Constructor.
 
Method Summary
 void produceUserOutput()
           
abstract  void writeDemandStats()
           
 void writeStats(DataWriter stats, java.util.List<Order> shouts, java.util.Comparator<Order> comparator)
           
abstract  void writeSupplyStats()
           
 
Methods inherited from class net.sourceforge.jasa.report.DirectRevelationReportVariables
compute, dispose, enumerateTruthfulShout, initialise, initialise, setAuction, simulateDirectRevelation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

supplyStats

protected DataWriter supplyStats
The DataWriter to write the supply curve to.


demandStats

protected DataWriter demandStats
The DataWriter to write the demand curve to.

Constructor Detail

SupplyAndDemandStats

public SupplyAndDemandStats(Market auction,
                            DataWriter supplyStats,
                            DataWriter demandStats)
Constructor.

Parameters:
market - The market to compute supply and demand stats for.
supplyStats - The DataWriter to write the supply curve to.
demandStats - The DataWriter to write the demand curve to.
Method Detail

produceUserOutput

public void produceUserOutput()

writeStats

public void writeStats(DataWriter stats,
                       java.util.List<Order> shouts,
                       java.util.Comparator<Order> comparator)

writeSupplyStats

public abstract void writeSupplyStats()

writeDemandStats

public abstract void writeDemandStats()