70 std::map<Period, vector<Real>>
shifts;
77 map<pair<Period, Period>, Real>
shifts;
106 const vector<StressTestData>&
data()
const {
return data_; }
110 for (
const auto& scenario :
data_) {
111 if (scenario.containsParShifts())
118 for (
const auto& scenario :
data_) {
119 if (scenario.irCurveParShifts)
126 for (
const auto& scenario :
data_) {
127 if (scenario.creditCurveParShifts)
134 for (
const auto& scenario :
data_) {
135 if (scenario.irCapFloorParShifts)
Description of sensitivity shift scenarios.
bool & useSpreadedTermStructures()
vector< StressTestData > & data()
bool useSpreadedTermStructures_
const bool hasScenarioWithParShifts() const
StressTestScenarioData()
Default constructor.
const bool useSpreadedTermStructures() const
virtual void fromXML(XMLNode *node) override
const vector< StressTestData > & data() const
const bool withIrCurveParShifts() const
virtual XMLNode * toXML(ore::data::XMLDocument &doc) const override
const bool withCreditCurveParShifts() const
vector< StressTestData > data_
const bool withIrCapFloorParShifts() const
std::map< Period, vector< Real > > shifts
vector< Period > shiftExpiries
vector< double > shiftStrikes
vector< Period > shiftTenors
map< string, CurveShiftData > discountCurveShifts
bool creditCurveParShifts
map< string, CurveShiftData > yieldCurveShifts
bool containsParShifts() const
map< string, VolShiftData > fxVolShifts
map< string, SpotShiftData > fxShifts
map< string, CurveShiftData > survivalProbabilityShifts
map< string, SpotShiftData > recoveryRateShifts
map< string, SwaptionVolShiftData > swaptionVolShifts
map< string, SpotShiftData > equityShifts
map< string, SpotShiftData > securitySpreadShifts
map< string, CapFloorVolShiftData > capVolShifts
map< string, CurveShiftData > indexCurveShifts
map< string, VolShiftData > equityVolShifts
vector< Period > shiftExpiries
vector< Period > shiftTerms
map< pair< Period, Period >, Real > shifts
vector< Period > shiftExpiries