net.sourceforge.jasa.report
Class TrueSupplyAndDemandStats
java.lang.Object
AbstractReportVariables
net.sourceforge.jasa.report.DirectRevelationReportVariables
net.sourceforge.jasa.report.SupplyAndDemandStats
net.sourceforge.jasa.report.TrueSupplyAndDemandStats
- All Implemented Interfaces:
- java.io.Serializable
public class TrueSupplyAndDemandStats
- extends SupplyAndDemandStats
A class to calculate the supply and demand curves and write them to the
specified DataWriter
s. This can be used to log data to
DataSeriesWriter
s, 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).
TrueSupplyAndDemandStats
public TrueSupplyAndDemandStats(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 shout)
- Description copied from class:
DirectRevelationReportVariables
- Process a truthful shout from an agent
- Overrides:
enumerateTruthfulShout
in class DirectRevelationReportVariables
- Parameters:
shout
- The truthful shout
initialise
public void initialise()
- Overrides:
initialise
in class DirectRevelationReportVariables