com.epam.cmemdp.marketdata.impl
Class ArrayBasedOrderBookImpl
java.lang.Object
com.epam.cmemdp.marketdata.impl.AbstractOrderBookImpl
com.epam.cmemdp.marketdata.impl.ArrayBasedOrderBookImpl
- All Implemented Interfaces:
- UpdatableDirectOrderBook, UpdatableOrderBook, BasicOrderBook, OrderBook
public class ArrayBasedOrderBookImpl
- extends AbstractOrderBookImpl
- implements UpdatableDirectOrderBook
Fields inherited from class com.epam.cmemdp.marketdata.impl.AbstractOrderBookImpl |
ASK, ASK_CODE, BID, BID_CODE, EMPTY_BOOK, ENTRY_CHANGE, ENTRY_DELETE, ENTRY_DELETE_FROM, ENTRY_DELETE_THRU, ENTRY_NEW, ENTRY_OVERLAY, IMPLIED_ASK_CODE, IMPLIED_BID_CODE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayBasedOrderBookImpl
public ArrayBasedOrderBookImpl()
ArrayBasedOrderBookImpl
public ArrayBasedOrderBookImpl(SecurityDefinition securityDefinition,
int bookDepth,
double displayFactor,
OrderBookListener listener)
addListener
public void addListener(OrderBookListener orderBookListener)
- Specified by:
addListener
in interface UpdatableDirectOrderBook
getSecurityDef
public SecurityDefinition getSecurityDef()
- Specified by:
getSecurityDef
in interface BasicOrderBook
getBookType
public OrderBookType getBookType()
- Specified by:
getBookType
in interface BasicOrderBook
getBookState
public OrderBookState getBookState()
- Specified by:
getBookState
in interface BasicOrderBook
getDepth
public int getDepth()
- Specified by:
getDepth
in interface BasicOrderBook
getDisplayFactor
public double getDisplayFactor()
- Specified by:
getDisplayFactor
in interface OrderBook
getBidData
public BookPriceLevel getBidData(int priceLevel)
- Specified by:
getBidData
in interface OrderBook
getAskData
public BookPriceLevel getAskData(int priceLevel)
- Specified by:
getAskData
in interface OrderBook
getBidCount
public int getBidCount(int level)
- Specified by:
getBidCount
in interface OrderBook
getBidQuantity
public double getBidQuantity(int level)
- Specified by:
getBidQuantity
in interface OrderBook
getBidPrice
public double getBidPrice(int level)
- Specified by:
getBidPrice
in interface OrderBook
getAskCount
public int getAskCount(int level)
- Specified by:
getAskCount
in interface OrderBook
getAskQuantity
public double getAskQuantity(int level)
- Specified by:
getAskQuantity
in interface OrderBook
getAskPrice
public double getAskPrice(int level)
- Specified by:
getAskPrice
in interface OrderBook
updateFromSecurityDefinition
public void updateFromSecurityDefinition(SecurityDefinition securityDefinition)
- Specified by:
updateFromSecurityDefinition
in interface UpdatableOrderBook
updateFromSnapshot
public void updateFromSnapshot(FIXFieldList message)
- Specified by:
updateFromSnapshot
in interface UpdatableOrderBook
updateFromIncrement
public void updateFromIncrement(FIXFieldList entry)
- Specified by:
updateFromIncrement
in interface UpdatableOrderBook
reset
public void reset()
- Specified by:
reset
in interface UpdatableOrderBook
onRecoveryStarted
public void onRecoveryStarted()
- Specified by:
onRecoveryStarted
in interface UpdatableOrderBook
onRecoveryStopped
public void onRecoveryStopped()
- Specified by:
onRecoveryStopped
in interface UpdatableOrderBook
Copyright © 2000-2014 EPAM Systems. All Rights Reserved.