Interface
caplin.trading.trademodel

TradeFactoryListener

classes implementing TradeFactoryListener are informed whenever a trade factory creates a trade.

Constructor Summary

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

The super constructor of implementors of TradeFactoryListener.

Method Summary

Attributes Name and Description
void tradeCreated(caplin.trading.trademodel.TradeFactory oTradeFactory, caplin.trading.trademodel.Trade oTrade)

Notifies the listener that a trade has been created using the given factory.

void tradeRemoved(caplin.trading.trademodel.Trade oTrade, String sTradeID)

Notifies the listener that a trade has been removed.

Constructor Detail

caplin.trading.trademodel.TradeFactoryListener()

The super constructor of implementors of TradeFactoryListener.

Method Detail

void tradeCreated(caplin.trading.trademodel.TradeFactory oTradeFactory, caplin.trading.trademodel.Trade oTrade)

Notifies the listener that a trade has been created using the given factory.

Parameters
caplin.trading.trademodel.TradeFactory oTradeFactory The trade factory used to create the trade.
caplin.trading.trademodel.Trade oTrade The newly created trade.

void tradeRemoved(caplin.trading.trademodel.Trade oTrade, String sTradeID)

Notifies the listener that a trade has been removed.

Parameters
caplin.trading.trademodel.Trade oTrade The removed trade.
String sTradeID The Id for oTrade