#include <ored/portfolio/referencedata.hpp>
Public Member Functions | |
CreditIndexConstituent () | |
CreditIndexConstituent (const std::string &name, QuantLib::Real weight, QuantLib::Real priorWeight=QuantLib::Null< QuantLib::Real >(), QuantLib::Real recovery=QuantLib::Null< QuantLib::Real >(), const QuantLib::Date &auctionDate=QuantLib::Date(), const QuantLib::Date &auctionSettlementDate=QuantLib::Date(), const QuantLib::Date &defaultDate=QuantLib::Date(), const QuantLib::Date &eventDeterminationDate=QuantLib::Date()) | |
void | fromXML (XMLNode *node) override |
XMLNode * | toXML (ore::data::XMLDocument &doc) const override |
const std::string & | name () const |
QuantLib::Real | weight () const |
QuantLib::Real | priorWeight () const |
QuantLib::Real | recovery () const |
const QuantLib::Date & | auctionDate () const |
const QuantLib::Date & | auctionSettlementDate () const |
const QuantLib::Date & | defaultDate () const |
const QuantLib::Date & | eventDeterminationDate () 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... | |
Private Attributes | |
std::string | name_ |
QuantLib::Real | weight_ |
QuantLib::Real | priorWeight_ |
QuantLib::Real | recovery_ |
QuantLib::Date | auctionDate_ |
QuantLib::Date | auctionSettlementDate_ |
QuantLib::Date | defaultDate_ |
QuantLib::Date | eventDeterminationDate_ |
Hold reference data on a constituent of a credit index.
Gives the name and the weight of the credit index constituent. A weight of zero indicates that there has been a credit event relating to the constituent. In this case, the weight of the constituent prior to the credit event is supplied along with the recovery rate, i.e. final auction price, default date, event determination date, auction date and auction cash settlement date. Not all of these fields are required by every engine in the event of default.
Definition at line 144 of file referencedata.hpp.
Definition at line 111 of file referencedata.cpp.
CreditIndexConstituent | ( | const std::string & | name, |
QuantLib::Real | weight, | ||
QuantLib::Real | priorWeight = QuantLib::Null< QuantLib::Real >() , |
||
QuantLib::Real | recovery = QuantLib::Null< QuantLib::Real >() , |
||
const QuantLib::Date & | auctionDate = QuantLib::Date() , |
||
const QuantLib::Date & | auctionSettlementDate = QuantLib::Date() , |
||
const QuantLib::Date & | defaultDate = QuantLib::Date() , |
||
const QuantLib::Date & | eventDeterminationDate = QuantLib::Date() |
||
) |
|
overridevirtual |
Implements XMLSerializable.
Definition at line 121 of file referencedata.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 153 of file referencedata.cpp.
const string & name | ( | ) | const |
Real weight | ( | ) | const |
Definition at line 185 of file referencedata.cpp.
Real priorWeight | ( | ) | const |
Definition at line 187 of file referencedata.cpp.
Real recovery | ( | ) | const |
Definition at line 189 of file referencedata.cpp.
const Date & auctionDate | ( | ) | const |
Definition at line 191 of file referencedata.cpp.
const Date & auctionSettlementDate | ( | ) | const |
Definition at line 193 of file referencedata.cpp.
const Date & defaultDate | ( | ) | const |
Definition at line 195 of file referencedata.cpp.
const Date & eventDeterminationDate | ( | ) | const |
Definition at line 197 of file referencedata.cpp.
|
private |
Definition at line 170 of file referencedata.hpp.
|
private |
Definition at line 171 of file referencedata.hpp.
|
private |
Definition at line 172 of file referencedata.hpp.
|
private |
Definition at line 173 of file referencedata.hpp.
|
private |
Definition at line 174 of file referencedata.hpp.
|
private |
Definition at line 175 of file referencedata.hpp.
|
private |
Definition at line 176 of file referencedata.hpp.
|
private |
Definition at line 177 of file referencedata.hpp.