|
QuantLib: a free/open-source library for quantitative finance
Reference manual - version 1.40
|
Discretized option on a given asset. More...
#include <ql/discretizedasset.hpp>
Public Member Functions | |
| DiscretizedOption (ext::shared_ptr< DiscretizedAsset > underlying, Exercise::Type exerciseType, std::vector< Time > exerciseTimes) | |
| void | reset (Size size) override |
| std::vector< Time > | mandatoryTimes () const override |
| Public Member Functions inherited from DiscretizedAsset | |
| 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 |
| void | applyExerciseCondition () |
| bool | isOnTime (Time t) const |
| virtual void | preAdjustValuesImpl () |
Protected Attributes | |
| ext::shared_ptr< DiscretizedAsset > | underlying_ |
| Exercise::Type | exerciseType_ |
| std::vector< Time > | exerciseTimes_ |
| Time | time_ |
| Time | latestPreAdjustment_ |
| Time | latestPostAdjustment_ |
| Array | values_ |
Additional Inherited Members | |
| enum class | CouponAdjustment { pre , post } |
Discretized option on a given asset.
|
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.
|
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.
|
overrideprotectedvirtual |
This method performs the actual post-adjustment
Reimplemented from DiscretizedAsset.