edu.cuny.cat.stat
Class MarketMetricsReport

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

public class MarketMetricsReport
extends DirectRevelationReport

A report calculating actual efficiency, actual convergence coefficient, and equilibrium price, quantitiy, and profit of specialists.

Report variables

global.efficiency the efficiency of the global market.
global.convergence_coefficient the convergence coefficient of the global market.
global.profit the profit dispersion of the global market.
global.equilibrium.price the equilibrium price of the global market.
global.equilibrium.quantity the equilibrium quantity of the global market.
global.equilibrium.profit the equilibrium profit of the global market.
global.profit_dispersion the profit dispersion of the global market.
global.equilibrium.<shout>.quantity the total quantity of goods in shouts of certain types at the global market.
global.equilibrium.<shout>.price.min the min price of shouts of certain type at the global market.
global.equilibrium.<shout>.price.max the max price of shouts of certain type at the global market.
global.equilibrium.<shout>.price.mean the mean price of shouts of certain type at the global market.
global.equilibrium.<shout>.price.stdev the stdev of prices of shouts of certain type at the global market.
<specialist>.efficiency the efficiency of a specialist.
<specialist>.convergence_coefficient the convergence coefficient of a specialist.
<specialist>.profit_dispersion the profit dispersion of a specialist.
<specialist>.equilibrium.price the equilibrium price of a specialist.
<specialist>.equilibrium.quantity the equilibrium quantity of a specialist.
<specialist>.equilibrium.profit the equilibrium profit of a specialist.
<specialist>.equilibrium.<shout>.quantity the total quantity of goods in shouts of certain type at a specialist.
<specialist>.equilibrium.<shout>.price.min the min price of shouts of certain type at a specialist.
<specialist>.equilibrium.<shout>.price.max the max price of shouts of certain type at a specialist.
<specialist>.equilibrium.<shout>.price.mean the mean price of shouts of certain type at a specialist.
<specialist>.equilibrium.<shout>.price.stdev the stdev of prices of shouts of certain type at a specialist.

Version:
$Revision: 1.13 $
Author:
Jinzhong Niu

Field Summary
protected  java.util.Map<java.lang.String,java.util.Set<Transaction>> dailyTransactions
          all transactions made today grouped based on specialists
protected  Registry registry
           
 
Fields inherited from class edu.cuny.cat.stat.DirectRevelationReport
globalShoutEngine, shoutEngines, shouts
 
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
MarketMetricsReport()
           
 
Method Summary
 void calculate()
           
protected  void calculateGlobally()
          calculates the global market including all the specialists
protected  void calculateIndividually()
          calculates each individual specialist
 void eventOccurred(AuctionEvent event)
           
 java.util.Map<edu.cuny.stat.ReportVariable,?> getVariables()
           
 void produceUserOutput()
           
 void updateCurrentDayTransactions(TransactionExecutedEvent event)
           
 
Methods inherited from class edu.cuny.cat.stat.DirectRevelationReport
reset, simulateDirectRevelation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dailyTransactions

protected java.util.Map<java.lang.String,java.util.Set<Transaction>> dailyTransactions
all transactions made today grouped based on specialists


registry

protected Registry registry
Constructor Detail

MarketMetricsReport

public MarketMetricsReport()
Method Detail

getVariables

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

eventOccurred

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

updateCurrentDayTransactions

public void updateCurrentDayTransactions(TransactionExecutedEvent event)

produceUserOutput

public void produceUserOutput()

calculate

public void calculate()
Overrides:
calculate in class DirectRevelationReport

calculateIndividually

protected void calculateIndividually()
calculates each individual specialist


calculateGlobally

protected void calculateGlobally()
calculates the global market including all the specialists