27#include <ql/time/schedule.hpp>
270 void add(QuantLib::Schedule& schedule,
const ScheduleData& scheduleData);
271 void makeSchedules(
const QuantLib::Date& openEndDateReplacement = QuantLib::Null<QuantLib::Date>());
274 map<string, pair<ScheduleData, QuantLib::Schedule&>>
schedules_;
279 const QuantLib::Date& openEndDateReplacement = QuantLib::Null<QuantLib::Date>(),
280 const map<string, QuantLib::Schedule>& baseSchedules = map<string, QuantLib::Schedule>());
283 const QuantLib::Date& openEndDateReplacement = QuantLib::Null<QuantLib::Date>());
void makeSchedules(const QuantLib::Date &openEndDateReplacement=QuantLib::Null< QuantLib::Date >())
map< string, pair< ScheduleData, QuantLib::Schedule & > > schedules_
void add(QuantLib::Schedule &schedule, const ScheduleData &scheduleData)
Serializable schedule data.
vector< ScheduleDates > dates_
const vector< ScheduleDates > & dates() const
ScheduleData(const ScheduleDates &dates, const string &name="")
Constructor with ScheduleDates.
ScheduleData(const ScheduleDerived &derived, const string &name="")
Constructor with ScheduleDerived.
vector< ScheduleDerived > derived_
const vector< ScheduleDerived > & derived() const
bool hasData() const
Check if has any dates/rules/derived schedules.
vector< string > baseScheduleNames()
void addDates(const ScheduleDates &dates)
Add dates.
ScheduleData(const ScheduleRules &rules, const string &name="")
Constructor with ScheduleRules.
void addRules(const ScheduleRules &rules)
Add rules.
vector< ScheduleDates > & modifyDates()
ScheduleData()
Default constructor.
virtual void fromXML(XMLNode *node) override
vector< ScheduleRules > rules_
virtual XMLNode * toXML(XMLDocument &doc) const override
const vector< ScheduleRules > & rules() const
vector< ScheduleDerived > & modifyDerived()
const bool & hasDerived() const
vector< ScheduleRules > & modifyRules()
void addDerived(const ScheduleDerived &derived)
Add derived schedules.
const string & name() const
Serializable object holding schedule Dates data.
bool hasData() const
Check if key attributes are empty.
const string & endOfMonthConvention() const
const string & convention() const
virtual void fromXML(XMLNode *node) override
virtual XMLNode * toXML(XMLDocument &doc) const override
const string & tenor() const
vector< string > & modifyDates()
ScheduleDates()
Default constructor.
const vector< string > & dates() const
ScheduleDates(const string &calendar, const string &convention, const string &tenor, const vector< string > &dates, const string &endOfMonth="", const string &endOfMonthConvention="")
Constructor.
const string & calendar() const
const string & endOfMonth() const
string endOfMonthConvention_
Serializable object holding Derived schedule data.
bool removeLastDate() const
const string & convention() const
ScheduleDerived(const string &baseSchedule, const string &calendar, const string &convention, const string &shift, const bool removeFirstDate=false, const bool removeLastDate=false)
Constructor.
virtual void fromXML(XMLNode *node) override
string & modifyConvention()
ScheduleDerived()
Default constructor.
virtual XMLNode * toXML(XMLDocument &doc) const override
const string & baseSchedule() const
const string & calendar() const
string & modifyCalendar()
bool removeFirstDate() const
const string & shift() const
Serializable object holding schedule Rules data.
const string & termConvention() const
const string & endDate() const
ScheduleRules()
Default constructor.
const string & endOfMonthConvention() const
const string & rule() const
const string & startDate() const
bool removeLastDate() const
const string & convention() const
bool adjustEndDateToPreviousMonthEnd_
const string & lastDate() const
virtual void fromXML(XMLNode *node) override
string & modifyStartDate()
string & modifyConvention()
string & modifyTermConvention()
virtual XMLNode * toXML(XMLDocument &doc) const override
const string & tenor() const
string & modifyEndOfMonthConvention()
const string & calendar() const
string & modifyCalendar()
bool removeFirstDate() const
const string & endOfMonth() const
const bool hasData() const
Check if key attributes are empty.
string endOfMonthConvention_
ScheduleRules(const string &startDate, const string &endDate, const string &tenor, const string &calendar, const string &convention, const string &termConvention, const string &rule, const string &endOfMonth="N", const string &firstDate="", const string &lastDate="", const bool removeFirstDate=false, const bool removeLastDate=false, const string &endOfMonthConvention="")
const string & firstDate() const
Small XML Document wrapper class.
Base class for all serializable classes.
Schedule makeSchedule(const ScheduleDates &data)
Serializable Credit Default Swap.