edu.cuny.cat.stat
Class ScoreReport

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

public class ScoreReport
extends DailyAssessmentReport
implements edu.cuny.config.param.Parameterizable

A report on scores of specialists with a ScoreDaysCondition specifying scoring game days.

Parameters

base.condition
name of class, implementing ScoreDaysCondition
(determines which days are scoring ones)

Report variables

score.counted whether the current day is a scoring day or not.

Version:
$Revision: 1.19 $
Author:
Jinzhong Niu

Field Summary
protected  java.util.Map<java.lang.String,Score> alltimeScores
           
protected  ScoreDaysCondition scoreDaysCondition
           
protected  java.util.Set<java.lang.Integer> scoreDaysCurGame
           
protected  int totalDays
           
 
Fields inherited from class edu.cuny.cat.stat.DailyAssessmentReport
dailyScores, logController, 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
ScoreReport()
           
 
Method Summary
 void eventOccurred(AuctionEvent event)
           
 Score getScore(java.lang.String specialistId)
           
 ScoreDaysCondition getScoreDaysCondition()
           
protected  void initScoreRecords()
           
 void produceUserOutput()
           
 void setup(edu.cuny.config.param.ParameterDatabase parameters, edu.cuny.config.param.Parameter base)
           
 java.lang.String toString()
           
protected  void updateScoreDaysConditionVar(int day)
           
protected  void updateScores(int day)
          updates the scores of specialists if the specified day is a scoring day.
 
Methods inherited from class edu.cuny.cat.stat.DailyAssessmentReport
calculateDailyScores, calculateMarketShares, calculateProfits, calculateTransactionRates, getDailyScore, getVariables, initCumulativeProfitRecords, initDailyScores, reportDailyScores, resetDailyScores
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

scoreDaysCondition

protected ScoreDaysCondition scoreDaysCondition

alltimeScores

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

scoreDaysCurGame

protected java.util.Set<java.lang.Integer> scoreDaysCurGame

totalDays

protected int totalDays
Constructor Detail

ScoreReport

public ScoreReport()
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

getScoreDaysCondition

public ScoreDaysCondition getScoreDaysCondition()

eventOccurred

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

initScoreRecords

protected void initScoreRecords()

updateScoreDaysConditionVar

protected void updateScoreDaysConditionVar(int day)

updateScores

protected void updateScores(int day)
updates the scores of specialists if the specified day is a scoring day.

Parameters:
day - the day to be considered

produceUserOutput

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

getScore

public Score getScore(java.lang.String specialistId)

toString

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