edu.cuny.cat.stat
Class ConnectionStateReport

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

public class ConnectionStateReport
extends java.lang.Object
implements GameReport, edu.cuny.config.param.Parameterizable

A report that records the states of specialists in a CSV file based on CSVWriter.

Version:
$Revision: 1.8 $
Author:
Jinzhong Niu
See Also:
ClientState

Field Summary
protected  edu.cuny.util.io.CSVWriter log
           
protected  Registry registry
           
protected  java.util.Map<java.lang.String,java.lang.String> stateMap
           
 
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
ConnectionStateReport()
           
 
Method Summary
 void eventOccurred(AuctionEvent event)
           
protected  void generateFile()
           
protected  void generateHeader()
           
 java.util.Map<edu.cuny.stat.ReportVariable,?> getVariables()
           
 void produceUserOutput()
           
 void setup(edu.cuny.config.param.ParameterDatabase parameters, edu.cuny.config.param.Parameter base)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected edu.cuny.util.io.CSVWriter log

stateMap

protected java.util.Map<java.lang.String,java.lang.String> stateMap

registry

protected Registry registry
Constructor Detail

ConnectionStateReport

public ConnectionStateReport()
Method Detail

setup

public void setup(edu.cuny.config.param.ParameterDatabase parameters,
                  edu.cuny.config.param.Parameter base)
Specified by:
setup in interface edu.cuny.config.param.Parameterizable

generateHeader

protected void generateHeader()

generateFile

protected void generateFile()

eventOccurred

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

produceUserOutput

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

getVariables

public java.util.Map<edu.cuny.stat.ReportVariable,?> getVariables()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object