Serializable object holding amortization rules. More...
#include <ored/portfolio/legdata.hpp>
Public Member Functions | |
AmortizationData () | |
AmortizationData (string type, double value, string startDate, string endDate, string frequency, bool underflow) | |
virtual void | fromXML (XMLNode *node) override |
virtual XMLNode * | toXML (XMLDocument &doc) const override |
const string & | type () const |
FixedAmount, RelativeToInitialNotional, RelativeToPreviousNotional, Annuity. More... | |
double | value () const |
Interpretation depending on type() More... | |
const string & | startDate () const |
Amortization start date. More... | |
const string & | endDate () const |
Amortization end date. More... | |
const string & | frequency () const |
Amortization frequency. More... | |
bool | underflow () const |
Allow amortization below zero notional if true. More... | |
bool | initialized () 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 Member Functions | |
void | validate () const |
Private Attributes | |
string | type_ |
double | value_ |
string | startDate_ |
string | endDate_ |
string | frequency_ |
bool | underflow_ |
bool | initialized_ |
Serializable object holding amortization rules.
Definition at line 805 of file legdata.hpp.
AmortizationData | ( | ) |
Definition at line 807 of file legdata.hpp.
AmortizationData | ( | string | type, |
double | value, | ||
string | startDate, | ||
string | endDate, | ||
string | frequency, | ||
bool | underflow | ||
) |
Definition at line 809 of file legdata.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 698 of file legdata.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 710 of file legdata.cpp.
const string & type | ( | ) | const |
FixedAmount, RelativeToInitialNotional, RelativeToPreviousNotional, Annuity.
Definition at line 819 of file legdata.hpp.
double value | ( | ) | const |
const string & startDate | ( | ) | const |
Amortization start date.
Definition at line 823 of file legdata.hpp.
const string & endDate | ( | ) | const |
Amortization end date.
Definition at line 825 of file legdata.hpp.
const string & frequency | ( | ) | const |
bool underflow | ( | ) | const |
bool initialized | ( | ) | const |
|
private |
Definition at line 725 of file legdata.cpp.
|
private |
Definition at line 834 of file legdata.hpp.
|
private |
Definition at line 835 of file legdata.hpp.
|
private |
Definition at line 836 of file legdata.hpp.
|
private |
Definition at line 837 of file legdata.hpp.
|
private |
Definition at line 838 of file legdata.hpp.
|
private |
Definition at line 839 of file legdata.hpp.
|
private |
Definition at line 840 of file legdata.hpp.