Builder for a Lognormal FX model component. More...
#include <ored/model/fxbsbuilder.hpp>
Public Member Functions | |
FxBsBuilder (const QuantLib::ext::shared_ptr< ore::data::Market > &market, const QuantLib::ext::shared_ptr< FxBsData > &data, const std::string &configuration=Market::defaultConfiguration, const std::string &referenceCalibrationGrid="") | |
Constructor. More... | |
Real | error () const |
Return calibration error. More... | |
Inspectors | |
std::string | foreignCurrency () |
QuantLib::ext::shared_ptr< QuantExt::FxBsParametrization > | parametrization () const |
std::vector< QuantLib::ext::shared_ptr< BlackCalibrationHelper > > | optionBasket () const |
Public Member Functions inherited from ModelBuilder | |
void | recalibrate () const |
virtual void | forceRecalculate () |
virtual bool | requiresRecalibration () const=0 |
ModelBuilder interface | |
const QuantLib::ext::shared_ptr< ore::data::Market > | market_ |
const std::string | configuration_ |
const QuantLib::ext::shared_ptr< FxBsData > | data_ |
const std::string | referenceCalibrationGrid_ |
Real | error_ |
QuantLib::ext::shared_ptr< QuantExt::FxBsParametrization > | parametrization_ |
std::vector< bool > | optionActive_ |
std::vector< QuantLib::ext::shared_ptr< BlackCalibrationHelper > > | optionBasket_ |
Array | optionExpiries_ |
Handle< Quote > | fxSpot_ |
Handle< YieldTermStructure > | ytsDom_ |
Handle< YieldTermStructure > | ytsFor_ |
Handle< BlackVolTermStructure > | fxVol_ |
std::vector< QuantLib::Real > | fxVolCache_ |
bool | forceCalibration_ = false |
QuantLib::ext::shared_ptr< QuantExt::MarketObserver > | marketObserver_ |
void | forceRecalculate () override |
bool | requiresRecalibration () const override |
void | setCalibrationDone () const |
void | performCalculations () const override |
Real | optionStrike (const Size j) const |
Date | optionExpiry (const Size j) const |
void | buildOptionBasket () const |
bool | volSurfaceChanged (const bool updateCache) const |
Builder for a Lognormal FX model component.
This class is a utility to turn an FX model component's description into an FX model parametrization which can be used to ultimately instantiate a CrossAssetModel.
Definition at line 48 of file fxbsbuilder.hpp.
FxBsBuilder | ( | const QuantLib::ext::shared_ptr< ore::data::Market > & | market, |
const QuantLib::ext::shared_ptr< FxBsData > & | data, | ||
const std::string & | configuration = Market::defaultConfiguration , |
||
const std::string & | referenceCalibrationGrid = "" |
||
) |
Constructor.
market | Market object |
data | FX model parameters/description |
configuration | Market configuration to use |
referenceCalibrationGrid | the reference calibration grid |
Definition at line 41 of file fxbsbuilder.cpp.
Real error | ( | ) | const |
Return calibration error.
Definition at line 107 of file fxbsbuilder.cpp.
std::string foreignCurrency | ( | ) |
Definition at line 65 of file fxbsbuilder.hpp.
QuantLib::ext::shared_ptr< QuantExt::FxBsParametrization > parametrization | ( | ) | const |
Definition at line 112 of file fxbsbuilder.cpp.
std::vector< QuantLib::ext::shared_ptr< BlackCalibrationHelper > > optionBasket | ( | ) | const |
Definition at line 116 of file fxbsbuilder.cpp.
|
overridevirtual |
Reimplemented from ModelBuilder.
Definition at line 237 of file fxbsbuilder.cpp.
|
overridevirtual |
Implements ModelBuilder.
Definition at line 121 of file fxbsbuilder.cpp.
void setCalibrationDone | ( | ) | const |
Definition at line 133 of file fxbsbuilder.cpp.
|
overrideprivate |
Definition at line 126 of file fxbsbuilder.cpp.
|
private |
Definition at line 140 of file fxbsbuilder.cpp.
|
private |
Definition at line 159 of file fxbsbuilder.cpp.
|
private |
Definition at line 192 of file fxbsbuilder.cpp.
Definition at line 170 of file fxbsbuilder.cpp.
|
private |
Definition at line 87 of file fxbsbuilder.hpp.
|
private |
Definition at line 88 of file fxbsbuilder.hpp.
|
private |
Definition at line 89 of file fxbsbuilder.hpp.
|
private |
Definition at line 90 of file fxbsbuilder.hpp.
|
mutableprivate |
Definition at line 93 of file fxbsbuilder.hpp.
|
private |
Definition at line 94 of file fxbsbuilder.hpp.
|
mutableprivate |
Definition at line 97 of file fxbsbuilder.hpp.
|
mutableprivate |
Definition at line 98 of file fxbsbuilder.hpp.
|
mutableprivate |
Definition at line 99 of file fxbsbuilder.hpp.
|
private |
Definition at line 102 of file fxbsbuilder.hpp.
|
private |
Definition at line 103 of file fxbsbuilder.hpp.
|
private |
Definition at line 103 of file fxbsbuilder.hpp.
|
private |
Definition at line 104 of file fxbsbuilder.hpp.
|
mutableprivate |
Definition at line 107 of file fxbsbuilder.hpp.
|
private |
Definition at line 110 of file fxbsbuilder.hpp.
|
private |
Definition at line 113 of file fxbsbuilder.hpp.