Yield Curve configuration. More...
#include <ored/configuration/yieldcurveconfig.hpp>
Public Member Functions | |
Constructors/Destructors | |
YieldCurveConfig () | |
Default constructor. More... | |
YieldCurveConfig (const string &curveID, const string &curveDescription, const string ¤cy, const string &discountCurveID, const vector< QuantLib::ext::shared_ptr< YieldCurveSegment > > &curveSegments, const string &interpolationVariable="Discount", const string &interpolationMethod="LogLinear", const string &zeroDayCounter="A365", bool extrapolation=true, const BootstrapConfig &bootstrapConfig=BootstrapConfig(), const Size mixedInterpolationCutoff=1) | |
Detailed constructor. More... | |
virtual | ~YieldCurveConfig () |
Default destructor. More... | |
Serialization | |
virtual void | fromXML (XMLNode *node) override |
virtual XMLNode * | toXML (XMLDocument &doc) const override |
Inspectors | |
const string & | currency () const |
const string & | discountCurveID () const |
const vector< QuantLib::ext::shared_ptr< YieldCurveSegment > > & | curveSegments () const |
const string & | interpolationVariable () const |
const string & | interpolationMethod () const |
Size | mixedInterpolationCutoff () const |
const string & | zeroDayCounter () const |
bool | extrapolation () const |
const BootstrapConfig & | bootstrapConfig () 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 () |
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... | |
Setters | |
string | currency_ |
string | discountCurveID_ |
vector< QuantLib::ext::shared_ptr< YieldCurveSegment > > | curveSegments_ |
string | interpolationVariable_ |
string | interpolationMethod_ |
string | zeroDayCounter_ |
bool | extrapolation_ |
BootstrapConfig | bootstrapConfig_ |
Size | mixedInterpolationCutoff_ |
string & | interpolationVariable () |
string & | interpolationMethod () |
Size & | mixedInterpolationCutoff () |
string & | zeroDayCounter () |
bool & | extrapolation () |
void | setBootstrapConfig (const BootstrapConfig &bootstrapConfig) |
const vector< string > & | quotes () override |
Return all the market quotes required for this config. More... | |
void | populateRequiredCurveIds () |
Additional Inherited Members | |
Protected Attributes inherited from CurveConfig | |
string | curveID_ |
string | curveDescription_ |
vector< string > | quotes_ |
map< CurveSpec::CurveType, set< string > > | requiredCurveIds_ |
Yield Curve configuration.
Wrapper class containing all yield curve segments needed to build a yield curve.
Definition at line 648 of file yieldcurveconfig.hpp.
YieldCurveConfig | ( | ) |
YieldCurveConfig | ( | const string & | curveID, |
const string & | curveDescription, | ||
const string & | currency, | ||
const string & | discountCurveID, | ||
const vector< QuantLib::ext::shared_ptr< YieldCurveSegment > > & | curveSegments, | ||
const string & | interpolationVariable = "Discount" , |
||
const string & | interpolationMethod = "LogLinear" , |
||
const string & | zeroDayCounter = "A365" , |
||
bool | extrapolation = true , |
||
const BootstrapConfig & | bootstrapConfig = BootstrapConfig() , |
||
const Size | mixedInterpolationCutoff = 1 |
||
) |
Detailed constructor.
Definition at line 215 of file yieldcurveconfig.cpp.
|
virtual |
|
overridevirtual |
Implements XMLSerializable.
Definition at line 246 of file yieldcurveconfig.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 335 of file yieldcurveconfig.cpp.
const string & currency | ( | ) | const |
Definition at line 673 of file yieldcurveconfig.hpp.
const string & discountCurveID | ( | ) | const |
Definition at line 674 of file yieldcurveconfig.hpp.
const vector< QuantLib::ext::shared_ptr< YieldCurveSegment > > & curveSegments | ( | ) | const |
Definition at line 675 of file yieldcurveconfig.hpp.
const string & interpolationVariable | ( | ) | const |
Definition at line 676 of file yieldcurveconfig.hpp.
const string & interpolationMethod | ( | ) | const |
Definition at line 677 of file yieldcurveconfig.hpp.
Size mixedInterpolationCutoff | ( | ) | const |
Definition at line 678 of file yieldcurveconfig.hpp.
const string & zeroDayCounter | ( | ) | const |
Definition at line 679 of file yieldcurveconfig.hpp.
bool extrapolation | ( | ) | const |
Definition at line 680 of file yieldcurveconfig.hpp.
const BootstrapConfig & bootstrapConfig | ( | ) | const |
string & interpolationVariable | ( | ) |
Definition at line 686 of file yieldcurveconfig.hpp.
string & interpolationMethod | ( | ) |
Definition at line 687 of file yieldcurveconfig.hpp.
Size & mixedInterpolationCutoff | ( | ) |
Definition at line 688 of file yieldcurveconfig.hpp.
string & zeroDayCounter | ( | ) |
Definition at line 689 of file yieldcurveconfig.hpp.
bool & extrapolation | ( | ) |
Definition at line 690 of file yieldcurveconfig.hpp.
void setBootstrapConfig | ( | const BootstrapConfig & | bootstrapConfig | ) |
|
overridevirtual |
Return all the market quotes required for this config.
Reimplemented from CurveConfig.
Definition at line 228 of file yieldcurveconfig.cpp.
|
private |
Definition at line 364 of file yieldcurveconfig.cpp.
|
private |
Definition at line 700 of file yieldcurveconfig.hpp.
|
private |
Definition at line 701 of file yieldcurveconfig.hpp.
|
private |
Definition at line 702 of file yieldcurveconfig.hpp.
|
private |
Definition at line 705 of file yieldcurveconfig.hpp.
|
private |
Definition at line 706 of file yieldcurveconfig.hpp.
|
private |
Definition at line 707 of file yieldcurveconfig.hpp.
|
private |
Definition at line 708 of file yieldcurveconfig.hpp.
|
private |
Definition at line 709 of file yieldcurveconfig.hpp.
|
private |
Definition at line 710 of file yieldcurveconfig.hpp.