net.commerce.zocalo.history
Class PriceHistoryRecord

java.lang.Object
  extended by net.commerce.zocalo.history.PriceHistoryRecord
Direct Known Subclasses:
PriceChangeRec, TradeRec, TransactionRec

public abstract class PriceHistoryRecord
extends java.lang.Object

PriceHistoryRecord is a start on a framework for tracking trading history. When complete, it will ensure that multiple trades that happen as a result of a single new order are recognized as a unit, which will make representation of price changes more correct.


Field Summary
static int BEST_ASK
           
static int BEST_BID
           
static int CLOSE
           
static int OPEN
           
static int QUANTITY
           
 
Constructor Summary
PriceHistoryRecord()
           
 
Method Summary
abstract  void addTo(org.jfree.data.time.TimePeriodValuesCollection c)
           
 Price getClose()
           
 Price getOpen()
           
protected abstract  double getQuantity()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPEN

public static final int OPEN
See Also:
Constant Field Values

CLOSE

public static final int CLOSE
See Also:
Constant Field Values

BEST_BID

public static final int BEST_BID
See Also:
Constant Field Values

BEST_ASK

public static final int BEST_ASK
See Also:
Constant Field Values

QUANTITY

public static final int QUANTITY
See Also:
Constant Field Values
Constructor Detail

PriceHistoryRecord

public PriceHistoryRecord()
Method Detail

getQuantity

protected abstract double getQuantity()

addTo

public abstract void addTo(org.jfree.data.time.TimePeriodValuesCollection c)

getOpen

public Price getOpen()

getClose

public Price getClose()