#include <orea/app/analytic.hpp>
Definition at line 174 of file analytic.hpp.
◆ Impl() [1/2]
◆ Impl() [2/2]
Definition at line 177 of file analytic.hpp.
QuantLib::ext::shared_ptr< InputParameters > inputs_
const QuantLib::ext::shared_ptr< InputParameters > & inputs() const
◆ ~Impl()
◆ runAnalytic()
virtual void runAnalytic |
( |
const QuantLib::ext::shared_ptr< ore::data::InMemoryLoader > & |
loader, |
|
|
const std::set< std::string > & |
runTypes = {} |
|
) |
| |
|
pure virtual |
Implemented in MarketDataAnalyticImpl, IMScheduleAnalyticImpl, ParConversionAnalyticImpl, PnlAnalyticImpl, PnlExplainAnalyticImpl, PricingAnalyticImpl, ScenarioAnalyticImpl, ScenarioStatisticsAnalyticImpl, SimmAnalyticImpl, VarAnalyticImpl, XvaAnalyticImpl, XvaSensitivityAnalyticImpl, and XvaStressAnalyticImpl.
◆ setUpConfigurations()
virtual void setUpConfigurations |
( |
| ) |
|
|
virtual |
Reimplemented in MarketDataAnalyticImpl, IMScheduleAnalyticImpl, ParConversionAnalyticImpl, ParStressConversionAnalyticImpl, PnlAnalyticImpl, PnlExplainAnalyticImpl, PricingAnalyticImpl, ScenarioAnalyticImpl, ScenarioStatisticsAnalyticImpl, SimmAnalyticImpl, StressTestAnalyticImpl, VarAnalyticImpl, ParametricVarAnalyticImpl, HistoricalSimulationVarAnalyticImpl, XvaAnalyticImpl, XvaSensitivityAnalyticImpl, XvaStressAnalyticImpl, and ZeroToParShiftAnalyticImpl.
Definition at line 184 of file analytic.hpp.
◆ engineFactory()
build an engine factory
Reimplemented in XvaAnalyticImpl.
Definition at line 161 of file analytic.cpp.
161 {
162 LOG(
"Analytic::engineFactory() called");
163
164
165 QuantLib::ext::shared_ptr<EngineData> edCopy = QuantLib::ext::make_shared<EngineData>(*
inputs_->pricingEngine());
167 edCopy->globalParameters()["RunType"] = "NPV";
172 LOG(
"MarketContext::pricing = " <<
inputs_->marketConfig(
"pricing"));
175 *
inputs_->iborFallbackConfig());
176}
Analytic * analytic() const
bool generateAdditionalResults() const
Configurations & configurations()
const QuantLib::ext::shared_ptr< ore::data::Market > & market() const
std::string to_string(const LocationInfo &l)
◆ setLabel()
void setLabel |
( |
const string & |
label | ) |
|
Definition at line 189 of file analytic.hpp.
std::string label_
label for logging purposes primarily
const std::string & label() const
◆ label()
const std::string & label |
( |
| ) |
const |
◆ setAnalytic()
◆ analytic()
◆ setInputs()
void setInputs |
( |
const QuantLib::ext::shared_ptr< InputParameters > & |
inputs | ) |
|
◆ generateAdditionalResults()
bool generateAdditionalResults |
( |
| ) |
const |
Definition at line 196 of file analytic.hpp.
bool generateAdditionalResults_
◆ setGenerateAdditionalResults()
void setGenerateAdditionalResults |
( |
const bool |
generateAdditionalResults | ) |
|
◆ hasDependentAnalytic()
bool hasDependentAnalytic |
( |
const std::string & |
key | ) |
|
Definition at line 201 of file analytic.hpp.
201 {
203 }
std::map< std::string, QuantLib::ext::shared_ptr< Analytic > > dependentAnalytics_
◆ dependentAnalytic() [1/2]
QuantLib::ext::shared_ptr< T > dependentAnalytic |
( |
const std::string & |
key | ) |
const |
Definition at line 251 of file analytic.hpp.
251 {
254 QuantLib::ext::shared_ptr<T>
analytic = QuantLib::ext::dynamic_pointer_cast<T>(it->second);
255 QL_REQUIRE(
analytic,
"Could not cast analytic for key " << key);
257}
◆ dependentAnalytic() [2/2]
QuantLib::ext::shared_ptr< Analytic > dependentAnalytic |
( |
const std::string & |
key | ) |
const |
Definition at line 107 of file analytic.cpp.
107 {
110 return it->second;
111}
◆ dependentAnalytics()
const std::map< std::string, QuantLib::ext::shared_ptr< Analytic > > & dependentAnalytics |
( |
| ) |
const |
◆ addDependentAnalytic()
void addDependentAnalytic |
( |
const std::string & |
key, |
|
|
const QuantLib::ext::shared_ptr< Analytic > & |
analytic |
|
) |
| |
◆ allDependentAnalytics()
std::vector< QuantLib::ext::shared_ptr< Analytic > > allDependentAnalytics |
( |
| ) |
const |
Definition at line 97 of file analytic.cpp.
97 {
98 std::vector<QuantLib::ext::shared_ptr<Analytic>> analytics;
100 analytics.push_back(a);
101 auto das = a->allDependentAnalytics();
102 analytics.insert(end(analytics), begin(das), end(das));
103 }
104 return analytics;
105}
◆ additionalMarketDates()
virtual std::vector< QuantLib::Date > additionalMarketDates |
( |
| ) |
const |
|
virtual |
◆ inputs_
◆ label_
label for logging purposes primarily
Definition at line 219 of file analytic.hpp.
◆ dependentAnalytics_
std::map<std::string, QuantLib::ext::shared_ptr<Analytic> > dependentAnalytics_ |
|
protected |
◆ analytic_
◆ generateAdditionalResults_
bool generateAdditionalResults_ = false |
|
private |