net.sourceforge.jasa.report
Class PriceStatisticsReport

java.lang.Object
  extended by net.sourceforge.jasa.report.AbstractAuctionReport
      extended by net.sourceforge.jasa.report.PriceStatisticsReport
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, AuctionReport
Direct Known Subclasses:
DailyStatsReport

public class PriceStatisticsReport
extends AbstractAuctionReport
implements java.io.Serializable, java.lang.Cloneable

A historicalDataReport that keeps cummulative statistics on bid prices, ask prices, transaction prices, and market quote prices.

See Also:
Serialized Form
 

Field Summary
protected static int ASK_PRICE
           
protected static int ASK_QUOTE
           
protected static int BID_PRICE
           
protected static int BID_QUOTE
           
protected  SummaryStats[] stats
           
protected static int TRANS_PRICE
           
 
Fields inherited from class net.sourceforge.jasa.report.AbstractAuctionReport
auction
 
Constructor Summary
PriceStatisticsReport()
           
 
Method Summary
 java.lang.Object clone()
           
protected  void createReportVars(java.util.Map<java.lang.Object,java.lang.Number> vars, java.lang.String var, Distribution stats)
           
 void eventOccurred(SimEvent event)
           
 SummaryStats getAskPriceStats()
           
 SummaryStats getAskQuoteStats()
           
 SummaryStats getBidPriceStats()
           
 SummaryStats getBidQuoteStats()
           
 SummaryStats getTransPriceStats()
           
 java.util.Map<java.lang.Object,java.lang.Number> getVariableBindings()
           
 void initialise()
           
protected  ReportVariable makeVar(java.lang.String varName, java.lang.String moment)
           
 PriceStatisticsReport newCopy()
           
protected  void printStats(SummaryStats stats)
           
 void produceUserOutput()
           
protected  void reportHeader()
           
 void reset()
           
 void roundClosed(RoundFinishedEvent event)
           
 void updateShoutLog(OrderPlacedEvent event)
           
 void updateTransPriceLog(TransactionExecutedEvent event)
           
 
Methods inherited from class net.sourceforge.jasa.report.AbstractAuctionReport
getAuction, getName, setAuction
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stats

protected SummaryStats[] stats

TRANS_PRICE

protected static final int TRANS_PRICE
See Also:
Constant Field Values

BID_PRICE

protected static final int BID_PRICE
See Also:
Constant Field Values

ASK_PRICE

protected static final int ASK_PRICE
See Also:
Constant Field Values

BID_QUOTE

protected static final int BID_QUOTE
See Also:
Constant Field Values

ASK_QUOTE

protected static final int ASK_QUOTE
See Also:
Constant Field Values
Constructor Detail

PriceStatisticsReport

public PriceStatisticsReport()
Method Detail

eventOccurred

public void eventOccurred(SimEvent event)
Overrides:
eventOccurred in class AbstractAuctionReport

roundClosed

public void roundClosed(RoundFinishedEvent event)

updateTransPriceLog

public void updateTransPriceLog(TransactionExecutedEvent event)

updateShoutLog

public void updateShoutLog(OrderPlacedEvent event)

getTransPriceStats

public SummaryStats getTransPriceStats()

getBidPriceStats

public SummaryStats getBidPriceStats()

getAskPriceStats

public SummaryStats getAskPriceStats()

getBidQuoteStats

public SummaryStats getBidQuoteStats()

getAskQuoteStats

public SummaryStats getAskQuoteStats()

initialise

public void initialise()

reset

public void reset()

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

newCopy

public PriceStatisticsReport newCopy()

produceUserOutput

public void produceUserOutput()
Overrides:
produceUserOutput in class AbstractAuctionReport

getVariableBindings

public java.util.Map<java.lang.Object,java.lang.Number> getVariableBindings()
Overrides:
getVariableBindings in class AbstractAuctionReport

reportHeader

protected void reportHeader()

printStats

protected void printStats(SummaryStats stats)

createReportVars

protected void createReportVars(java.util.Map<java.lang.Object,java.lang.Number> vars,
                                java.lang.String var,
                                Distribution stats)

makeVar

protected ReportVariable makeVar(java.lang.String varName,
                                 java.lang.String moment)