com.teraspaces.qwfix.ordermanager
Class FIXOrderManagerSettings

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

public final class FIXOrderManagerSettings
extends Object

Represents a group of configurable settings of an "Order Manager" associated with an instance of FIXEngine.


Constructor Summary
FIXOrderManagerSettings()
          Instantiates a new fIX order manager settings.
 
Method Summary
 void addSessionSettings(FIXSessionOrderManagerSettings settings)
          Adds a session order manager settings.
static FIXOrderManagerSettings fromXml(Element e, FIXEngineSettings engineSettings, com.teraspaces.visuallambda.VisualLambdaModuleFactory loader)
          Deserializes the FIXOrderManagerSettings from an XML Element.
 List<FIXSessionOrderManagerSettings> getSessionSettings()
          Gets the list of all session order manager settings associated with the engine.
 FIXSessionOrderManagerSettings getSessionSettings(FIXSession session)
          Gets the session order manager settings.
 FIXSessionOrderManagerSettings getSessionSettings(String sessionName, FIXSessionDirection sessionDirection)
          Gets the session order manager settings.
 void removeSessionSettings(String sessionName, FIXSessionDirection sessionDirection)
          Removes the session settings.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FIXOrderManagerSettings

public FIXOrderManagerSettings()
Instantiates a new fIX order manager settings.

Method Detail

addSessionSettings

public void addSessionSettings(FIXSessionOrderManagerSettings settings)
Adds a session order manager settings.

Parameters:
settings - the settings

getSessionSettings

public FIXSessionOrderManagerSettings getSessionSettings(String sessionName,
                                                         FIXSessionDirection sessionDirection)
Gets the session order manager settings.

Parameters:
sessionName - the session name
sessionDirection - the session direction
Returns:
an instance of FIXSessionOrderManagerSettings if the settings exist; otherwise null

getSessionSettings

public FIXSessionOrderManagerSettings getSessionSettings(FIXSession session)
Gets the session order manager settings.

Parameters:
session - the session
Returns:
an instance of FIXSessionOrderManagerSettings if the settings exist; otherwise null

removeSessionSettings

public void removeSessionSettings(String sessionName,
                                  FIXSessionDirection sessionDirection)
Removes the session settings.

Parameters:
sessionName - the session name
sessionDirection - the session direction

fromXml

public static FIXOrderManagerSettings fromXml(Element e,
                                              FIXEngineSettings engineSettings,
                                              com.teraspaces.visuallambda.VisualLambdaModuleFactory loader)
Deserializes the FIXOrderManagerSettings from an XML Element.

Parameters:
e - the XML element
engineSettings - the engine settings
loader - the loader
Returns:
the fIX order manager settings

getSessionSettings

public List<FIXSessionOrderManagerSettings> getSessionSettings()
Gets the list of all session order manager settings associated with the engine.

Returns:
the list of session settings