#include <orea/app/analytics/varanalytic.hpp>
Definition at line 32 of file varanalytic.hpp.
◆ VarAnalyticImpl()
Definition at line 34 of file varanalytic.hpp.
35 : Analytic::Impl(inputs) {
37 }
void setLabel(const string &label)
const std::string & label() const
◆ runAnalytic()
void runAnalytic |
( |
const QuantLib::ext::shared_ptr< ore::data::InMemoryLoader > & |
loader, |
|
|
const std::set< std::string > & |
runTypes = {} |
|
) |
| |
|
overridevirtual |
Implements Analytic::Impl.
Definition at line 43 of file varanalytic.cpp.
44 {
46 LOG(
"Running parametric VaR");
47
48 Settings::instance().evaluationDate() =
inputs_->asof();
49 ObservationMode::instance().setMode(
inputs_->observationModel());
50
51 LOG(
"VAR: Build Market");
52 CONSOLEW(
"Risk: Build Market for VaR");
55
56 CONSOLEW(
"Risk: Build Portfolio for VaR");
59
61 QL_REQUIRE(
varReport_,
"No Var Report created");
62
63 LOG(
"Call VaR calculation");
65 ext::shared_ptr<MarketRiskReport::Reports> reports = ext::make_shared<MarketRiskReport::Reports>();
66 QuantLib::ext::shared_ptr<InMemoryReport> varReport = QuantLib::ext::make_shared<InMemoryReport>();
67 reports->add(varReport);
68
71
73
76}
Analytic * analytic() const
std::string label_
label for logging purposes primarily
QuantLib::ext::shared_ptr< InputParameters > inputs_
analytic_reports & reports()
Result reports.
virtual void buildMarket(const QuantLib::ext::shared_ptr< ore::data::InMemoryLoader > &loader, const bool marketRequired=true)
virtual void buildPortfolio()
virtual void setVarReport(const QuantLib::ext::shared_ptr< ore::data::InMemoryLoader > &loader)
QuantLib::ext::shared_ptr< VarReport > varReport_
◆ setUpConfigurations()
void setUpConfigurations |
( |
| ) |
|
|
overridevirtual |
◆ setVarReport()
◆ varReport_
QuantLib::ext::shared_ptr<VarReport> varReport_ |
|
protected |