public class SystemProcessor extends RowProcessor
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
SystemProcessor(OrderProcessor inProcessor,
BrokerID inBrokerID)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
geBrokerID, getFailedOrders, getNumFailed, getNumSuccess, getTotal, initialize, processOrderpublic 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
public SystemProcessor(OrderProcessor inProcessor, BrokerID inBrokerID)
inProcessor - the order processor.inBrokerID - the broker ID.protected void setHeaders(String[] inHeaders) throws OrderParsingException
RowProcessorsetHeaders 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
RowProcessorparseOrder in class RowProcessorinRow - the supplied row.OrderParsingException - if there were errors parsing theCopyright © 2014. All Rights Reserved.