edu.cuny.cat.stat
Class ShoutReport

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

public class ShoutReport
extends java.lang.Object
implements GameReport

A report tracking shouts and transactions that have been made at specialists day by day.

Report variables

<specialist>.<shout>.placed the number of shouts of certain type placed at a specialist.
<specialist>.<shout>.placed.quantity the total quantity of goods in the shouts of certain type placed at a specialist.
<specialist>.<shout>.placed.price.min the min price of shouts of certain type placed at a specialist.
<specialist>.<shout>.placed.price.max the max price of shouts of certain type placed at a specialist.
<specialist>.<shout>.placed.price.mean the mean price of shouts of certain type placed at a specialist.
<specialist>.<shout>.placed.price.stdev the stdev of prices of shouts of certain type placed at a specialist.
<specialist>.<shout>.accepted the number of shouts of certain type accepted at a specialist.
<specialist>.<shout>.accepted.quantity the total quantity of goods in the shouts of certain type accepted at a specialist.
<specialist>.<shout>.accepted.price.min the min price of shouts of certain type accepted at a specialist.
<specialist>.<shout>.accepted.price.max the max price of shouts of certain type accepted at a specialist.
<specialist>.<shout>.accepted.price.mean the mean price of shouts of certain type accepted at a specialist.
<specialist>.<shout>.accepted.price.stdev the stdev of prices of shouts of certain type accepted at a specialist.
<specialist>.transaction the number of transactions made at a specialist.
<specialist>.transaction.quantity the total quantity of goods involved in the transactions made at a specialist.
<specialist>.transaction.price.min the min price of transactions made at a specialist.
<specialist>.transaction.price.max the max price of transactions made at a specialist.
<specialist>.transaction.price.mean the mean price of transactions made at a specialist.
<specialist>.transaction.price.stdev the stdev of prices of transactions made at a specialist.

Version:
$Revision: 1.19 $
Author:
Jinzhong Niu

Field Summary
 
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
ShoutReport()
           
 
Method Summary
 void eventOccurred(AuctionEvent event)
           
protected  void generateStat()
           
 java.util.Map<edu.cuny.stat.ReportVariable,?> getVariables()
           
 void produceUserOutput()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShoutReport

public ShoutReport()
Method Detail

getVariables

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

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

eventOccurred

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

generateStat

protected void generateStat()