Class
caplin.trading.trademodel

CaplinTradeService

Constructor Summary

Attributes Name and Description
caplin.trading.trademodel.CaplinTradeService()

Constructs a new TradeService.

Method Summary

Attributes Name and Description
void addListener( oTradeFactoryListener, fFilter)

void addTradeRestoredListener( oTradeRestoredListener)

void getTrades( fFilter)

void registerTradeFactory( mFieldMap, oTradeFactory)

void removeListener( oTradeFactoryListener)

void removeTrade( sRequestID)

void removeTradeRestoredListener( oTradeRestoredListener)

void restoreExistingTrade( oTrade, mFieldMap)

void restoreNewTrade( mFieldMap)

Methods implemented from class caplin.trading.trademodel.TradeFactoryListener:
tradeCreated, tradeRemoved

Constructor Detail

caplin.trading.trademodel.CaplinTradeService()

Constructs a new TradeService. Behaves as both a factory and repository for trades. It delegates creation of trades to individual factories that are registered with this service.

Method Detail

void addListener( oTradeFactoryListener, fFilter)

Parameters
oTradeFactoryListener
fFilter
See
caplin.trading.service.TradeService#addListener

void addTradeRestoredListener( oTradeRestoredListener)

Parameters
oTradeRestoredListener
See
caplin.trading.service.TradeService#addTradeRestoredListener

void getTrades( fFilter)

Parameters
fFilter
See
caplin.trading.service.TradeService#getTrades

void registerTradeFactory( mFieldMap, oTradeFactory)

Parameters
mFieldMap
oTradeFactory
See
caplin.trading.service.TradeService#registerTradeFactory

void removeListener( oTradeFactoryListener)

Parameters
oTradeFactoryListener
See
caplin.trading.service.TradeService#removeListener

void removeTrade( sRequestID)

Parameters
sRequestID
See
caplin.trading.service.TradeService#removeTrade

void removeTradeRestoredListener( oTradeRestoredListener)

Parameters
oTradeRestoredListener
See
caplin.trading.service.TradeService#removeTradeRestoredListener

void restoreExistingTrade( oTrade, mFieldMap)

Parameters
oTrade
mFieldMap
See
caplin.trading.service.TradeService#restoreExistingTrade

void restoreNewTrade( mFieldMap)

Parameters
mFieldMap
See
caplin.trading.service.TradeService#restoreNewTrade