net.sourceforge.jasa.report
Class PriceStatisticsReport
java.lang.Object
net.sourceforge.jasa.report.AbstractAuctionReport
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
-
-
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
PriceStatisticsReport
public PriceStatisticsReport()
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)