38 const QuantLib::ext::shared_ptr<InputParameters>&
inputs,
40 const QuantLib::ext::shared_ptr<MarketDataLoader>& marketDataLoader);
47 const QuantLib::ext::shared_ptr<Analytic>&
getAnalytic(
const std::string& type)
const;
49 const QuantLib::ext::shared_ptr<InputParameters>&
inputs() {
return inputs_; }
50 std::vector<QuantLib::ext::shared_ptr<ore::data::TodaysMarketParameters>>
todaysMarketParams();
51 void runAnalytics(
const QuantLib::ext::shared_ptr<MarketCalibrationReportBase>& marketCalibrationReport =
nullptr);
52 void addAnalytic(
const std::string& label,
const QuantLib::ext::shared_ptr<Analytic>& analytic);
66 const std::map<std::string, std::string>& reportNames = {},
const char sep =
',',
67 const bool commentCharacter =
false,
char quoteChar =
'\0',
const string& nullString =
"#N/A",
68 const std::set<std::string>& lowerHeaderReportNames = {});
71 std::map<std::string, QuantLib::ext::shared_ptr<Analytic>>
analytics_;
72 QuantLib::ext::shared_ptr<InputParameters>
inputs_;
78QuantLib::ext::shared_ptr<AnalyticsManager>
parseAnalytics(
const std::string& s,
79 const QuantLib::ext::shared_ptr<InputParameters>& inputs,
80 const QuantLib::ext::shared_ptr<MarketDataLoader>& marketDataLoader);
std::map< std::string, std::map< std::string, QuantLib::ext::shared_ptr< AggregationScenarioData > > > analytic_mktcubes
std::map< std::string, std::map< std::string, QuantLib::ext::shared_ptr< ore::data::InMemoryReport > > > analytic_reports
std::map< std::string, std::map< std::string, QuantLib::ext::shared_ptr< StressTestScenarioData > > > analytic_stresstests
std::map< std::string, std::map< std::string, QuantLib::ext::shared_ptr< NPVCube > > > analytic_npvcubes
Analytic::analytic_stresstests const stressTests()
const std::set< std::string > & validAnalytics()
std::map< std::string, QuantLib::ext::shared_ptr< Analytic > > analytics()
const QuantLib::ext::shared_ptr< InputParameters > & inputs()
bool hasAnalytic(const std::string &type)
Valid analytics in the analytics manager are the union of analytics types provided by analytics_ map.
const std::set< std::string > & requestedAnalytics()
std::map< std::string, QuantLib::ext::shared_ptr< Analytic > > analytics_
Analytic::analytic_npvcubes const npvCubes()
std::set< std::string > validAnalytics_
QuantLib::ext::shared_ptr< MarketDataLoader > marketDataLoader_
void addAnalytic(const std::string &label, const QuantLib::ext::shared_ptr< Analytic > &analytic)
virtual ~AnalyticsManager()
void toFile(const Analytic::analytic_reports &reports, const std::string &outputPath, const std::map< std::string, std::string > &reportNames={}, const char sep=',', const bool commentCharacter=false, char quoteChar='\0', const string &nullString="#N/A", const std::set< std::string > &lowerHeaderReportNames={})
const QuantLib::ext::shared_ptr< Analytic > & getAnalytic(const std::string &type) const
Analytic::analytic_reports const reports()
void runAnalytics(const QuantLib::ext::shared_ptr< MarketCalibrationReportBase > &marketCalibrationReport=nullptr)
std::vector< QuantLib::ext::shared_ptr< ore::data::TodaysMarketParameters > > todaysMarketParams()
QuantLib::ext::shared_ptr< InputParameters > inputs_
Analytic::analytic_reports reports_
Analytic::analytic_mktcubes const mktCubes()
QuantLib::ext::shared_ptr< AnalyticsManager > parseAnalytics(const std::string &s, const QuantLib::ext::shared_ptr< InputParameters > &inputs, const QuantLib::ext::shared_ptr< MarketDataLoader > &marketDataLoader)