#include <qle/termstructures/averageoffpeakpowerhelper.hpp>
Public Member Functions | |
Constructors | |
AverageOffPeakPowerHelper (const QuantLib::Handle< QuantLib::Quote > &price, const QuantLib::ext::shared_ptr< CommodityIndex > &index, const QuantLib::Date &start, const QuantLib::Date &end, const ext::shared_ptr< FutureExpiryCalculator > &calc, const QuantLib::ext::shared_ptr< CommodityIndex > &peakIndex, const QuantLib::Calendar &peakCalendar, QuantLib::Natural peakHoursPerDay=16) | |
AverageOffPeakPowerHelper (QuantLib::Real price, const QuantLib::ext::shared_ptr< CommodityIndex > &index, const QuantLib::Date &start, const QuantLib::Date &end, const ext::shared_ptr< FutureExpiryCalculator > &calc, const QuantLib::ext::shared_ptr< CommodityIndex > &peakIndex, const QuantLib::Calendar &peakCalendar, QuantLib::Natural peakHoursPerDay=16) | |
PriceHelper interface | |
QuantLib::Real | impliedQuote () const override |
void | setTermStructure (PriceTermStructure *ts) override |
Visitability | |
QuantLib::ext::shared_ptr< CommodityIndexedAverageCashFlow > | businessOffPeak_ |
QuantLib::ext::shared_ptr< CommodityIndexedAverageCashFlow > | holidayOffPeak_ |
QuantLib::ext::shared_ptr< CommodityIndexedAverageCashFlow > | holidayPeak_ |
QuantLib::Natural | peakDays_ |
QuantLib::Natural | nonPeakDays_ |
QuantLib::RelinkableHandle< PriceTermStructure > | termStructureHandle_ |
void | accept (QuantLib::AcyclicVisitor &v) override |
void | deepUpdate () override |
void | init (const QuantLib::ext::shared_ptr< CommodityIndex > &index, const QuantLib::Date &start, const QuantLib::Date &end, const ext::shared_ptr< FutureExpiryCalculator > &calc, const QuantLib::ext::shared_ptr< CommodityIndex > &peakIndex, const QuantLib::Calendar &peakCalendar, QuantLib::Natural peakHoursPerDay) |
Shared initialisation method. More... | |
Helper for bootstrapping using prices that are the average of future settlement prices over a period.
Definition at line 38 of file averageoffpeakpowerhelper.hpp.
AverageOffPeakPowerHelper | ( | const QuantLib::Handle< QuantLib::Quote > & | price, |
const QuantLib::ext::shared_ptr< CommodityIndex > & | index, | ||
const QuantLib::Date & | start, | ||
const QuantLib::Date & | end, | ||
const ext::shared_ptr< FutureExpiryCalculator > & | calc, | ||
const QuantLib::ext::shared_ptr< CommodityIndex > & | peakIndex, | ||
const QuantLib::Calendar & | peakCalendar, | ||
QuantLib::Natural | peakHoursPerDay = 16 |
||
) |
price | The average price quote. |
index | The commodity index. Used to convey the off-peak commodity's name and calendar. The underlying averaging cashflow may reference more than one commodity future indices. |
start | The start date of the averaging period. The averaging period includes the start date if it is a pricing date according to the calendar . |
end | The end date of the averaging period. The averaging period includes the end date if it is a pricing date according to the calendar . |
calc | A FutureExpiryCalculator instance. |
peakIndex | The commodity index for the peak electricity prices. |
peakCalendar | The calendar used to determine peak dates in the averaging period. |
peakHoursPerDay | The number of peak hours per day. |
AverageOffPeakPowerHelper | ( | QuantLib::Real | price, |
const QuantLib::ext::shared_ptr< CommodityIndex > & | index, | ||
const QuantLib::Date & | start, | ||
const QuantLib::Date & | end, | ||
const ext::shared_ptr< FutureExpiryCalculator > & | calc, | ||
const QuantLib::ext::shared_ptr< CommodityIndex > & | peakIndex, | ||
const QuantLib::Calendar & | peakCalendar, | ||
QuantLib::Natural | peakHoursPerDay = 16 |
||
) |
price | The average price. |
index | The commodity index. Used to convey the off-peak commodity's name and calendar. The underlying averaging cashflow may reference more than one commodity future indices. |
start | The start date of the averaging period. The averaging period includes the start date if it is a pricing date according to the calendar . |
end | The end date of the averaging period. The averaging period includes the end date if it is a pricing date according to the calendar . |
calc | A FutureExpiryCalculator instance. |
peakIndex | The commodity index for the peak electricity prices. |
peakCalendar | The calendar used to determine peak dates in the averaging period. |
peakHoursPerDay | The number of peak hours per day. |
|
override |
Definition at line 101 of file averageoffpeakpowerhelper.cpp.
|
override |
Definition at line 110 of file averageoffpeakpowerhelper.cpp.
|
override |
Definition at line 117 of file averageoffpeakpowerhelper.cpp.
|
override |
Definition at line 124 of file averageoffpeakpowerhelper.cpp.
|
private |
Shared initialisation method.
Definition at line 59 of file averageoffpeakpowerhelper.cpp.
|
private |
Definition at line 108 of file averageoffpeakpowerhelper.hpp.
|
private |
Definition at line 109 of file averageoffpeakpowerhelper.hpp.
|
private |
Definition at line 110 of file averageoffpeakpowerhelper.hpp.
|
private |
Definition at line 111 of file averageoffpeakpowerhelper.hpp.
|
private |
Definition at line 112 of file averageoffpeakpowerhelper.hpp.
|
private |
Definition at line 114 of file averageoffpeakpowerhelper.hpp.