com.wombat.mamda.orderbook
public class MamdaOrderBookEntry extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static char |
ACTION_ADD
An enumeration for book entry actions.
|
static char |
ACTION_DELETE
An updated entry.
|
static char |
ACTION_UNKNOWN
A deleted entry.
|
static char |
ACTION_UPDATE
A new entry.
|
Constructor and Description |
---|
MamdaOrderBookEntry() |
MamdaOrderBookEntry(MamdaOrderBookEntry copy)
Copy an order book entry object which is a shallow copy of
the original.
|
MamdaOrderBookEntry(java.lang.String entryId,
double entrySize,
char action,
com.wombat.mama.MamaDateTime eventTime,
com.wombat.mama.MamaSourceDerivative source) |
Modifier and Type | Method and Description |
---|---|
void |
assertEqual(MamdaOrderBookEntry rhs)
Order book entry equality verification.
|
void |
copy(MamdaOrderBookEntry copy)
Copy an order book entry object which is an exact and deep copy of
the original.
|
boolean |
equalId(java.lang.String id)
Whether the id of the entry is equal to the id passed to the method.
|
boolean |
equals(java.lang.Object obj) |
char |
getAction()
Whether to ADD, UPDATE or DELETE the entry.
|
boolean |
getCheckSourceState()
Get whether this order book wants to check the source state.
|
java.lang.Object |
getClosure()
Get the order book entry closure handle.
|
java.lang.String |
getId()
If supported, Order book entry ID (order ID, participant ID,
etc.)
|
MamdaOrderBookEntryManager |
getManager()
Get the MamdaOrderBookEntryManager object to which this entry
belongs.
|
MamdaOrderBook |
getOrderBook()
Get the order book for this entry, if possible.
|
int |
getPosition(int maxPos)
Get the position in the order book for this entry.
|
double |
getPrice()
Get the price for this entry.
|
MamdaOrderBookPriceLevel |
getPriceLevel()
Get the MamdaOrderBookPriceLevel object to which this entry
belongs.
|
short |
getQuality()
Get the entry-level quality factor.
|
char |
getReason()
The reason for the order entry.
|
char |
getSide()
Get the price for this entry.
|
double |
getSize()
The size of the order entry.
|
com.wombat.mama.MamaSource |
getSource()
Return the MamaSource for this book entry.
|
com.wombat.mama.MamaSourceDerivative |
getSourceDerivative()
Return the MamaSourceDerivative for this book entry.
|
int |
getStatus()
Return the status for the entry.
|
java.lang.String |
getSymbol()
Get the symbol for this entry, if possible.
|
com.wombat.mama.MamaDateTime |
getTime()
Time of order book entry update.
|
java.lang.String |
getUniqueId()
If supported, Order book entry unique ID (order ID, participant ID,
etc.).
|
int |
hashCode() |
boolean |
isVisible() |
void |
setAction(char action) |
void |
setClosure(java.lang.Object closure)
Set the order book entry closure handle.
|
void |
setDetails(MamdaBookAtomicLevelEntry copy) |
void |
setDetails(MamdaOrderBookEntry copy) |
void |
setId(java.lang.String id) |
void |
setManager(MamdaOrderBookEntryManager manager)
Set the MamdaOrderBookEntryManager object to which this entry belongs.
|
void |
setPriceLevel(MamdaOrderBookPriceLevel priceLevel)
Set the MamdaOrderBookPriceLevel object to which this entry belongs.
|
void |
setQuality(short quality)
Set the entry-level quality factor.
|
void |
setReason(char reason) |
void |
setSize(double size) |
void |
setSourceDerivative(com.wombat.mama.MamaSourceDerivative source)
Set the MamaSourceDerivative for this book entry.
|
void |
setStatus(int value)
Set the status for the entry.
|
static void |
setStrictChecking(boolean strict)
Enforce strict checking of order book modifications (at the
expense of some performance).
|
void |
setTime(com.wombat.mama.MamaDateTime time) |
void |
setUniqueId(java.lang.String uniqueId) |
public static final char ACTION_ADD
public static final char ACTION_UPDATE
public static final char ACTION_DELETE
public static final char ACTION_UNKNOWN
public MamdaOrderBookEntry()
public MamdaOrderBookEntry(MamdaOrderBookEntry copy)
copy
- The MamdaOrderBookEntry to copy.public MamdaOrderBookEntry(java.lang.String entryId, double entrySize, char action, com.wombat.mama.MamaDateTime eventTime, com.wombat.mama.MamaSourceDerivative source)
public void copy(MamdaOrderBookEntry copy)
copy
- The MamdaOrderBookEntry to copy.public void setId(java.lang.String id)
public void setSize(double size)
public void setAction(char action)
public void setReason(char reason)
public void setTime(com.wombat.mama.MamaDateTime time)
public void setDetails(MamdaOrderBookEntry copy)
public void setDetails(MamdaBookAtomicLevelEntry copy)
public java.lang.String getId()
public java.lang.String getUniqueId()
public double getSize()
public char getAction()
public char getReason()
public com.wombat.mama.MamaDateTime getTime()
public void setStatus(int value)
public int getStatus()
public double getPrice()
public char getSide()
public int getPosition(int maxPos)
maxPos
- The maximum position to return;public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void setPriceLevel(MamdaOrderBookPriceLevel priceLevel)
priceLevel
- The price level to be associated with.public MamdaOrderBookPriceLevel getPriceLevel()
public MamdaOrderBook getOrderBook()
public void setManager(MamdaOrderBookEntryManager manager)
manager
- The manager.public MamdaOrderBookEntryManager getManager()
public java.lang.String getSymbol()
public void setSourceDerivative(com.wombat.mama.MamaSourceDerivative source)
source
- The MAMA source derivative.public com.wombat.mama.MamaSourceDerivative getSourceDerivative()
public com.wombat.mama.MamaSource getSource()
public boolean getCheckSourceState()
public void setQuality(short quality)
quality
- The new entry-level MAMA quality level.public short getQuality()
public boolean isVisible()
public void setClosure(java.lang.Object closure)
closure
- The closure.public java.lang.Object getClosure()
public void assertEqual(MamdaOrderBookEntry rhs)
public boolean equalId(java.lang.String id)
id
- The id to compare to the order entry id.public static void setStrictChecking(boolean strict)
public void setUniqueId(java.lang.String uniqueId)
Copyright 2007 Wombat Financial Software, Inc.