edu.cuny.cat.stat
Class DailyAssessmentReport

java.lang.Object
  extended by edu.cuny.cat.stat.DailyAssessmentReport
All Implemented Interfaces:
AuctionEventListener, GameReport, edu.cuny.stat.Report<AuctionEvent>, java.util.EventListener
Direct Known Subclasses:
ScoreReport

public class DailyAssessmentReport
extends java.lang.Object
implements GameReport

A report executing daily assessment on specialists according to the TAC market design tournament assessment process document.

Report variables

<specialist>.score the daily score of a specialist.
<specialist>.score.marketshare the daily market share score of a specialist.
<specialist>.score.profit the daily profit score of a specialist.
<specialist>.score.transactionrate the daily transaction success rate score of a specialist.

Version:
$Revision: 1.19 $
Author:
Jinzhong Niu

Field Summary
protected  java.util.Map<java.lang.String,Score> dailyScores
           
protected  edu.cuny.stat.LoggingController logController
           
protected  java.util.Map<java.lang.String,java.lang.Double> preCurDayProfits
           
 
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
DailyAssessmentReport()
           
 
Method Summary
protected  void calculateDailyScores()
           
protected  void calculateMarketShares()
           
protected  void calculateProfits()
           
protected  void calculateTransactionRates()
           
 void eventOccurred(AuctionEvent event)
           
 Score getDailyScore(java.lang.String specialistId)
           
 java.util.Map<edu.cuny.stat.ReportVariable,?> getVariables()
           
protected  void initCumulativeProfitRecords()
           
protected  void initDailyScores()
           
 void produceUserOutput()
           
protected  void reportDailyScores()
           
protected  void resetDailyScores()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

preCurDayProfits

protected java.util.Map<java.lang.String,java.lang.Double> preCurDayProfits

dailyScores

protected java.util.Map<java.lang.String,Score> dailyScores

logController

protected edu.cuny.stat.LoggingController logController
Constructor Detail

DailyAssessmentReport

public DailyAssessmentReport()
Method Detail

getVariables

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

eventOccurred

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

initCumulativeProfitRecords

protected void initCumulativeProfitRecords()

resetDailyScores

protected void resetDailyScores()

initDailyScores

protected void initDailyScores()

calculateMarketShares

protected void calculateMarketShares()

calculateProfits

protected void calculateProfits()

calculateTransactionRates

protected void calculateTransactionRates()

calculateDailyScores

protected void calculateDailyScores()

reportDailyScores

protected void reportDailyScores()

getDailyScore

public Score getDailyScore(java.lang.String specialistId)

produceUserOutput

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

toString

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