QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
FdSimpleKlugeExtOUVPPEngine Class Reference

#include <ql/experimental/finitedifferences/fdsimpleklugeextouvppengine.hpp>

+ Inheritance diagram for FdSimpleKlugeExtOUVPPEngine:
+ Collaboration diagram for FdSimpleKlugeExtOUVPPEngine:

Public Types

typedef FdmExtOUJumpModelInnerValue::Shape Shape
 
- Public Types inherited from Observer
typedef set_type::iterator iterator
 

Public Member Functions

 FdSimpleKlugeExtOUVPPEngine (ext::shared_ptr< KlugeExtOUProcess > process, ext::shared_ptr< YieldTermStructure > rTS, ext::shared_ptr< Shape > fuelShape, ext::shared_ptr< Shape > powerShape, Real fuelCostAddon, Size tGrid=1, Size xGrid=50, Size yGrid=10, Size gGrid=20, const FdmSchemeDesc &schemeDesc=FdmSchemeDesc::Hundsdorfer())
 
void calculate () const override
 
- Public Member Functions inherited from GenericEngine< VanillaVPPOption::arguments, VanillaVPPOption::results >
PricingEngine::argumentsgetArguments () const override
 
const PricingEngine::resultsgetResults () const override
 
void reset () override
 
void update () override
 
- Public Member Functions inherited from PricingEngine
 ~PricingEngine () override=default
 
virtual argumentsgetArguments () const =0
 
virtual const resultsgetResults () const =0
 
virtual void reset ()=0
 
virtual void calculate () const =0
 
- Public Member Functions inherited from Observable
 Observable ()
 
 Observable (const Observable &)
 
Observableoperator= (const Observable &)
 
 Observable (Observable &&)=delete
 
Observableoperator= (Observable &&)=delete
 
virtual ~Observable ()=default
 
void notifyObservers ()
 
- Public Member Functions inherited from Observer
 Observer ()=default
 
 Observer (const Observer &)
 
Observeroperator= (const Observer &)
 
virtual ~Observer ()
 
std::pair< iterator, boolregisterWith (const ext::shared_ptr< Observable > &)
 
void registerWithObservables (const ext::shared_ptr< Observer > &)
 
Size unregisterWith (const ext::shared_ptr< Observable > &)
 
void unregisterWithAll ()
 
virtual void update ()=0
 
virtual void deepUpdate ()
 

Private Attributes

const ext::shared_ptr< KlugeExtOUProcessprocess_
 
const ext::shared_ptr< YieldTermStructurerTS_
 
const Real fuelCostAddon_
 
const ext::shared_ptr< ShapefuelShape_
 
const ext::shared_ptr< ShapepowerShape_
 
const Size tGrid_
 
const Size xGrid_
 
const Size yGrid_
 
const Size gGrid_
 
const FdmSchemeDesc schemeDesc_
 

Additional Inherited Members

- Protected Attributes inherited from GenericEngine< VanillaVPPOption::arguments, VanillaVPPOption::results >
VanillaVPPOption::arguments arguments_
 
VanillaVPPOption::results results_
 

Detailed Description

Definition at line 39 of file fdsimpleklugeextouvppengine.hpp.

Member Typedef Documentation

◆ Shape

Definition at line 43 of file fdsimpleklugeextouvppengine.hpp.

Constructor & Destructor Documentation

◆ FdSimpleKlugeExtOUVPPEngine()

FdSimpleKlugeExtOUVPPEngine ( ext::shared_ptr< KlugeExtOUProcess process,
ext::shared_ptr< YieldTermStructure rTS,
ext::shared_ptr< Shape fuelShape,
ext::shared_ptr< Shape powerShape,
Real  fuelCostAddon,
Size  tGrid = 1,
Size  xGrid = 50,
Size  yGrid = 10,
Size  gGrid = 20,
const FdmSchemeDesc schemeDesc = FdmSchemeDesc::Hundsdorfer() 
)

Definition at line 77 of file fdsimpleklugeextouvppengine.cpp.

Member Function Documentation

◆ calculate()

void calculate ( ) const
overridevirtual

Implements PricingEngine.

Definition at line 92 of file fdsimpleklugeextouvppengine.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ process_

const ext::shared_ptr<KlugeExtOUProcess> process_
private

Definition at line 59 of file fdsimpleklugeextouvppengine.hpp.

◆ rTS_

const ext::shared_ptr<YieldTermStructure> rTS_
private

Definition at line 60 of file fdsimpleklugeextouvppengine.hpp.

◆ fuelCostAddon_

const Real fuelCostAddon_
private

Definition at line 61 of file fdsimpleklugeextouvppengine.hpp.

◆ fuelShape_

const ext::shared_ptr<Shape> fuelShape_
private

Definition at line 62 of file fdsimpleklugeextouvppengine.hpp.

◆ powerShape_

const ext::shared_ptr<Shape> powerShape_
private

Definition at line 63 of file fdsimpleklugeextouvppengine.hpp.

◆ tGrid_

const Size tGrid_
private

Definition at line 64 of file fdsimpleklugeextouvppengine.hpp.

◆ xGrid_

const Size xGrid_
private

Definition at line 64 of file fdsimpleklugeextouvppengine.hpp.

◆ yGrid_

const Size yGrid_
private

Definition at line 64 of file fdsimpleklugeextouvppengine.hpp.

◆ gGrid_

const Size gGrid_
private

Definition at line 64 of file fdsimpleklugeextouvppengine.hpp.

◆ schemeDesc_

const FdmSchemeDesc schemeDesc_
private

Definition at line 65 of file fdsimpleklugeextouvppengine.hpp.