Builder for a COM model component. More...
#include <ored/model/commodityschwartzmodelbuilder.hpp>
Public Member Functions | |
CommoditySchwartzModelBuilder (const QuantLib::ext::shared_ptr< ore::data::Market > &market, const QuantLib::ext::shared_ptr< CommoditySchwartzData > &data, const QuantLib::Currency &baseCcy, const std::string &configuration=Market::defaultConfiguration, const std::string &referenceCalibrationGrid="") | |
Constructor. More... | |
Real | error () const |
Return calibration error. More... | |
Inspectors | |
std::string | name () |
QuantLib::ext::shared_ptr< QuantExt::CommoditySchwartzParametrization > | parametrization () const |
QuantLib::ext::shared_ptr< QuantExt::CommoditySchwartzModel > | model () 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< CommoditySchwartzData > | data_ |
const std::string | referenceCalibrationGrid_ |
const QuantLib::Currency | baseCcy_ |
Real | error_ |
QuantLib::ext::shared_ptr< QuantExt::CommoditySchwartzParametrization > | parametrization_ |
QuantLib::ext::shared_ptr< QuantExt::CommoditySchwartzModel > | model_ |
std::vector< bool > | optionActive_ |
std::vector< QuantLib::ext::shared_ptr< BlackCalibrationHelper > > | optionBasket_ |
Array | optionExpiries_ |
Handle< Quote > | fxSpot_ |
Handle< QuantExt::PriceTermStructure > | curve_ |
Handle< BlackVolTermStructure > | vol_ |
std::vector< QuantLib::Real > | volCache_ |
bool | forceCalibration_ = false |
QuantLib::ext::shared_ptr< QuantExt::MarketObserver > | marketObserver_ |
std::vector< Real > | calibrationErrors_ |
Array | params_ |
void | forceRecalculate () override |
bool | requiresRecalibration () const override |
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 COM model component.
This class is a utility to turn a COM model component's description into a COM model parametrization which can be used to ultimately instantiate a CrossAssetModel. h
Definition at line 49 of file commodityschwartzmodelbuilder.hpp.
CommoditySchwartzModelBuilder | ( | const QuantLib::ext::shared_ptr< ore::data::Market > & | market, |
const QuantLib::ext::shared_ptr< CommoditySchwartzData > & | data, | ||
const QuantLib::Currency & | baseCcy, | ||
const std::string & | configuration = Market::defaultConfiguration , |
||
const std::string & | referenceCalibrationGrid = "" |
||
) |
Constructor.
market | Market object |
data | EQ model parameters/description |
baseCcy | base currency for calibration |
configuration | Market configuration to use |
referenceCalibrationGrid | the reference calibration grid |
Definition at line 40 of file commodityschwartzmodelbuilder.cpp.
Real error | ( | ) | const |
Return calibration error.
Definition at line 87 of file commodityschwartzmodelbuilder.cpp.
std::string name | ( | ) |
Definition at line 68 of file commodityschwartzmodelbuilder.hpp.
QuantLib::ext::shared_ptr< QuantExt::CommoditySchwartzParametrization > parametrization | ( | ) | const |
Definition at line 92 of file commodityschwartzmodelbuilder.cpp.
QuantLib::ext::shared_ptr< QuantExt::CommoditySchwartzModel > model | ( | ) | const |
Definition at line 82 of file commodityschwartzmodelbuilder.cpp.
std::vector< QuantLib::ext::shared_ptr< BlackCalibrationHelper > > optionBasket | ( | ) | const |
Definition at line 96 of file commodityschwartzmodelbuilder.cpp.
|
overridevirtual |
Reimplemented from ModelBuilder.
Definition at line 269 of file commodityschwartzmodelbuilder.cpp.
|
overridevirtual |
Implements ModelBuilder.
Definition at line 101 of file commodityschwartzmodelbuilder.cpp.
|
overrideprivate |
Definition at line 106 of file commodityschwartzmodelbuilder.cpp.
|
private |
Definition at line 175 of file commodityschwartzmodelbuilder.cpp.
|
private |
Definition at line 188 of file commodityschwartzmodelbuilder.cpp.
|
private |
Definition at line 221 of file commodityschwartzmodelbuilder.cpp.
Definition at line 199 of file commodityschwartzmodelbuilder.cpp.
|
private |
Definition at line 89 of file commodityschwartzmodelbuilder.hpp.
|
private |
Definition at line 90 of file commodityschwartzmodelbuilder.hpp.
|
private |
Definition at line 91 of file commodityschwartzmodelbuilder.hpp.
|
private |
Definition at line 92 of file commodityschwartzmodelbuilder.hpp.
|
private |
Definition at line 93 of file commodityschwartzmodelbuilder.hpp.
|
mutableprivate |
Definition at line 96 of file commodityschwartzmodelbuilder.hpp.
|
mutableprivate |
Definition at line 97 of file commodityschwartzmodelbuilder.hpp.
|
mutableprivate |
Definition at line 98 of file commodityschwartzmodelbuilder.hpp.
|
mutableprivate |
Definition at line 101 of file commodityschwartzmodelbuilder.hpp.
|
mutableprivate |
Definition at line 102 of file commodityschwartzmodelbuilder.hpp.
|
mutableprivate |
Definition at line 103 of file commodityschwartzmodelbuilder.hpp.
|
private |
Definition at line 106 of file commodityschwartzmodelbuilder.hpp.
|
private |
Definition at line 107 of file commodityschwartzmodelbuilder.hpp.
|
private |
Definition at line 108 of file commodityschwartzmodelbuilder.hpp.
|
mutableprivate |
Definition at line 111 of file commodityschwartzmodelbuilder.hpp.
|
private |
Definition at line 114 of file commodityschwartzmodelbuilder.hpp.
|
private |
Definition at line 117 of file commodityschwartzmodelbuilder.hpp.
|
mutableprivate |
Definition at line 119 of file commodityschwartzmodelbuilder.hpp.
|
mutableprivate |
Definition at line 121 of file commodityschwartzmodelbuilder.hpp.