QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
FdmExtOUJumpSolver Class Reference

#include <fdmextoujumpsolver.hpp>

+ Inheritance diagram for FdmExtOUJumpSolver:
+ Collaboration diagram for FdmExtOUJumpSolver:

Public Member Functions

 FdmExtOUJumpSolver (Handle< ExtOUWithJumpsProcess > process, ext::shared_ptr< YieldTermStructure > rTS, FdmSolverDesc solverDesc, const FdmSchemeDesc &schemeDesc=FdmSchemeDesc::Hundsdorfer())
 
Real valueAt (Real x, Real y) const
 
- Public Member Functions inherited from LazyObject
 LazyObject ()
 
 ~LazyObject () override=default
 
void update () override
 
bool isCalculated () const
 
void forwardFirstNotificationOnly ()
 
void alwaysForwardNotifications ()
 
void recalculate ()
 
void freeze ()
 
void unfreeze ()
 
- 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 ()
 

Protected Member Functions

void performCalculations () const override
 
- Protected Member Functions inherited from LazyObject
virtual void calculate () const
 

Private Attributes

const Handle< ExtOUWithJumpsProcessprocess_
 
const ext::shared_ptr< YieldTermStructurerTS_
 
const FdmSolverDesc solverDesc_
 
const FdmSchemeDesc schemeDesc_
 
ext::shared_ptr< Fdm2DimSolversolver_
 

Additional Inherited Members

- Public Types inherited from Observer
typedef set_type::iterator iterator
 
- Protected Attributes inherited from LazyObject
bool calculated_ = false
 
bool frozen_ = false
 
bool alwaysForward_
 

Detailed Description

Definition at line 37 of file fdmextoujumpsolver.hpp.

Constructor & Destructor Documentation

◆ FdmExtOUJumpSolver()

FdmExtOUJumpSolver ( Handle< ExtOUWithJumpsProcess process,
ext::shared_ptr< YieldTermStructure rTS,
FdmSolverDesc  solverDesc,
const FdmSchemeDesc schemeDesc = FdmSchemeDesc::Hundsdorfer() 
)

Definition at line 31 of file fdmextoujumpsolver.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ valueAt()

Real valueAt ( Real  x,
Real  y 
) const

Definition at line 50 of file fdmextoujumpsolver.cpp.

+ Here is the call graph for this function:

◆ performCalculations()

void performCalculations ( ) const
overrideprotectedvirtual

This method must implement any calculations which must be (re)done in order to calculate the desired results.

Implements LazyObject.

Definition at line 41 of file fdmextoujumpsolver.cpp.

Member Data Documentation

◆ process_

const Handle<ExtOUWithJumpsProcess> process_
private

Definition at line 50 of file fdmextoujumpsolver.hpp.

◆ rTS_

const ext::shared_ptr<YieldTermStructure> rTS_
private

Definition at line 51 of file fdmextoujumpsolver.hpp.

◆ solverDesc_

const FdmSolverDesc solverDesc_
private

Definition at line 52 of file fdmextoujumpsolver.hpp.

◆ schemeDesc_

const FdmSchemeDesc schemeDesc_
private

Definition at line 53 of file fdmextoujumpsolver.hpp.

◆ solver_

ext::shared_ptr<Fdm2DimSolver> solver_
mutableprivate

Definition at line 55 of file fdmextoujumpsolver.hpp.