26#include <boost/make_shared.hpp>
30#include <ql/time/calendar.hpp>
50 const QuantLib::ext::shared_ptr<HistoricalScenarioReader>& scenarioReader,
52 const QuantLib::Date& startDate,
54 const QuantLib::Date& endDate,
61 const boost::shared_ptr<HistoricalScenarioReader>& scenarioReader,
63 const std::set<QuantLib::Date>&
dates);
68 const std::vector<QuantLib::ext::shared_ptr<ore::analytics::Scenario>>& scenarios,
70 const std::set<QuantLib::Date>&
dates);
73 QuantLib::ext::shared_ptr<ore::analytics::Scenario>
getHistoricalScenario(
const QuantLib::Date& date)
const;
85 const std::vector<QuantLib::Date>&
dates()
const {
return dates_; }
Class for loading historical scenarios.
HistoricalScenarioLoader()
Default constructor.
std::vector< QuantLib::Date > dates_
HistoricalScenarioLoader(const boost::shared_ptr< HistoricalScenarioReader > &scenarioReader, const std::set< QuantLib::Date > &dates)
HistoricalScenarioLoader(const QuantLib::ext::shared_ptr< HistoricalScenarioReader > &scenarioReader, const QuantLib::Date &startDate, const QuantLib::Date &endDate, const QuantLib::Calendar &calendar)
QuantLib::ext::shared_ptr< ore::analytics::Scenario > getHistoricalScenario(const QuantLib::Date &date) const
Get a Scenario for a given date.
QuantLib::Size numScenarios() const
Number of scenarios.
const std::vector< QuantLib::ext::shared_ptr< ore::analytics::Scenario > > & historicalScenarios() const
The historical scenarios.
std::vector< QuantLib::Date > & dates()
Set historical scenario dates.
std::vector< QuantLib::ext::shared_ptr< ore::analytics::Scenario > > & historicalScenarios()
Set historical scenarios.
std::vector< QuantLib::ext::shared_ptr< ore::analytics::Scenario > > historicalScenarios_
const std::vector< QuantLib::Date > & dates() const
The historical scenario dates.
historical scenario reader
factory classes for scenarios