Container for storing Zero Rate conventions. More...
#include <ored/configuration/conventions.hpp>
Public Member Functions | |
Constructors | |
ZeroRateConvention () | |
Default constructor. More... | |
ZeroRateConvention (const string &id, const string &dayCounter, const string &compounding, const string &compoundingFrequency) | |
ZeroRateConvention (const string &id, const string &dayCounter, const string &tenorCalendar, const string &compounding="Continuous", const string &compoundingFrequency="Annual", const string &spotLag="", const string &spotCalendar="", const string &rollConvention="", const string &eom="") | |
Inspectors | |
const DayCounter & | dayCounter () const |
Zero rate day counter. More... | |
const Calendar & | tenorCalendar () const |
Return the calendar used for converting tenor points into dates. More... | |
Compounding | compounding () const |
Zero rate compounding. More... | |
Frequency | compoundingFrequency () const |
Zero rate compounding frequency. More... | |
Natural | spotLag () const |
Zero rate spot lag. More... | |
const Calendar & | spotCalendar () const |
Calendar used for spot date adjustment. More... | |
BusinessDayConvention | rollConvention () const |
Business day convention used in converting tenor points into dates. More... | |
bool | eom () |
End of month adjustment. More... | |
bool | tenorBased () |
Flag to indicate whether the Zero Rate convention is based on a tenor input. More... | |
Public Member Functions inherited from Convention | |
virtual | ~Convention () |
Default destructor. More... | |
const string & | id () const |
Type | type () const |
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 | |
DayCounter | dayCounter_ |
Calendar | tenorCalendar_ |
Compounding | compounding_ |
Frequency | compoundingFrequency_ |
Natural | spotLag_ |
Calendar | spotCalendar_ |
BusinessDayConvention | rollConvention_ |
bool | eom_ |
bool | tenorBased_ |
string | strDayCounter_ |
string | strTenorCalendar_ |
string | strCompounding_ |
string | strCompoundingFrequency_ |
string | strSpotLag_ |
string | strSpotCalendar_ |
string | strRollConvention_ |
string | strEom_ |
virtual void | fromXML (XMLNode *node) override |
virtual XMLNode * | toXML (XMLDocument &doc) const override |
virtual void | build () override |
Additional Inherited Members | |
Public Types inherited from Convention | |
enum class | Type { Zero , Deposit , Future , FRA , OIS , Swap , AverageOIS , TenorBasisSwap , TenorBasisTwoSwap , BMABasisSwap , FX , CrossCcyBasis , CrossCcyFixFloat , CDS , IborIndex , OvernightIndex , SwapIndex , ZeroInflationIndex , InflationSwap , SecuritySpread , CMSSpreadOption , CommodityForward , CommodityFuture , FxOption , BondYield } |
Supported convention types. More... | |
Protected Member Functions inherited from Convention | |
Convention () | |
Convention (const string &id, Type type) | |
Protected Attributes inherited from Convention | |
Type | type_ |
string | id_ |
Container for storing Zero Rate conventions.
Definition at line 183 of file conventions.hpp.
ZeroRateConvention | ( | const string & | id, |
const string & | dayCounter, | ||
const string & | compounding, | ||
const string & | compoundingFrequency | ||
) |
Definition at line 98 of file conventions.cpp.
ZeroRateConvention | ( | const string & | id, |
const string & | dayCounter, | ||
const string & | tenorCalendar, | ||
const string & | compounding = "Continuous" , |
||
const string & | compoundingFrequency = "Annual" , |
||
const string & | spotLag = "" , |
||
const string & | spotCalendar = "" , |
||
const string & | rollConvention = "" , |
||
const string & | eom = "" |
||
) |
Definition at line 105 of file conventions.cpp.
const DayCounter & dayCounter | ( | ) | const |
const Calendar & tenorCalendar | ( | ) | const |
Return the calendar used for converting tenor points into dates.
Definition at line 202 of file conventions.hpp.
Compounding compounding | ( | ) | const |
Frequency compoundingFrequency | ( | ) | const |
Zero rate compounding frequency.
Definition at line 206 of file conventions.hpp.
Natural spotLag | ( | ) | const |
const Calendar & spotCalendar | ( | ) | const |
BusinessDayConvention rollConvention | ( | ) | const |
Business day convention used in converting tenor points into dates.
Definition at line 212 of file conventions.hpp.
bool eom | ( | ) |
bool tenorBased | ( | ) |
Flag to indicate whether the Zero Rate convention is based on a tenor input.
Definition at line 216 of file conventions.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 128 of file conventions.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 149 of file conventions.cpp.
|
overridevirtual |
Implements Convention.
Definition at line 115 of file conventions.cpp.
|
private |
Definition at line 227 of file conventions.hpp.
|
private |
Definition at line 228 of file conventions.hpp.
|
private |
Definition at line 229 of file conventions.hpp.
|
private |
Definition at line 230 of file conventions.hpp.
|
private |
Definition at line 231 of file conventions.hpp.
|
private |
Definition at line 232 of file conventions.hpp.
|
private |
Definition at line 233 of file conventions.hpp.
|
private |
Definition at line 234 of file conventions.hpp.
|
private |
Definition at line 235 of file conventions.hpp.
|
private |
Definition at line 238 of file conventions.hpp.
|
private |
Definition at line 239 of file conventions.hpp.
|
private |
Definition at line 240 of file conventions.hpp.
|
private |
Definition at line 241 of file conventions.hpp.
|
private |
Definition at line 242 of file conventions.hpp.
|
private |
Definition at line 243 of file conventions.hpp.
|
private |
Definition at line 244 of file conventions.hpp.
|
private |
Definition at line 245 of file conventions.hpp.