Commodity volatility configuration. More...
#include <ored/configuration/commodityvolcurveconfig.hpp>
Public Member Functions | |
CommodityVolatilityConfig () | |
Default constructor. More... | |
CommodityVolatilityConfig (const std::string &curveId, const std::string &curveDescription, const std::string ¤cy, const std::vector< QuantLib::ext::shared_ptr< VolatilityConfig > > &volatilityConfig, const std::string &dayCounter="A365", const std::string &calendar="NullCalendar", const std::string &futureConventionsId="", QuantLib::Natural optionExpiryRollDays=0, const std::string &priceCurveId="", const std::string &yieldCurveId="", const std::string "eSuffix="", const OneDimSolverConfig &solverConfig=OneDimSolverConfig(), const boost::optional< bool > &preferOutOfTheMoney=boost::none) | |
Explicit constructor. More... | |
Inspectors | |
const std::string & | currency () const |
const std::vector< QuantLib::ext::shared_ptr< VolatilityConfig > > & | volatilityConfig () const |
const std::string & | dayCounter () const |
const std::string & | calendar () const |
const std::string & | futureConventionsId () const |
QuantLib::Natural | optionExpiryRollDays () const |
const std::string & | priceCurveId () const |
const std::string & | yieldCurveId () const |
const std::string & | quoteSuffix () const |
OneDimSolverConfig | solverConfig () const |
const boost::optional< bool > & | preferOutOfTheMoney () const |
const ReportConfig & | reportConfig () const |
Public Member Functions inherited from CurveConfig | |
CurveConfig (const string &curveID, const string &curveDescription, const vector< string > "es=vector< string >()) | |
Detailed constructor. More... | |
CurveConfig () | |
Default constructor. More... | |
const string & | curveID () const |
const string & | curveDescription () const |
const set< string > & | requiredCurveIds (const CurveSpec::CurveType &curveType) const |
const map< CurveSpec::CurveType, set< string > > & | requiredCurveIds () const |
string & | curveID () |
string & | curveDescription () |
set< string > & | requiredCurveIds (const CurveSpec::CurveType &curveType) |
map< CurveSpec::CurveType, set< string > > & | requiredCurveIds () |
virtual const vector< string > & | quotes () |
Return all the market quotes required for this config. More... | |
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::string | currency_ |
std::vector< QuantLib::ext::shared_ptr< VolatilityConfig > > | volatilityConfig_ |
std::string | dayCounter_ |
std::string | calendar_ |
std::string | futureConventionsId_ |
QuantLib::Natural | optionExpiryRollDays_ |
std::string | priceCurveId_ |
std::string | yieldCurveId_ |
std::string | quoteSuffix_ |
OneDimSolverConfig | solverConfig_ |
boost::optional< bool > | preferOutOfTheMoney_ |
ReportConfig | reportConfig_ |
void | fromXML (XMLNode *node) override |
ore::data::XMLNode * | toXML (ore::data::XMLDocument &doc) const override |
void | populateRequiredCurveIds () |
void | populateQuotes () |
Populate CurveConfig::quotes_ with the required quotes. More... | |
static OneDimSolverConfig | defaultSolverConfig () |
Additional Inherited Members | |
Protected Attributes inherited from CurveConfig | |
string | curveID_ |
string | curveDescription_ |
vector< string > | quotes_ |
map< CurveSpec::CurveType, set< string > > | requiredCurveIds_ |
Commodity volatility configuration.
Definition at line 38 of file commodityvolcurveconfig.hpp.
Default constructor.
Definition at line 31 of file commodityvolcurveconfig.cpp.
CommodityVolatilityConfig | ( | const std::string & | curveId, |
const std::string & | curveDescription, | ||
const std::string & | currency, | ||
const std::vector< QuantLib::ext::shared_ptr< VolatilityConfig > > & | volatilityConfig, | ||
const std::string & | dayCounter = "A365" , |
||
const std::string & | calendar = "NullCalendar" , |
||
const std::string & | futureConventionsId = "" , |
||
QuantLib::Natural | optionExpiryRollDays = 0 , |
||
const std::string & | priceCurveId = "" , |
||
const std::string & | yieldCurveId = "" , |
||
const std::string & | quoteSuffix = "" , |
||
const OneDimSolverConfig & | solverConfig = OneDimSolverConfig() , |
||
const boost::optional< bool > & | preferOutOfTheMoney = boost::none |
||
) |
Explicit constructor.
Definition at line 34 of file commodityvolcurveconfig.cpp.
const string & currency | ( | ) | const |
Definition at line 69 of file commodityvolcurveconfig.cpp.
const vector< QuantLib::ext::shared_ptr< VolatilityConfig > > & volatilityConfig | ( | ) | const |
Definition at line 73 of file commodityvolcurveconfig.cpp.
const string & dayCounter | ( | ) | const |
Definition at line 71 of file commodityvolcurveconfig.cpp.
const string & calendar | ( | ) | const |
Definition at line 77 of file commodityvolcurveconfig.cpp.
const string & futureConventionsId | ( | ) | const |
Definition at line 79 of file commodityvolcurveconfig.cpp.
Natural optionExpiryRollDays | ( | ) | const |
Definition at line 81 of file commodityvolcurveconfig.cpp.
const string & priceCurveId | ( | ) | const |
Definition at line 83 of file commodityvolcurveconfig.cpp.
const string & yieldCurveId | ( | ) | const |
Definition at line 85 of file commodityvolcurveconfig.cpp.
const string & quoteSuffix | ( | ) | const |
Definition at line 87 of file commodityvolcurveconfig.cpp.
OneDimSolverConfig solverConfig | ( | ) | const |
Definition at line 93 of file commodityvolcurveconfig.cpp.
const boost::optional< bool > & preferOutOfTheMoney | ( | ) | const |
Definition at line 89 of file commodityvolcurveconfig.cpp.
const ReportConfig & reportConfig | ( | ) | const |
Definition at line 67 of file commodityvolcurveconfig.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 106 of file commodityvolcurveconfig.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 154 of file commodityvolcurveconfig.cpp.
|
private |
Definition at line 48 of file commodityvolcurveconfig.cpp.
|
private |
Populate CurveConfig::quotes_ with the required quotes.
Definition at line 188 of file commodityvolcurveconfig.cpp.
|
staticprivate |
Definition at line 97 of file commodityvolcurveconfig.cpp.
|
private |
Definition at line 79 of file commodityvolcurveconfig.hpp.
|
private |
Definition at line 80 of file commodityvolcurveconfig.hpp.
|
private |
Definition at line 81 of file commodityvolcurveconfig.hpp.
|
private |
Definition at line 82 of file commodityvolcurveconfig.hpp.
|
private |
Definition at line 83 of file commodityvolcurveconfig.hpp.
|
private |
Definition at line 84 of file commodityvolcurveconfig.hpp.
|
private |
Definition at line 85 of file commodityvolcurveconfig.hpp.
|
private |
Definition at line 86 of file commodityvolcurveconfig.hpp.
|
private |
Definition at line 87 of file commodityvolcurveconfig.hpp.
|
private |
Definition at line 88 of file commodityvolcurveconfig.hpp.
|
private |
Definition at line 89 of file commodityvolcurveconfig.hpp.
|
private |
Definition at line 90 of file commodityvolcurveconfig.hpp.