net.sourceforge.jasa.report
Class SupplyAndDemandStats
java.lang.Object
AbstractReportVariables
net.sourceforge.jasa.report.DirectRevelationReportVariables
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
supplyStats
protected DataWriter supplyStats
- The DataWriter to write the supply curve to.
demandStats
protected DataWriter demandStats
- The DataWriter to write the demand curve to.
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.
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()