Netting Set Definition. More...
#include <ored/portfolio/nettingsetdefinition.hpp>
Public Member Functions | |
NettingSetDefinition (XMLNode *node) | |
NettingSetDefinition (const NettingSetDetails &nettingSetDetails) | |
NettingSetDefinition (const string &nettingSetId) | |
NettingSetDefinition (const NettingSetDetails &nettingSetDetails, const string &bilateral, const string &csaCurrency, const string &index, const Real &thresholdPay, const Real &thresholdRcv, const Real &mtaPay, const Real &mtaRcv, const Real &iaHeld, const string &iaType, const string &marginCallFreq, const string &marginPostFreq, const string &mpr, const Real &collatSpreadPay, const Real &collatSpreadRcv, const vector< string > &eligCollatCcys, bool applyInitialMargin=false, const string &initialMarginType="Bilateral", const bool calculateIMAmount=false, const bool calculateVMAmount=false, const string &nonExemptIMRegulations="") | |
NettingSetDefinition (const string &nettingSetId, const string &bilateral, const string &csaCurrency, const string &index, const Real &thresholdPay, const Real &thresholdRcv, const Real &mtaPay, const Real &mtaRcv, const Real &iaHeld, const string &iaType, const string &marginCallFreq, const string &marginPostFreq, const string &mpr, const Real &collatSpreadPay, const Real &collatSpreadRcv, const vector< string > &eligCollatCcys, bool applyInitialMargin=false, const string &initialMarginType="Bilateral", const bool calculateIMAmount=false, const bool calculateVMAmount=false, const string &nonExemptIMRegulations="") | |
void | fromXML (XMLNode *node) override |
XMLNode * | toXML (XMLDocument &doc) const override |
void | validate () |
const string & | nettingSetId () const |
Inspectors. More... | |
const NettingSetDetails | nettingSetDetails () const |
bool | activeCsaFlag () const |
const QuantLib::ext::shared_ptr< CSA > & | csaDetails () |
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... | |
Netting Set Definition.
This class is a container for a definition of a netting agreement (including CSA information)
Definition at line 146 of file nettingsetdefinition.hpp.
NettingSetDefinition | ( | XMLNode * | node | ) |
builds a NettingSetDefinition from an XML input
Definition at line 109 of file nettingsetdefinition.cpp.
NettingSetDefinition | ( | const NettingSetDetails & | nettingSetDetails | ) |
Constructor for "uncollateralised" netting sets
Definition at line 114 of file nettingsetdefinition.cpp.
NettingSetDefinition | ( | const string & | nettingSetId | ) |
Definition at line 157 of file nettingsetdefinition.hpp.
NettingSetDefinition | ( | const NettingSetDetails & | nettingSetDetails, |
const string & | bilateral, | ||
const string & | csaCurrency, | ||
const string & | index, | ||
const Real & | thresholdPay, | ||
const Real & | thresholdRcv, | ||
const Real & | mtaPay, | ||
const Real & | mtaRcv, | ||
const Real & | iaHeld, | ||
const string & | iaType, | ||
const string & | marginCallFreq, | ||
const string & | marginPostFreq, | ||
const string & | mpr, | ||
const Real & | collatSpreadPay, | ||
const Real & | collatSpreadRcv, | ||
const vector< string > & | eligCollatCcys, | ||
bool | applyInitialMargin = false , |
||
const string & | initialMarginType = "Bilateral" , |
||
const bool | calculateIMAmount = false , |
||
const bool | calculateVMAmount = false , |
||
const string & | nonExemptIMRegulations = "" |
||
) |
Constructor for "collateralised" netting sets
Definition at line 120 of file nettingsetdefinition.cpp.
NettingSetDefinition | ( | const string & | nettingSetId, |
const string & | bilateral, | ||
const string & | csaCurrency, | ||
const string & | index, | ||
const Real & | thresholdPay, | ||
const Real & | thresholdRcv, | ||
const Real & | mtaPay, | ||
const Real & | mtaRcv, | ||
const Real & | iaHeld, | ||
const string & | iaType, | ||
const string & | marginCallFreq, | ||
const string & | marginPostFreq, | ||
const string & | mpr, | ||
const Real & | collatSpreadPay, | ||
const Real & | collatSpreadRcv, | ||
const vector< string > & | eligCollatCcys, | ||
bool | applyInitialMargin = false , |
||
const string & | initialMarginType = "Bilateral" , |
||
const bool | calculateIMAmount = false , |
||
const bool | calculateVMAmount = false , |
||
const string & | nonExemptIMRegulations = "" |
||
) |
Definition at line 176 of file nettingsetdefinition.hpp.
|
overridevirtual |
loads NettingSetDefinition object from XML
Implements XMLSerializable.
Definition at line 141 of file nettingsetdefinition.cpp.
|
overridevirtual |
writes object to XML
Implements XMLSerializable.
Definition at line 222 of file nettingsetdefinition.cpp.
void validate | ( | ) |
validate the netting set definition including CSA details
Definition at line 274 of file nettingsetdefinition.cpp.
const string & nettingSetId | ( | ) | const |
Inspectors.
returns netting set id
Definition at line 210 of file nettingsetdefinition.hpp.
const NettingSetDetails nettingSetDetails | ( | ) | const |
returns netting set details
Definition at line 214 of file nettingsetdefinition.hpp.
bool activeCsaFlag | ( | ) | const |
boolean specifying if ISDA agreement is covered by a Credit Support Annex
Definition at line 216 of file nettingsetdefinition.hpp.
const QuantLib::ext::shared_ptr< CSA > & csaDetails | ( | ) |