24using namespace boost::filesystem;
30 const auto stressData =
inputs_->parStressScenarioData();
40 const std::set<std::string>& runTypes) {
44 LOG(
"ParStressConversionAnalytic::runAnalytic called");
46 Settings::instance().evaluationDate() =
inputs_->asof();
47 ObservationMode::instance().setMode(
inputs_->observationModel());
49 CONSOLEW(
"ParStressConversionAnalytic: Build Market");
53 CONSOLEW(
"ParStressConversionAnalytic: Convert ParStressScenario");
54 LOG(
"Par Stress Conversion Analysis called");
55 QuantLib::ext::shared_ptr<StressTestScenarioData> scenarioData =
inputs_->parStressScenarioData();
56 if (scenarioData !=
nullptr && scenarioData->hasScenarioWithParShifts()) {
59 analytic()->configurations().simMarketParams,
analytic()->configurations().sensiScenarioData,
63 LOG(
"Finished par to zero scenarios conversion");
Analytic * analytic() const
const std::string & label() const
void setGenerateAdditionalResults(const bool generateAdditionalResults)
QuantLib::ext::shared_ptr< InputParameters > inputs_
Configurations & configurations()
analytic_stresstests & stressTests()
virtual void buildMarket(const QuantLib::ext::shared_ptr< ore::data::InMemoryLoader > &loader, const bool marketRequired=true)
ParStressConversionAnalytic(const boost::shared_ptr< InputParameters > &inputs)
void setUpConfigurations() override
void runAnalytic(const boost::shared_ptr< ore::data::InMemoryLoader > &loader, const std::set< std::string > &runTypes={}) override
QuantLib::ext::shared_ptr< ore::analytics::StressTestScenarioData > convertStressScenarioData(const QuantLib::ext::shared_ptr< ore::analytics::StressTestScenarioData > &scenarioData) const
Convert all par shifts to zero shifts for all scenarios defined in the stresstest.
Singleton class to hold global Observation Mode.
ORE Par-Stresstest-Conversion Analytic.
Convert all par shifts in a stress test to a zero shifts.
bool sensitivityConfigRequired
QuantLib::ext::shared_ptr< ore::analytics::SensitivityScenarioData > sensiScenarioData
QuantLib::ext::shared_ptr< ore::data::TodaysMarketParameters > todaysMarketParams
bool simulationConfigRequired
Booleans to determine if these configs are needed.
QuantLib::ext::shared_ptr< ore::analytics::ScenarioSimMarketParameters > simMarketParams