COM Implied Price Term Structure. More...
#include <qle/models/modelimpliedpricetermstructure.hpp>
Public Member Functions | |
ModelImpliedPriceTermStructure (const QuantLib::ext::shared_ptr< CommodityModel > &model, const DayCounter &dc=DayCounter(), const bool purelyTimeBased=false) | |
Date | maxDate () const override |
Time | maxTime () const override |
const Date & | referenceDate () const override |
const QuantLib::Currency & | currency () const override |
Price term structure interface. More... | |
std::vector< QuantLib::Date > | pillarDates () const override |
The pillar dates for the PriceTermStructure. More... | |
virtual void | referenceDate (const Date &d) |
virtual void | referenceTime (const Time t) |
void | state (const Array &s) |
void | move (const Date &d, const Array &s) |
void | move (const Time t, const Array &s) |
virtual void | update () override |
Public Member Functions inherited from PriceTermStructure | |
PriceTermStructure (const QuantLib::DayCounter &dc=QuantLib::DayCounter()) | |
PriceTermStructure (const QuantLib::Date &referenceDate, const QuantLib::Calendar &cal=QuantLib::Calendar(), const QuantLib::DayCounter &dc=QuantLib::DayCounter()) | |
PriceTermStructure (QuantLib::Natural settlementDays, const QuantLib::Calendar &cal, const QuantLib::DayCounter &dc=QuantLib::DayCounter()) | |
QuantLib::Real | price (QuantLib::Time t, bool extrapolate=false) const |
QuantLib::Real | price (const QuantLib::Date &d, bool extrapolate=false) const |
void | update () override |
virtual QuantLib::Time | minTime () const |
The minimum time for which the curve can return values. More... | |
Protected Member Functions | |
Real | priceImpl (Time t) const override |
Protected Member Functions inherited from PriceTermStructure | |
virtual QuantLib::Real | priceImpl (QuantLib::Time) const =0 |
Price calculation. More... | |
void | checkRange (QuantLib::Time t, bool extrapolate) const |
Extra time range check for minimum time, then calls TermStructure::checkRange. More... | |
Protected Attributes | |
const QuantLib::ext::shared_ptr< CommodityModel > | model_ |
const bool | purelyTimeBased_ |
Date | referenceDate_ |
Real | relativeTime_ |
Array | state_ |
COM Implied Price Term Structure.
The termstructure has the reference date of the model's termstructure at construction, but you can vary this as well as the state. The purely time based variant is mainly there for perfomance reasons, note that it does not provide the full term structure interface and does not send notifications on reference time updates.
\ingroup models
Definition at line 46 of file modelimpliedpricetermstructure.hpp.
ModelImpliedPriceTermStructure | ( | const QuantLib::ext::shared_ptr< CommodityModel > & | model, |
const DayCounter & | dc = DayCounter() , |
||
const bool | purelyTimeBased = false |
||
) |
Definition at line 23 of file modelimpliedpricetermstructure.cpp.
|
override |
Definition at line 80 of file modelimpliedpricetermstructure.hpp.
|
override |
Definition at line 86 of file modelimpliedpricetermstructure.hpp.
|
override |
Definition at line 91 of file modelimpliedpricetermstructure.hpp.
|
overridevirtual |
Price term structure interface.
Implements PriceTermStructure.
Definition at line 57 of file modelimpliedpricetermstructure.hpp.
|
overridevirtual |
The pillar dates for the PriceTermStructure.
Implements PriceTermStructure.
Definition at line 58 of file modelimpliedpricetermstructure.hpp.
|
virtual |
Definition at line 97 of file modelimpliedpricetermstructure.hpp.
|
virtual |
Definition at line 105 of file modelimpliedpricetermstructure.hpp.
void state | ( | const Array & | s | ) |
Definition at line 112 of file modelimpliedpricetermstructure.hpp.
void move | ( | const Date & | d, |
const Array & | s | ||
) |
Definition at line 117 of file modelimpliedpricetermstructure.hpp.
void move | ( | const Time | t, |
const Array & | s | ||
) |
Definition at line 122 of file modelimpliedpricetermstructure.hpp.
|
overridevirtual |
Definition at line 128 of file modelimpliedpricetermstructure.hpp.
|
overrideprotected |
Definition at line 135 of file modelimpliedpricetermstructure.hpp.
|
protected |
Definition at line 71 of file modelimpliedpricetermstructure.hpp.
|
protected |
Definition at line 72 of file modelimpliedpricetermstructure.hpp.
|
protected |
Definition at line 73 of file modelimpliedpricetermstructure.hpp.
|
protected |
Definition at line 74 of file modelimpliedpricetermstructure.hpp.
|
protected |
Definition at line 75 of file modelimpliedpricetermstructure.hpp.