#include <ored/configuration/volatilityconfig.hpp>
Public Member Functions | |
VolatilityCurveConfig (MarketDatum::QuoteType quoteType=MarketDatum::QuoteType::RATE_LNVOL, QuantLib::Exercise::Type exerciseType=QuantLib::Exercise::Type::European, bool enforceMontoneVariance=true, std::string calendarStr=std::string(), QuantLib::Natural priority=0) | |
Default constructor. More... | |
VolatilityCurveConfig (const std::vector< std::string > "es, const std::string &interpolation, const std::string &extrapolation, MarketDatum::QuoteType quoteType=MarketDatum::QuoteType::RATE_LNVOL, QuantLib::Exercise::Type exerciseType=QuantLib::Exercise::Type::European, bool enforceMontoneVariance=true, std::string calendarStr=std::string(), QuantLib::Natural priority=0) | |
Explicit constructor. More... | |
Inspectors | |
const std::vector< std::string > & | quotes () const |
const std::string & | interpolation () const |
const std::string & | extrapolation () const |
bool | enforceMontoneVariance () const |
Public Member Functions inherited from QuoteBasedVolatilityConfig | |
QuoteBasedVolatilityConfig (MarketDatum::QuoteType quoteType=MarketDatum::QuoteType::RATE_LNVOL, QuantLib::Exercise::Type exerciseType=QuantLib::Exercise::Type::European, std::string calendarStr=std::string(), QuantLib::Natural priority=0) | |
Default constructor. More... | |
const MarketDatum::QuoteType & | quoteType () const |
const QuantLib::Exercise::Type & | exerciseType () const |
void | fromBaseNode (ore::data::XMLNode *node) |
void | toBaseNode (ore::data::XMLDocument &doc, ore::data::XMLNode *node) const |
Public Member Functions inherited from VolatilityConfig | |
VolatilityConfig (std::string calendarStr=std::string(), QuantLib::Natural priority=0) | |
void | fromXMLNode (ore::data::XMLNode *node) |
void | toXMLNode (XMLDocument &doc, XMLNode *node) const |
QuantLib::Natural | priority () const |
Calendar | calendar () const |
Public Member Functions inherited from XMLSerializable | |
virtual | ~XMLSerializable () |
virtual void | fromXML (XMLNode *node)=0 |
virtual XMLNode * | toXML (XMLDocument &doc) const =0 |
void | fromFile (const std::string &filename) |
void | toFile (const std::string &filename) const |
void | fromXMLString (const std::string &xml) |
Parse from XML string. More... | |
std::string | toXMLString () const |
Parse from XML string. More... | |
Serialisation | |
std::vector< std::string > | quotes_ |
std::string | interpolation_ |
std::string | extrapolation_ |
bool | enforceMontoneVariance_ |
void | fromXML (ore::data::XMLNode *node) override |
ore::data::XMLNode * | toXML (ore::data::XMLDocument &doc) const override |
Volatility configuration for a 1-D volatility curve
Definition at line 163 of file volatilityconfig.hpp.
VolatilityCurveConfig | ( | MarketDatum::QuoteType | quoteType = MarketDatum::QuoteType::RATE_LNVOL , |
QuantLib::Exercise::Type | exerciseType = QuantLib::Exercise::Type::European , |
||
bool | enforceMontoneVariance = true , |
||
std::string | calendarStr = std::string() , |
||
QuantLib::Natural | priority = 0 |
||
) |
Default constructor.
VolatilityCurveConfig | ( | const std::vector< std::string > & | quotes, |
const std::string & | interpolation, | ||
const std::string & | extrapolation, | ||
MarketDatum::QuoteType | quoteType = MarketDatum::QuoteType::RATE_LNVOL , |
||
QuantLib::Exercise::Type | exerciseType = QuantLib::Exercise::Type::European , |
||
bool | enforceMontoneVariance = true , |
||
std::string | calendarStr = std::string() , |
||
QuantLib::Natural | priority = 0 |
||
) |
Explicit constructor.
const vector< string > & quotes | ( | ) | const |
Definition at line 181 of file volatilityconfig.cpp.
const string & interpolation | ( | ) | const |
Definition at line 183 of file volatilityconfig.cpp.
const string & extrapolation | ( | ) | const |
Definition at line 185 of file volatilityconfig.cpp.
bool enforceMontoneVariance | ( | ) | const |
Definition at line 187 of file volatilityconfig.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 189 of file volatilityconfig.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 201 of file volatilityconfig.cpp.
|
private |
Definition at line 194 of file volatilityconfig.hpp.
|
private |
Definition at line 195 of file volatilityconfig.hpp.
|
private |
Definition at line 196 of file volatilityconfig.hpp.
|
private |
Definition at line 197 of file volatilityconfig.hpp.