#include <orea/scenario/scenariogenerator.hpp>
Public Member Functions | |
StaticScenarioGenerator () | |
void | reset () override |
Reset the generator so calls to next() return the first scenario. More... | |
QuantLib::ext::shared_ptr< ore::analytics::Scenario > | next (const Date &) override |
Return the next scenario for the given date. More... | |
void | setScenario (const QuantLib::ext::shared_ptr< ore::analytics::Scenario > &s) |
Public Member Functions inherited from ScenarioGenerator | |
virtual | ~ScenarioGenerator () |
Default destructor. More... | |
virtual QuantLib::ext::shared_ptr< Scenario > | next (const Date &d)=0 |
Return the next scenario for the given date. More... | |
virtual void | reset ()=0 |
Reset the generator so calls to next() return the first scenario. More... | |
Private Attributes | |
QuantLib::ext::shared_ptr< ore::analytics::Scenario > | s_ |
Definition at line 100 of file scenariogenerator.hpp.
Definition at line 102 of file scenariogenerator.hpp.
|
overridevirtual |
Reset the generator so calls to next() return the first scenario.
This allows re-generation of scenarios if required.
Implements ScenarioGenerator.
Definition at line 104 of file scenariogenerator.hpp.
|
overridevirtual |
Return the next scenario for the given date.
Implements ScenarioGenerator.
Definition at line 105 of file scenariogenerator.hpp.
void setScenario | ( | const QuantLib::ext::shared_ptr< ore::analytics::Scenario > & | s | ) |
Definition at line 107 of file scenariogenerator.hpp.
|
private |
Definition at line 110 of file scenariogenerator.hpp.