Derivation
is performed (its recalculateDerivedFields() method is run) it extracts the appropriate values
from the trade data that are required to perform the derivation and appends new derived values into that trading data object.
The input to one Derivation may depend upon the output of another Derivation.
When Derivations are added to the manager it examines these dependencies and when the #recalculateDerivedFields method
is invoked ensures all derivations are executed in the correct order.
Attributes | Name and Description |
---|---|
|
caplin.trading.derivation.DerivationManager()
|
Attributes | Name and Description |
---|---|
|
void
addDerivation(caplin.trading.derivation.Derivation oDerivation)
Adds a Derivation to be executed. |
|
void
recalculateDerivedFields(caplin.trading.trademodel.DataHolder oTradeDataHolder)
Recalculates the derived fields for all the derivations held within the |
►
caplin.trading.derivation.DerivationManager()
►
void
addDerivation(caplin.trading.derivation.Derivation oDerivation)
Adds a Derivation to be executed.
caplin.trading.derivation.Derivation | oDerivation | The derivation to add. |
►
void
recalculateDerivedFields(caplin.trading.trademodel.DataHolder oTradeDataHolder)
Recalculates the derived fields for all the derivations held within the DerivationManager
, given the new
trade data.
caplin.trading.trademodel.DataHolder | oTradeDataHolder | The data to be augmented by the set of managed Derivations. |