Class
caplin.trading.trademodel

StructureChangedEvent

A StructureChangedEvent is created dispatched to indicate that the structure of a trade has changed.

Constructor Summary

Attributes Name and Description
caplin.trading.trademodel.StructureChangedEvent(caplin.trading.trademodel.TradeLeg oLeg, caplin.trading.trademodel.StructureChangedType nStructureChangedType, caplin.trading.statemachine.TransitionSource sEventSource)

The constructor for a StructureChangedEvent.

Method Summary

Attributes Name and Description
caplin.trading.trademodel.TradeLeg getLeg()

Get the trade let that has either been added or removed and caused the event.

caplin.trading.statemachine.TransitionSource getSource()

Gets the source of the event that caused the structure change.

caplin.trading.trademodel.StructureChangedType getType()

Gets the type of structure event that has occurred.

Constructor Detail

caplin.trading.trademodel.StructureChangedEvent(caplin.trading.trademodel.TradeLeg oLeg, caplin.trading.trademodel.StructureChangedType nStructureChangedType, caplin.trading.statemachine.TransitionSource sEventSource)

The constructor for a StructureChangedEvent.

Parameters
caplin.trading.trademodel.TradeLeg oLeg The leg that has been added or removed.
caplin.trading.trademodel.StructureChangedType nStructureChangedType The type of structure change that has occurred.
caplin.trading.statemachine.TransitionSource sEventSource The source of the transition that has caused the structure change.

Method Detail

caplin.trading.trademodel.TradeLeg getLeg()

Get the trade let that has either been added or removed and caused the event.

Returns
The trade leg.

caplin.trading.statemachine.TransitionSource getSource()

Gets the source of the event that caused the structure change.

Returns
the source of the event

caplin.trading.trademodel.StructureChangedType getType()

Gets the type of structure event that has occurred. Either an add or a remove.

Returns
the structure change type