QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
#include <discretizedconvertible.hpp>
Public Member Functions | |
DiscretizedConvertible (ConvertibleBond::arguments, ext::shared_ptr< GeneralizedBlackScholesProcess > process, DividendSchedule dividends, Handle< Quote > creditSpread, const TimeGrid &grid=TimeGrid()) | |
void | reset (Size size) override |
const Array & | conversionProbability () const |
Array & | conversionProbability () |
const Array & | spreadAdjustedRate () const |
Array & | spreadAdjustedRate () |
const Array & | dividendValues () const |
Array & | dividendValues () |
std::vector< Time > | mandatoryTimes () const override |
Public Member Functions inherited from DiscretizedAsset | |
DiscretizedAsset () | |
virtual | ~DiscretizedAsset ()=default |
Time | time () const |
Time & | time () |
const Array & | values () const |
Array & | values () |
const ext::shared_ptr< Lattice > & | method () const |
void | initialize (const ext::shared_ptr< Lattice > &, Time t) |
void | rollback (Time to) |
void | partialRollback (Time to) |
Real | presentValue () |
void | preAdjustValues () |
void | postAdjustValues () |
void | adjustValues () |
Protected Member Functions | |
void | postAdjustValuesImpl () override |
Protected Member Functions inherited from DiscretizedAsset | |
bool | isOnTime (Time t) const |
virtual void | preAdjustValuesImpl () |
Protected Attributes | |
Array | conversionProbability_ |
Array | spreadAdjustedRate_ |
Array | dividendValues_ |
Protected Attributes inherited from DiscretizedAsset | |
Time | time_ |
Time | latestPreAdjustment_ |
Time | latestPostAdjustment_ |
Array | values_ |
Private Member Functions | |
Array | adjustedGrid () const |
void | applyConvertibility () |
void | applyCallability (Size, bool convertible) |
void | addCoupon (Size) |
Private Attributes | |
ConvertibleBond::arguments | arguments_ |
ext::shared_ptr< GeneralizedBlackScholesProcess > | process_ |
std::vector< Time > | stoppingTimes_ |
std::vector< Time > | callabilityTimes_ |
std::vector< Time > | couponTimes_ |
std::vector< Real > | couponAmounts_ |
std::vector< Time > | dividendTimes_ |
Handle< Quote > | creditSpread_ |
DividendSchedule | dividends_ |
std::vector< Date > | dividendDates_ |
Additional Inherited Members | |
Protected Types inherited from DiscretizedAsset | |
enum class | CouponAdjustment { pre , post } |
Definition at line 34 of file discretizedconvertible.hpp.
DiscretizedConvertible | ( | ConvertibleBond::arguments | args, |
ext::shared_ptr< GeneralizedBlackScholesProcess > | process, | ||
DividendSchedule | dividends, | ||
Handle< Quote > | creditSpread, | ||
const TimeGrid & | grid = TimeGrid() |
||
) |
|
overridevirtual |
This method should initialize the asset values to an Array of the given size and with values depending on the particular asset.
Implements DiscretizedAsset.
Definition at line 100 of file discretizedconvertible.cpp.
const Array & conversionProbability | ( | ) | const |
Definition at line 44 of file discretizedconvertible.hpp.
Array & conversionProbability | ( | ) |
Definition at line 47 of file discretizedconvertible.hpp.
const Array & spreadAdjustedRate | ( | ) | const |
Definition at line 49 of file discretizedconvertible.hpp.
Array & spreadAdjustedRate | ( | ) |
Definition at line 50 of file discretizedconvertible.hpp.
const Array & dividendValues | ( | ) | const |
Definition at line 52 of file discretizedconvertible.hpp.
Array & dividendValues | ( | ) |
Definition at line 53 of file discretizedconvertible.hpp.
|
overridevirtual |
This method returns the times at which the numerical method should stop while rolling back the asset. Typical examples include payment times, exercise times and such.
Implements DiscretizedAsset.
Definition at line 55 of file discretizedconvertible.hpp.
|
overrideprotectedvirtual |
This method performs the actual post-adjustment
Reimplemented from DiscretizedAsset.
Definition at line 132 of file discretizedconvertible.cpp.
|
private |
Definition at line 230 of file discretizedconvertible.cpp.
|
private |
Definition at line 168 of file discretizedconvertible.cpp.
Definition at line 179 of file discretizedconvertible.cpp.
|
private |
Definition at line 226 of file discretizedconvertible.cpp.
|
protected |
Definition at line 68 of file discretizedconvertible.hpp.
|
protected |
Definition at line 68 of file discretizedconvertible.hpp.
|
protected |
Definition at line 68 of file discretizedconvertible.hpp.
|
private |
Definition at line 75 of file discretizedconvertible.hpp.
|
private |
Definition at line 76 of file discretizedconvertible.hpp.
|
private |
Definition at line 77 of file discretizedconvertible.hpp.
|
private |
Definition at line 78 of file discretizedconvertible.hpp.
|
private |
Definition at line 79 of file discretizedconvertible.hpp.
|
private |
Definition at line 80 of file discretizedconvertible.hpp.
|
private |
Definition at line 81 of file discretizedconvertible.hpp.
Definition at line 82 of file discretizedconvertible.hpp.
|
private |
Definition at line 83 of file discretizedconvertible.hpp.
|
private |
Definition at line 84 of file discretizedconvertible.hpp.