DiscretizedAsset Class Reference#include <ql/discretizedasset.hpp>
Inheritance diagram for DiscretizedAsset:
[legend]List of all members.
Detailed Description
Discretized asset class used by numerical methods.
Constructor & Destructor Documentation
Member Function Documentation
virtual void reset |
( |
Size |
size |
) |
[pure virtual] |
|
|
This method will be invoked after rollback and before any other asset (i.e., an option on this one) has any chance to look at the values. For instance, payments happening at times already spanned by the rollback will be added here.
This method is not virtual; derived classes must override the protected preAdjustValuesImpl() method instead. |
void postAdjustValues |
( |
|
) |
|
|
|
This method will be invoked after rollback and after any other asset had their chance to look at the values. For instance, payments happening at the present time (and therefore not included in an option to be exercised at this time) will be added here.
This method is not virtual; derived classes must override the protected postAdjustValuesImpl() method instead. |
|
This method performs both pre- and post-adjustment |
virtual std::vector<Time> mandatoryTimes |
( |
|
) |
const [virtual] |
|
|
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.
- Note:
- The returned values are not guaranteed to be sorted.
Reimplemented in DiscretizedOption. |
virtual void addTimesTo |
( |
std::list< Time > & |
l |
) |
const [virtual] |
|
|
This method appends to the given list the times at which the numerical method should stop while rolling back.
- Deprecated:
- use mandatoryTimes() instead.
|
bool isOnTime |
( |
Time |
t |
) |
const [protected] |
|
|
This method checks whether the asset was rolled at the given time. |
virtual void preAdjustValuesImpl |
( |
|
) |
[protected, virtual] |
|
|
This method performs the actual pre-adjustment |
virtual void postAdjustValuesImpl |
( |
|
) |
[protected, virtual] |
|
|