edu.cuny.cat.stat
Class ConnectionStateReport
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
log
protected edu.cuny.util.io.CSVWriter log
stateMap
protected java.util.Map<java.lang.String,java.lang.String> stateMap
registry
protected Registry registry
ConnectionStateReport
public ConnectionStateReport()
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