106 const QuantLib::ext::shared_ptr<Scenario>&
baseScenario,
107 const QuantLib::ext::shared_ptr<ScenarioSimMarketParameters>& simMarketData,
108 const QuantLib::ext::shared_ptr<ScenarioSimMarket>& simMarket,
109 const QuantLib::ext::shared_ptr<ScenarioFactory>& sensiScenarioFactory,
110 const bool overrideTenors,
const std::string& sensitivityTemplate = std::string(),
111 const bool continueOnError =
false,
181 Size strikeBucket,
bool up,
ShiftScheme shiftScheme);
201 QuantLib::Size strikeBucket,
bool up,
ShiftScheme shiftScheme);
Data types stored in the scenario class.
KeyType
Risk Factor types.
Sensitivity Scenario Generator.
const std::map< RiskFactorKey, QuantLib::Real > & baseValues() const
ScenarioDescription fxVolScenarioDescription(string ccypair, Size expiryBucket, Size strikeBucket, bool up, ShiftScheme shiftScheme)
ScenarioDescription indexScenarioDescription(string index, Size bucket, bool up, ShiftScheme shiftScheme)
std::map< RiskFactorKey, ShiftScheme > shiftSchemes_
Holds the delta shift schemes for each risk factor key.
QuantLib::ext::shared_ptr< ScenarioFactory > sensiScenarioFactory_
ScenarioDescription correlationScenarioDescription(string pair, Size expiryBucket, Size strikeBucket, bool up, ShiftScheme shiftScheme)
QuantLib::ext::shared_ptr< SensitivityScenarioData > sensitivityData_
void generateYoYInflationCapFloorVolScenarios(bool up)
ScenarioDescription yieldScenarioDescription(string name, Size bucket, bool up, ShiftScheme shiftScheme)
void generateYoYInflationScenarios(bool up)
ScenarioDescription commodityVolScenarioDescription(const std::string &commodityName, QuantLib::Size expiryBucket, QuantLib::Size strikeBucket, bool up, ShiftScheme shiftScheme)
ScenarioDescription fxScenarioDescription(string ccypair, bool up, ShiftScheme shiftScheme)
ScenarioDescription dividendYieldScenarioDescription(string equity, Size bucket, bool up, ShiftScheme shiftScheme)
void generateSwaptionVolScenarios(bool up)
void generateZeroInflationCapFloorVolScenarios(bool up)
ScenarioDescription zeroInflationCapFloorVolScenarioDescription(string name, Size expiryBucket, Size strikeBucket, bool up, ShiftScheme shiftScheme)
const std::map< RiskFactorKey, QuantLib::Real > & shiftSizes() const
void generateZeroInflationScenarios(bool up)
void generateIndexCurveScenarios(bool up)
const bool continueOnError_
QuantLib::ext::shared_ptr< Scenario > baseScenarioAbsolute() const
ScenarioDescription securitySpreadScenarioDescription(string bond, bool up, ShiftScheme shiftScheme)
ScenarioDescription yoyInflationScenarioDescription(string index, Size bucket, bool up, ShiftScheme shiftScheme)
~SensitivityScenarioGenerator()
Default destructor.
void generateCapFloorVolScenarios(bool up)
ScenarioDescription zeroInflationScenarioDescription(string index, Size bucket, bool up, ShiftScheme shiftScheme)
void generateCommodityCurveScenarios(bool up)
std::map< RiskFactorKey, QuantLib::Real > baseValues_
Holds the base valuesfor each risk factor key.
void storeShiftData(const RiskFactorKey &key, const Real rate, const Real newRate)
std::map< RiskFactorKey, QuantLib::Real > shiftSizes_
Holds the shift sizes for each risk factor key.
ScenarioDescription baseCorrelationScenarioDescription(string indexName, Size lossLevelBucket, Size termBucket, bool up, ShiftScheme shiftScheme)
ScenarioDescription survivalProbabilityScenarioDescription(string name, Size bucket, bool up, ShiftScheme shiftScheme)
void generateYieldCurveScenarios(bool up)
QuantLib::ext::shared_ptr< Scenario > baseScenarioAbsolute_
void generateEquityVolScenarios(bool up)
ScenarioDescription equityVolScenarioDescription(string equity, Size expiryBucket, Size strikeBucket, bool up, ShiftScheme shiftScheme)
void generateBaseCorrelationScenarios(bool up)
ScenarioDescription CdsVolScenarioDescription(string name, Size expiryBucket, Size strikeBucket, bool up, ShiftScheme shiftScheme)
void generateYieldVolScenarios(bool up)
ScenarioDescription yoyInflationCapFloorVolScenarioDescription(string name, Size expiryBucket, Size strikeBucket, bool up, ShiftScheme shiftScheme)
void generateDiscountCurveScenarios(bool up)
bool isScenarioRelevant(bool up, SensitivityScenarioData::ShiftData &data) const
void generateGenericYieldVolScenarios(bool up, RiskFactorKey::KeyType rfType)
ScenarioDescription yieldVolScenarioDescription(string securityId, Size expiryBucket, Size termBucket, bool up, ShiftScheme shiftScheme)
const std::map< RiskFactorKey, ShiftScheme > & shiftSchemes() const
void generateCdsVolScenarios(bool up)
ShiftScheme getShiftScheme(SensitivityScenarioData::ShiftData &data) const
void generateSecuritySpreadScenarios(bool up)
std::string sensitivityTemplate_
const bool overrideTenors_
Size numScenarios() const
void generateFxScenarios(bool up)
ScenarioDescription discountScenarioDescription(string ccy, Size bucket, bool up, ShiftScheme shiftScheme)
ScenarioDescription swaptionVolScenarioDescription(string ccy, Size expiryBucket, Size termBucket, Size strikeBucket, bool up, ShiftScheme shiftScheme)
ShiftType getShiftType(SensitivityScenarioData::ShiftData &data) const
void generateSurvivalProbabilityScenarios(bool up)
ScenarioDescription commodityCurveScenarioDescription(const std::string &commodityName, QuantLib::Size bucket, bool up, ShiftScheme shiftScheme)
void generateFxVolScenarios(bool up)
Real getShiftSize(SensitivityScenarioData::ShiftData &data) const
ScenarioDescription capFloorVolScenarioDescription(string ccy, Size expiryBucket, Size strikeBucket, bool up, bool isAtm, ShiftScheme shiftScheme)
void generateCommodityVolScenarios(bool up)
void generateDividendYieldScenarios(bool up)
ScenarioDescription equityScenarioDescription(string equity, bool up, ShiftScheme shiftScheme)
void generateCorrelationScenarios(bool up)
void generateEquityScenarios(bool up)
Shift Scenario Generator.
const QuantLib::ext::shared_ptr< Scenario > & baseScenario()
Return the base scenario, i.e. cached initial values of all relevant market points.
std::vector< QuantLib::ext::shared_ptr< Scenario > > scenarios_
factory classes for scenarios
Scenario generator base classes.
A Market class that can be updated by Scenarios.
A class to hold the parametrisation for building sensitivity scenarios.
Shift scenario generation.