edu.cuny.cat.stat
Class ScoreReport
java.lang.Object
  
edu.cuny.cat.stat.DailyAssessmentReport
      
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
 
 
 
| 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 | 
 
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
ScoreReport
public ScoreReport()
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