27#include <ql/time/calendar.hpp>
28#include <ql/time/dategenerationrule.hpp>
29#include <ql/time/daycounter.hpp>
30#include <ql/time/period.hpp>
31#include <ql/types.hpp>
32#include <boost/optional/optional.hpp>
37using QuantLib::BusinessDayConvention;
39using QuantLib::DayCounter;
40using QuantLib::Natural;
41using QuantLib::Period;
61 const vector<string>&
terms,
68 const QuantLib::Date&
startDate = QuantLib::Date(),
69 const QuantLib::Period&
indexTerm = 0 * QuantLib::Days,
70 boost::optional<QuantLib::DateGeneration::Rule>
rule = boost::none,
92 const boost::optional<QuantLib::DateGeneration::Rule>&
rule()
const {
return rule_; }
94 const vector<string>&
quotes()
override;
120 boost::optional<QuantLib::DateGeneration::Rule>
rule_;
Base Correlation term structure configuration.
const boost::optional< QuantLib::DateGeneration::Rule > & rule() const
const QuantLib::Period & indexTerm() const
const bool & extrapolate() const
const vector< string > & terms() const
const QuantLib::Date & startDate() const
const vector< string > & detachmentPoints() const
const DayCounter & dayCounter() const
BusinessDayConvention & businessDayConvention()
const Calendar & calendar() const
vector< string > detachmentPoints_
DayCounter & dayCounter()
const bool & adjustForLosses() const
void fromXML(XMLNode *node) override
const std::string & quoteName() const
XMLNode * toXML(XMLDocument &doc) const override
const vector< string > & quotes() override
Return all the market quotes required for this config.
BaseCorrelationCurveConfig()
Default constructor.
BaseCorrelationCurveConfig(const string &curveID, const string &curveDescription, const vector< string > &detachmentPoints, const vector< string > &terms, QuantLib::Size settlementDays, const QuantLib::Calendar &calendar, QuantLib::BusinessDayConvention businessDayConvention, QuantLib::DayCounter dayCounter, bool extrapolate, const std::string "eName="", const QuantLib::Date &startDate=QuantLib::Date(), const QuantLib::Period &indexTerm=0 *QuantLib::Days, boost::optional< QuantLib::DateGeneration::Rule > rule=boost::none, bool adjustForLosses=true)
Detailed constructor.
vector< string > & terms()
QuantLib::Date startDate_
boost::optional< QuantLib::DateGeneration::Rule > rule_
vector< string > & detachmentPoints()
QuantLib::Period & indexTerm()
const Size & settlementDays() const
QuantLib::Period indexTerm_
const BusinessDayConvention & businessDayConvention() const
BusinessDayConvention businessDayConvention_
Base curve configuration.
const string & curveDescription() const
const string & curveID() const
Small XML Document wrapper class.
Base curve configuration classes.
Serializable Credit Default Swap.