#include <qle/pricingengines/midpointcdsenginemultistate.hpp>
Inheritance diagram for MidPointCdsEngineMultiState:
Collaboration diagram for MidPointCdsEngineMultiState:Public Member Functions | |
| MidPointCdsEngineMultiState (const std::vector< Handle< DefaultProbabilityTermStructure > > &defaultCurves, const std::vector< Handle< Quote > > recoveryRates, const Handle< YieldTermStructure > &discountCurve, const Size mainResultState, const boost::optional< bool > includeSettlementDateFlows=boost::none) | |
| void | calculate () const |
| Handle< YieldTermStructure > | discountCurve () const |
| const std::vector< Handle< DefaultProbabilityTermStructure > > & | defaultCurves () const |
| const std::vector< Handle< Quote > > & | recoveryRates () const |
Private Member Functions | |
| void | linkCurves (Size i) const |
| Real | calculateDefaultValue () const |
Private Attributes | |
| std::vector< Handle< DefaultProbabilityTermStructure > > | defaultCurves_ |
| std::vector< Handle< Quote > > | recoveryRates_ |
| Size | mainResultState_ |
The engine takes a vector of default curves and recovery rates. For the given main result state it will produce the same results as the MidPointCdsEngine. In addition a result with label "stateNPV" is produced containing the NPV for each given default curve / recovery rate and an additional entry with a default value w.r.t. the last given recovery rate in the vector.
Definition at line 36 of file midpointcdsenginemultistate.hpp.
| MidPointCdsEngineMultiState | ( | const std::vector< Handle< DefaultProbabilityTermStructure > > & | defaultCurves, |
| const std::vector< Handle< Quote > > | recoveryRates, | ||
| const Handle< YieldTermStructure > & | discountCurve, | ||
| const Size | mainResultState, | ||
| const boost::optional< bool > | includeSettlementDateFlows = boost::none |
||
| ) |
Definition at line 29 of file midpointcdsenginemultistate.cpp.
Here is the call graph for this function:| void calculate | ( | ) | const |
Definition at line 56 of file midpointcdsenginemultistate.cpp.
Here is the call graph for this function:| Handle< YieldTermStructure > discountCurve | ( | ) | const |
Definition at line 44 of file midpointcdsenginemultistate.hpp.
| const std::vector< Handle< DefaultProbabilityTermStructure > > & defaultCurves | ( | ) | const |
Definition at line 45 of file midpointcdsenginemultistate.hpp.
Here is the caller graph for this function:| const std::vector< Handle< Quote > > & recoveryRates | ( | ) | const |
Definition at line 46 of file midpointcdsenginemultistate.hpp.
Here is the caller graph for this function:
|
private |
Definition at line 51 of file midpointcdsenginemultistate.cpp.
Here is the caller graph for this function:
|
private |
Definition at line 84 of file midpointcdsenginemultistate.cpp.
Here is the caller graph for this function:
|
private |
Definition at line 52 of file midpointcdsenginemultistate.hpp.
|
private |
Definition at line 53 of file midpointcdsenginemultistate.hpp.
|
private |
Definition at line 54 of file midpointcdsenginemultistate.hpp.