25#include <ql/termstructures/defaulttermstructure.hpp>
26#include <ql/termstructures/yieldtermstructure.hpp>
27#include <ql/time/calendars/weekendsonly.hpp>
28#include <ql/time/dategenerationrule.hpp>
29#include <ql/time/daycounters/actual360.hpp>
33class CreditCurve :
public QuantLib::Observer,
public QuantLib::Observable {
37 QuantLib::Date
startDate = QuantLib::Null<QuantLib::Date>();
39 QuantLib::Period
tenor = 3 * QuantLib::Months;
40 QuantLib::Calendar
calendar = QuantLib::WeekendsOnly();
41 QuantLib::BusinessDayConvention
convention = QuantLib::Following;
43 QuantLib::DateGeneration::Rule
rule = QuantLib::DateGeneration::CDS2015;
47 QuantLib::DayCounter
dayCounter = QuantLib::Actual360(
false);
52 explicit CreditCurve(
const QuantLib::Handle<QuantLib::DefaultProbabilityTermStructure>&
curve,
53 const QuantLib::Handle<QuantLib::YieldTermStructure>&
rateCurve =
54 QuantLib::Handle<QuantLib::YieldTermStructure>(),
55 const QuantLib::Handle<QuantLib::Quote>&
recovery = QuantLib::Handle<QuantLib::Quote>(),
59 const QuantLib::Handle<QuantLib::DefaultProbabilityTermStructure>&
curve()
const;
60 const QuantLib::Handle<QuantLib::YieldTermStructure>&
rateCurve()
const;
61 const QuantLib::Handle<QuantLib::Quote>&
recovery()
const;
64 QuantLib::Handle<QuantLib::DefaultProbabilityTermStructure>
curve_;
65 QuantLib::Handle<QuantLib::YieldTermStructure>
rateCurve_;
QuantLib::Handle< QuantLib::Quote > recovery_
QuantLib::Handle< QuantLib::DefaultProbabilityTermStructure > curve_
const QuantLib::Handle< QuantLib::YieldTermStructure > & rateCurve() const
const QuantLib::Handle< QuantLib::Quote > & recovery() const
QuantLib::Handle< QuantLib::YieldTermStructure > rateCurve_
const RefData & refData() const
const QuantLib::Handle< QuantLib::DefaultProbabilityTermStructure > & curve() const
QuantLib::DayCounter lastPeriodDayCounter
QuantLib::Period indexTerm
QuantLib::DateGeneration::Rule rule
QuantLib::DayCounter dayCounter
QuantLib::Natural cashSettlementDays
QuantLib::BusinessDayConvention termConvention
QuantLib::Calendar calendar
QuantLib::BusinessDayConvention payConvention
QuantLib::BusinessDayConvention convention
QuantLib::Real runningSpread