edu.cuny.cat.stat
Class ReportVariableWriterReport

java.lang.Object
  extended by edu.cuny.stat.AbstractReport<E>
      extended by edu.cuny.stat.AbstractReportVariableReport<E>
          extended by edu.cuny.stat.AbstractReportVariableWriterReport<AuctionEvent>
              extended by edu.cuny.cat.stat.ReportVariableWriterReport
All Implemented Interfaces:
AuctionEventListener, GameReport, edu.cuny.config.param.Parameterizable, edu.cuny.stat.Report<AuctionEvent>, java.util.EventListener

public class ReportVariableWriterReport
extends edu.cuny.stat.AbstractReportVariableWriterReport<AuctionEvent>
implements GameReport

This class writes values of specified report variables to the specified DataWriter objects, and thus can be used to log data to, e.g., CSV files, a database back end, etc.

Version:
$Revision: 1.26 $
Author:
Jinzhong Niu

Field Summary
protected  int day
           
protected  int gameNum
           
 
Fields inherited from class edu.cuny.stat.AbstractReportVariableWriterReport
log
 
Fields inherited from class edu.cuny.stat.AbstractReportVariableReport
P_NUM, P_VAR, paramVarNames, varNames
 
Fields inherited from interface edu.cuny.cat.stat.GameReport
ACCEPTED, ASK, BID, CONVERGENCE_COEFFICIENT, EFFICIENCY, EQUILIBRIUM, FEE, Formatter, GLOBAL, MARKETSHARE, MAX, MEAN, MIN, PLACED, PRICE, PROFIT, PROFIT_DISPERSION, QUANTITY, SCORE, SHOUT, SPECIALIST, STDEV, TOTAL, TRADER, TRANSACTION, TRANSACTIONRATE, VALUE
 
Constructor Summary
ReportVariableWriterReport()
           
ReportVariableWriterReport(edu.cuny.util.io.CSVWriter log)
           
 
Method Summary
 void eventOccurred(AuctionEvent event)
           
protected  void generateHeader()
           
 void produceUserOutput()
           
protected  void updateData()
           
 
Methods inherited from class edu.cuny.stat.AbstractReportVariableWriterReport
closeRecord, setup, toString
 
Methods inherited from class edu.cuny.stat.AbstractReportVariableReport
applyDecoder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

gameNum

protected int gameNum

day

protected int day
Constructor Detail

ReportVariableWriterReport

public ReportVariableWriterReport()

ReportVariableWriterReport

public ReportVariableWriterReport(edu.cuny.util.io.CSVWriter log)
Method Detail

generateHeader

protected void generateHeader()
Overrides:
generateHeader in class edu.cuny.stat.AbstractReportVariableWriterReport<AuctionEvent>

eventOccurred

public void eventOccurred(AuctionEvent event)
Specified by:
eventOccurred in interface AuctionEventListener

updateData

protected void updateData()
Overrides:
updateData in class edu.cuny.stat.AbstractReportVariableWriterReport<AuctionEvent>

produceUserOutput

public void produceUserOutput()
Specified by:
produceUserOutput in interface edu.cuny.stat.Report<AuctionEvent>