net.sourceforge.jasa.report
Class DataWriterReport
java.lang.Object
net.sourceforge.jasa.report.AbstractAuctionReport
net.sourceforge.jasa.report.DataWriterReport
- All Implemented Interfaces:
- java.io.Serializable, AuctionReport
- Direct Known Subclasses:
- CSVReport, MeanValueDataWriterReport
public class DataWriterReport
- extends AbstractAuctionReport
This class writes market data to the specified DataWriter objects, and thus
can be used to log data to eg, CSV files, a database backend, etc.
- See Also:
- Serialized Form
-
-
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 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
output for transaction price time series. |
Constructor Summary |
DataWriterReport()
|
DataWriterReport(DataWriter askQuoteLog,
DataWriter bidQuoteLog,
DataWriter bidLog,
DataWriter askLog,
DataWriter transPriceLog)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
askQuoteLog
protected DataWriter askQuoteLog
- output for the ask component of market quotes as time series.
bidQuoteLog
protected DataWriter bidQuoteLog
- output for the bid component of market quotes as time series.
bidLog
protected DataWriter bidLog
- output for bid data as time series.
askLog
protected DataWriter askLog
- output for ask data as time series.
transPriceLog
protected DataWriter transPriceLog
- output for transaction price time series.
DataWriterReport
public DataWriterReport()
DataWriterReport
public DataWriterReport(DataWriter askQuoteLog,
DataWriter bidQuoteLog,
DataWriter bidLog,
DataWriter askLog,
DataWriter transPriceLog)
eventOccurred
public void eventOccurred(SimEvent event)
- Overrides:
eventOccurred
in class AbstractAuctionReport
updateQuoteLog
public void updateQuoteLog(RoundFinishedEvent event)
updateTransPriceLog
public void updateTransPriceLog(TransactionExecutedEvent event)
updateShoutLog
public void updateShoutLog(OrderPlacedEvent event)
dataUpdated
public void dataUpdated()
produceUserOutput
public void produceUserOutput()
- Overrides:
produceUserOutput
in class AbstractAuctionReport
reset
public void reset()