|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.liv.auction.stats.AbstractAuctionReport
uk.ac.liv.auction.stats.DataWriterReport
This class writes auction data to the specified DataWriter objects, and thus can be used to log data to eg, CSV files, a database backend, etc.
| Field Summary | |
protected DataWriter |
askLog
output for ask data as time series. |
protected DataWriter |
askQuoteLog
output for the ask component of market quotes as time series. |
protected RoundRobinAuction |
auction
The auction we are keeping statistics on. |
protected DataWriter |
bidLog
output for bid data as time series. |
protected DataWriter |
bidQuoteLog
output for the bid component of market quotes as time series. |
protected DataWriter |
transPriceLog
|
| Constructor Summary | |
DataWriterReport()
|
|
DataWriterReport(DataWriter askQuoteLog,
DataWriter bidQuoteLog,
DataWriter bidLog,
DataWriter askLog,
DataWriter transPriceLog)
|
|
| Method Summary | |
void |
dataUpdated()
|
void |
eventOccurred(AuctionEvent event)
|
java.util.Map |
getVariables()
Returns a Map of all of the variables that are produced in the report. |
void |
produceUserOutput()
Produce the final report for the user. |
void |
setAuction(RoundRobinAuction auction)
Specify the auction to be used when generating the report. |
void |
setup(ec.util.ParameterDatabase parameters,
ec.util.Parameter base)
Initialise this object from a parameter database. |
void |
updateQuoteLog(RoundClosedEvent event)
|
void |
updateShoutLog(ShoutPlacedEvent event)
|
void |
updateTransPriceLog(TransactionExecutedEvent event)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected DataWriter askQuoteLog
protected DataWriter bidQuoteLog
protected DataWriter bidLog
protected DataWriter askLog
protected DataWriter transPriceLog
protected RoundRobinAuction auction
| Constructor Detail |
public DataWriterReport()
public DataWriterReport(DataWriter askQuoteLog,
DataWriter bidQuoteLog,
DataWriter bidLog,
DataWriter askLog,
DataWriter transPriceLog)
| Method Detail |
public void setup(ec.util.ParameterDatabase parameters,
ec.util.Parameter base)
Parameterizable
public void eventOccurred(AuctionEvent event)
public void updateQuoteLog(RoundClosedEvent event)
public void updateTransPriceLog(TransactionExecutedEvent event)
public void updateShoutLog(ShoutPlacedEvent event)
public void dataUpdated()
public void produceUserOutput()
AuctionReport
public java.util.Map getVariables()
AuctionReport
ReportVariablepublic void setAuction(RoundRobinAuction auction)
AuctionReport
setAuction in interface AuctionReportsetAuction in class AbstractAuctionReport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||