|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.orderloader.RowProcessor
org.marketcetera.orderloader.system.SystemProcessor
public class SystemProcessor
A processor that parses rows into system order messages.
| Field Summary | |
|---|---|
static String |
FIELD_ACCOUNT
The account field header name. |
static String |
FIELD_ORDER_CAPACITY
The Order Capacity field header name. |
static String |
FIELD_ORDER_TYPE
The Order Type field header name. |
static String |
FIELD_POSITION_EFFECT
The Position Effect field header name. |
static String |
FIELD_PRICE
The Price field header name. |
static String |
FIELD_QUANTITY
The Quantity field header name. |
static String |
FIELD_SIDE
The Side field header name. |
static String |
FIELD_TIME_IN_FORCE
The Time In Force field header name. |
| Constructor Summary | |
|---|---|
SystemProcessor(OrderProcessor inProcessor,
BrokerID inBrokerID)
Creates an instance. |
|
| Method Summary | |
|---|---|
protected Order |
parseOrder(String[] inRow)
Parses the supplied row and creates an order instance from it. |
protected void |
setHeaders(String[] inHeaders)
Implemented by subclasses to initialize themselves with the supplied headers. |
| Methods inherited from class org.marketcetera.orderloader.RowProcessor |
|---|
geBrokerID, getFailedOrders, getNumFailed, getNumSuccess, getTotal, initialize, processOrder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FIELD_ACCOUNT
public static final String FIELD_ORDER_CAPACITY
public static final String FIELD_ORDER_TYPE
public static final String FIELD_POSITION_EFFECT
public static final String FIELD_PRICE
public static final String FIELD_QUANTITY
public static final String FIELD_SIDE
public static final String FIELD_TIME_IN_FORCE
| Constructor Detail |
|---|
public SystemProcessor(OrderProcessor inProcessor,
BrokerID inBrokerID)
inProcessor - the order processor.inBrokerID - the broker ID.| Method Detail |
|---|
protected void setHeaders(String[] inHeaders)
throws OrderParsingException
RowProcessor
setHeaders in class RowProcessorinHeaders - the headers specified in the csv file.
OrderParsingException - if there were errors with the supplied
headers.
protected Order parseOrder(String[] inRow)
throws OrderParsingException
RowProcessor
parseOrder in class RowProcessorinRow - the supplied row.
OrderParsingException - if there were errors parsing the
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||