34 static constexpr const char*
LABEL =
"PNL";
43 LOG(
"ASOF date " << io::iso_date(
inputs_->asof()));
46 auto mporAnalytic = AnalyticFactory::instance().build(
"SCENARIO", inputs);
47 if (mporAnalytic.second) {
53 void runAnalytic(
const QuantLib::ext::shared_ptr<ore::data::InMemoryLoader>& loader,
54 const std::set<std::string>& runTypes = {})
override;
void setLabel(const string &label)
void addDependentAnalytic(const std::string &key, const QuantLib::ext::shared_ptr< Analytic > &analytic)
QuantLib::ext::shared_ptr< InputParameters > inputs_
const QuantLib::ext::shared_ptr< InputParameters > & inputs() const
PnlAnalytic(const QuantLib::ext::shared_ptr< InputParameters > &inputs)
void setUpConfigurations() override
const QuantLib::ext::shared_ptr< ore::analytics::Scenario > & t1Scenario() const
void runAnalytic(const QuantLib::ext::shared_ptr< ore::data::InMemoryLoader > &loader, const std::set< std::string > &runTypes={}) override
void setT1Scenario(const QuantLib::ext::shared_ptr< ore::analytics::Scenario > &scenario)
PnlAnalyticImpl(const QuantLib::ext::shared_ptr< InputParameters > &inputs)
void setT0Scenario(const QuantLib::ext::shared_ptr< ore::analytics::Scenario > &scenario)
bool useSpreadedTermStructures_
QuantLib::ext::shared_ptr< ore::analytics::Scenario > t0Scenario_
std::vector< QuantLib::Date > additionalMarketDates() const override
QuantLib::ext::shared_ptr< ore::analytics::Scenario > t1Scenario_
static constexpr const char * mporLookupKey
const QuantLib::Date & mporDate() const
bool useSpreadedTermStructures() const
const QuantLib::ext::shared_ptr< ore::analytics::Scenario > & t0Scenario() const
static constexpr const char * LABEL
void setUseSpreadedTermStructures(const bool useSpreadedTermStructures)