Class
caplin.trading.derivation

SimpleDerivation

Adds a value into a single output field. Input may be either a constant value OR a field.

Constructor Summary

Attributes Name and Description
caplin.trading.derivation.SimpleDerivation(String sOutputFieldName)

Method Summary

Attributes Name and Description
void addPrecondition(String sFieldName, String sExpectedValue)

Adds a precondition that must verified before the derived field can be calculated.

void recalculateDerivedFields(caplin.trading.trademodel.DataHolder oData)

Copies the value in the named input field to that in the named output field.

void setInputFieldName(String sFieldName)

Sets a required input field for this derivation

void setOutputValue(String sOutputValue)

Sets the output value (constant), to be used if no input field is defined.

Methods inherited from class caplin.trading.derivation.Derivation:
getDerivedFields, getInputFields

Constructor Detail

caplin.trading.derivation.SimpleDerivation(String sOutputFieldName)

Parameters
String sOutputFieldName the name of the field to use when adding the derived data.

Method Detail

void addPrecondition(String sFieldName, String sExpectedValue)

Adds a precondition that must verified before the derived field can be calculated.

Parameters
String sFieldName the field name to check
String sExpectedValue the expected field value

void recalculateDerivedFields(caplin.trading.trademodel.DataHolder oData)

Copies the value in the named input field to that in the named output field.

Parameters
caplin.trading.trademodel.DataHolder oData Data that is augmented by this derivation. Mandatory.

void setInputFieldName(String sFieldName)

Sets a required input field for this derivation

Parameters
String sFieldName the input field for this derivation.

void setOutputValue(String sOutputValue)

Sets the output value (constant), to be used if no input field is defined.

Parameters
String sOutputValue output value, to be used if no input field is defined.