net.sourceforge.jasa.report
Class ReportedSupplyAndDemandStats
java.lang.Object
AbstractReportVariables
net.sourceforge.jasa.report.DirectRevelationReportVariables
net.sourceforge.jasa.report.SupplyAndDemandStats
net.sourceforge.jasa.report.ReportedSupplyAndDemandStats
- All Implemented Interfaces:
- java.io.Serializable
public class ReportedSupplyAndDemandStats
- extends SupplyAndDemandStats
A class to calculate the supply and demand curves and write them to the
specified DataWriters. This can be used to log data to
DataSeriesWriters, which can then be viewed in a JSci graph
or a swing table.
-
-
|
Field Summary |
protected java.util.ArrayList<Order> |
asks
The sorted list of agents' truthful asks (ie sellers' private values). |
protected java.util.ArrayList<Order> |
bids
The sorted list of agent's truthful bids (ie buyers' private values). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bids
protected java.util.ArrayList<Order> bids
- The sorted list of agent's truthful bids (ie buyers' private values).
asks
protected java.util.ArrayList<Order> asks
- The sorted list of agents' truthful asks (ie sellers' private values).
ReportedSupplyAndDemandStats
public ReportedSupplyAndDemandStats(Market auction,
DataWriter supplyStats,
DataWriter demandStats)
writeSupplyStats
public void writeSupplyStats()
- Specified by:
writeSupplyStats in class SupplyAndDemandStats
writeDemandStats
public void writeDemandStats()
- Specified by:
writeDemandStats in class SupplyAndDemandStats
enumerateTruthfulShout
protected void enumerateTruthfulShout(Order truthfulShout)
- Description copied from class:
DirectRevelationReportVariables
- Process a truthful shout from an agent
- Overrides:
enumerateTruthfulShout in class DirectRevelationReportVariables
- Parameters:
truthfulShout - The truthful shout
initialise
public void initialise()
- Overrides:
initialise in class DirectRevelationReportVariables