Scenario generator that generates an entire path.
More...
#include <orea/scenario/scenariogenerator.hpp>
|
| | ScenarioPathGenerator (Date today, const vector< Date > &dates, TimeGrid timeGrid) |
| | Constructor.
|
| virtual QuantLib::ext::shared_ptr< Scenario > | next (const Date &d) override |
| | Return the next scenario for the given date.
|
|
virtual | ~ScenarioGenerator () |
| | Default destructor.
|
| virtual void | reset ()=0 |
| | Reset the generator so calls to next() return the first scenario.
|
|
|
virtual std::vector< QuantLib::ext::shared_ptr< Scenario > > | nextPath ()=0 |
|
|
Date | today_ |
|
vector< Date > | dates_ |
|
Size | pathStep_ |
|
TimeGrid | timeGrid_ |
|
std::vector< QuantLib::ext::shared_ptr< Scenario > > | path_ |
Scenario generator that generates an entire path.
◆ ScenarioPathGenerator()
| ScenarioPathGenerator |
( |
Date | today, |
|
|
const vector< Date > & | dates, |
|
|
TimeGrid | timeGrid ) |
Constructor.
- Parameters
-
| today | Today's date |
| dates | Future evaluation dates |
| timeGrid | Associated time grid |
◆ next()
| virtual QuantLib::ext::shared_ptr< Scenario > next |
( |
const Date & | d | ) |
|
|
overridevirtual |