QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
|
#include <ql/models/marketmodels/products/pathwise/pathwiseproductcashrebate.hpp>
Public Member Functions | |
MarketModelPathwiseCashRebate (EvolutionDescription evolution, const std::vector< Time > &paymentTimes, Matrix amounts, Size numberOfProducts) | |
std::vector< Size > | suggestedNumeraires () const override |
const EvolutionDescription & | evolution () const override |
std::vector< Time > | possibleCashFlowTimes () const override |
Size | numberOfProducts () const override |
Size | maxNumberOfCashFlowsPerProductPerStep () const override |
void | reset () override |
during simulation put product at start of path More... | |
bool | alreadyDeflated () const override |
bool | nextTimeStep (const CurveState ¤tState, std::vector< Size > &numberCashFlowsThisStep, std::vector< std::vector< MarketModelPathwiseMultiProduct::CashFlow > > &cashFlowsGenerated) override |
return value indicates whether path is finished, TRUE means done More... | |
std::unique_ptr< MarketModelPathwiseMultiProduct > | clone () const override |
returns a newly-allocated copy of itself More... | |
Public Member Functions inherited from MarketModelPathwiseMultiProduct | |
virtual | ~MarketModelPathwiseMultiProduct ()=default |
virtual std::vector< Size > | suggestedNumeraires () const =0 |
virtual const EvolutionDescription & | evolution () const =0 |
virtual std::vector< Time > | possibleCashFlowTimes () const =0 |
virtual Size | numberOfProducts () const =0 |
virtual Size | maxNumberOfCashFlowsPerProductPerStep () const =0 |
virtual bool | alreadyDeflated () const =0 |
virtual void | reset ()=0 |
during simulation put product at start of path More... | |
virtual bool | nextTimeStep (const CurveState ¤tState, std::vector< Size > &numberCashFlowsThisStep, std::vector< std::vector< MarketModelPathwiseMultiProduct::CashFlow > > &cashFlowsGenerated)=0 |
return value indicates whether path is finished, TRUE means done More... | |
virtual std::unique_ptr< MarketModelPathwiseMultiProduct > | clone () const =0 |
returns a newly-allocated copy of itself More... | |
Private Attributes | |
EvolutionDescription | evolution_ |
std::vector< Time > | paymentTimes_ |
Matrix | amounts_ |
Size | numberOfProducts_ |
Size | currentIndex_ |
Swap for doing simple cash rebate. Fairly useless when used directly, but if we want to look a breakable swap it becomes useful.
Definition at line 42 of file pathwiseproductcashrebate.hpp.
MarketModelPathwiseCashRebate | ( | EvolutionDescription | evolution, |
const std::vector< Time > & | paymentTimes, | ||
Matrix | amounts, | ||
Size | numberOfProducts | ||
) |
Definition at line 34 of file pathwiseproductcashrebate.cpp.
|
overridevirtual |
Implements MarketModelPathwiseMultiProduct.
Definition at line 78 of file pathwiseproductcashrebate.cpp.
|
overridevirtual |
Implements MarketModelPathwiseMultiProduct.
Definition at line 83 of file pathwiseproductcashrebate.cpp.
|
overridevirtual |
Implements MarketModelPathwiseMultiProduct.
Definition at line 57 of file pathwiseproductcashrebate.cpp.
|
overridevirtual |
Implements MarketModelPathwiseMultiProduct.
Definition at line 62 of file pathwiseproductcashrebate.cpp.
|
overridevirtual |
Implements MarketModelPathwiseMultiProduct.
Definition at line 67 of file pathwiseproductcashrebate.cpp.
|
overridevirtual |
during simulation put product at start of path
Implements MarketModelPathwiseMultiProduct.
Definition at line 72 of file pathwiseproductcashrebate.cpp.
|
overridevirtual |
Implements MarketModelPathwiseMultiProduct.
Definition at line 29 of file pathwiseproductcashrebate.cpp.
|
overridevirtual |
return value indicates whether path is finished, TRUE means done
Implements MarketModelPathwiseMultiProduct.
Definition at line 89 of file pathwiseproductcashrebate.cpp.
|
overridevirtual |
returns a newly-allocated copy of itself
Implements MarketModelPathwiseMultiProduct.
Definition at line 109 of file pathwiseproductcashrebate.cpp.
|
private |
Definition at line 69 of file pathwiseproductcashrebate.hpp.
|
private |
Definition at line 70 of file pathwiseproductcashrebate.hpp.
|
private |
Definition at line 71 of file pathwiseproductcashrebate.hpp.
|
private |
Definition at line 72 of file pathwiseproductcashrebate.hpp.
|
private |
Definition at line 74 of file pathwiseproductcashrebate.hpp.