com.teraspaces.qwfix.ordermanager
Class FIXOrderManagerUtility

java.lang.Object
  extended by com.teraspaces.qwfix.ordermanager.FIXOrderManagerUtility

public final class FIXOrderManagerUtility
extends Object

Defines some helper functions used by QWOrderManager.


Constructor Summary
FIXOrderManagerUtility()
           
 
Method Summary
static FIXCrossOrder getCrossOrderByCrossID(FIXMessage message)
          Gets the cross order by CrossID in the specified message.
static FIXCrossOrder getCrossOrderByOrigCrossID(FIXMessage message)
          Gets the cross order by OrigCrossID in the specified message.
static FIXListOrder getListOrderByListID(FIXMessage message)
          Gets the list order by ListID in the specified message.
static FIXMessageComponent getOrderMessageComponentByClOrdID(FIXMessage message)
          Gets the order message component (an instance of a FIXMessage or a FIXMessageRepeatingInstance) by ClOrdID in the specified message.
static FIXMessageComponent getOrderMessageComponentByOrigClOrdID(FIXMessage message)
          Gets the order message component (an instance of a FIXMessage or a FIXMessageRepeatingInstance) by OrigClOrdID in the specified message.
static FIXRegularOrder getRegularOrderByClOrdID(FIXMessage message)
          Gets the regular order by ClOrdID in the specified message.
static FIXRegularOrder getRegularOrderByOrigClOrdID(FIXMessage message)
          Gets the regular order by OrigClOrdID in the specified message.
static String packNumber(int number)
          Packs the number into a shorter string.
static int unpackNumber(String s)
          Unpacks the number from a string encoded using packNumber(int) method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FIXOrderManagerUtility

public FIXOrderManagerUtility()
Method Detail

packNumber

public static String packNumber(int number)
Packs the number into a shorter string.

This method used a default instance of NumberPacker with NumberPacker.DefaultTable.

Parameters:
number - the number
Returns:
the packed string that represents the number

unpackNumber

public static int unpackNumber(String s)
Unpacks the number from a string encoded using packNumber(int) method.

This method used a default instance of NumberPacker with NumberPacker.DefaultTable.

Parameters:
s - the input string
Returns:
the number unpacked from the string

getRegularOrderByClOrdID

public static FIXRegularOrder getRegularOrderByClOrdID(FIXMessage message)
Gets the regular order by ClOrdID in the specified message.

This method is used in Visual Lambda modules, under "FIX OrderManager Operations" group in Visual Lambda editor.

Parameters:
message - the message
Returns:
the order; or null if the order is not found

getRegularOrderByOrigClOrdID

public static FIXRegularOrder getRegularOrderByOrigClOrdID(FIXMessage message)
Gets the regular order by OrigClOrdID in the specified message.

This method is used in Visual Lambda modules, under "FIX OrderManager Operations" group in Visual Lambda editor.

Parameters:
message - the message
Returns:
the order; or null if the order is not found

getCrossOrderByCrossID

public static FIXCrossOrder getCrossOrderByCrossID(FIXMessage message)
Gets the cross order by CrossID in the specified message.

This method is used in Visual Lambda modules, under "FIX OrderManager Operations" group in Visual Lambda editor.

Parameters:
message - the FIX message
Returns:
the order; or null if the order is not found

getCrossOrderByOrigCrossID

public static FIXCrossOrder getCrossOrderByOrigCrossID(FIXMessage message)
Gets the cross order by OrigCrossID in the specified message.

This method is used in Visual Lambda modules, under "FIX OrderManager Operations" group in Visual Lambda editor.

Parameters:
message - the message
Returns:
the order; or null if the order is not found

getListOrderByListID

public static FIXListOrder getListOrderByListID(FIXMessage message)
Gets the list order by ListID in the specified message.

This method is used in Visual Lambda modules, under "FIX OrderManager Operations" group in Visual Lambda editor.

Parameters:
message - the message
Returns:
the order; or null if the order is not found

getOrderMessageComponentByClOrdID

public static FIXMessageComponent getOrderMessageComponentByClOrdID(FIXMessage message)
Gets the order message component (an instance of a FIXMessage or a FIXMessageRepeatingInstance) by ClOrdID in the specified message.

This method is used in Visual Lambda modules, under "FIX OrderManager Operations" group in Visual Lambda editor.

Parameters:
message - the message
Returns:
the instance of FIXMessageComponent; or null if not found

getOrderMessageComponentByOrigClOrdID

public static FIXMessageComponent getOrderMessageComponentByOrigClOrdID(FIXMessage message)
Gets the order message component (an instance of a FIXMessage or a FIXMessageRepeatingInstance) by OrigClOrdID in the specified message.

This method is used in Visual Lambda modules, under "FIX OrderManager Operations" group in Visual Lambda editor.

Parameters:
message - the message
Returns:
the instance of FIXMessageComponent; or null if not found