net.commerce.zocalo.history
Class PriceChangeRec

java.lang.Object
  extended by net.commerce.zocalo.history.PriceHistoryRecord
      extended by net.commerce.zocalo.history.PriceChangeRec

public class PriceChangeRec
extends PriceHistoryRecord

PriceChangeRec represents a price change not associated with a trade as a result of the addition or withdrawal of a book order.


Field Summary
 
Fields inherited from class net.commerce.zocalo.history.PriceHistoryRecord
BEST_ASK, BEST_BID, CLOSE, OPEN, QUANTITY
 
Constructor Summary
PriceChangeRec(BinaryClaim claim, double bidAfter, double askAfter, java.util.Date date)
           
PriceChangeRec(Position position, double bidAfter, double askAfter, java.util.Date date)
           
 
Method Summary
 void addTo(org.jfree.data.time.TimePeriodValuesCollection c)
           
 double getQuantity()
           
static PriceChangeRec makeAskPriceChange(BinaryClaim claim, double askAfter, java.util.Date date)
           
static PriceChangeRec makeAskPriceChange(Position position, double askAfter, java.util.Date date)
           
static PriceChangeRec makeBidPriceChange(BinaryClaim claim, double bidAfter, java.util.Date date)
           
static PriceChangeRec makeBidPriceChange(Position position, double bidAfter, java.util.Date date)
           
 
Methods inherited from class net.commerce.zocalo.history.PriceHistoryRecord
getClose, getOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PriceChangeRec

public PriceChangeRec(Position position,
                      double bidAfter,
                      double askAfter,
                      java.util.Date date)

PriceChangeRec

public PriceChangeRec(BinaryClaim claim,
                      double bidAfter,
                      double askAfter,
                      java.util.Date date)
Method Detail

makeBidPriceChange

public static PriceChangeRec makeBidPriceChange(Position position,
                                                double bidAfter,
                                                java.util.Date date)

makeBidPriceChange

public static PriceChangeRec makeBidPriceChange(BinaryClaim claim,
                                                double bidAfter,
                                                java.util.Date date)

makeAskPriceChange

public static PriceChangeRec makeAskPriceChange(Position position,
                                                double askAfter,
                                                java.util.Date date)

makeAskPriceChange

public static PriceChangeRec makeAskPriceChange(BinaryClaim claim,
                                                double askAfter,
                                                java.util.Date date)

getQuantity

public double getQuantity()
Specified by:
getQuantity in class PriceHistoryRecord

addTo

public void addTo(org.jfree.data.time.TimePeriodValuesCollection c)
Specified by:
addTo in class PriceHistoryRecord