Logo
Reference manual - version orea_version
Public Member Functions | List of all members
LgmScenarioGenerator Class Reference

Scenario Generator using LGM model paths. More...

#include <orea/scenario/lgmscenariogenerator.hpp>

+ Inheritance diagram for LgmScenarioGenerator:

Public Member Functions

 LgmScenarioGenerator (boost::shared_ptr< QuantExt::LGM > model, boost::shared_ptr< QuantExt::MultiPathGeneratorBase > multiPathGenerator, boost::shared_ptr< ScenarioFactory > scenarioFactory, boost::shared_ptr< ScenarioSimMarketParameters > simMarketConfig, Date today, DateGrid grid)
 Constructor.
 
 ~LgmScenarioGenerator ()
 Destructor.
 
std::vector< boost::shared_ptr< Scenario > > nextPath () override
 
void reset () override
 Reset the generator so calls to next() return the first scenario. More...
 
- Public Member Functions inherited from ScenarioPathGenerator
 ScenarioPathGenerator (Date today, const vector< Date > &dates, TimeGrid timeGrid)
 Constructor. More...
 
virtual boost::shared_ptr< Scenarionext (const Date &d) override
 Return the next scenario for the given date.
 
- Public Member Functions inherited from ScenarioGenerator
virtual ~ScenarioGenerator ()
 Default destructor.
 

Additional Inherited Members

- Protected Attributes inherited from ScenarioPathGenerator
Date today_
 
vector< Date > dates_
 
Size pathStep_
 
TimeGrid timeGrid_
 
std::vector< boost::shared_ptr< Scenario > > path_
 

Detailed Description

Scenario Generator using LGM model paths.

The generator expects

Member Function Documentation

◆ reset()

void reset ( )
overridevirtual

Reset the generator so calls to next() return the first scenario.

This allows re-generation of scenarios if required.

Implements ScenarioGenerator.