Logo
Reference manual - version orea_version
Classes | Public Member Functions | List of all members
SensitivityScenarioData Class Reference

Description of sensitivity shift scenarios. More...

#include <orea/scenario/sensitivityscenariodata.hpp>

+ Inheritance diagram for SensitivityScenarioData:

Classes

struct  BaseCorrelationShiftData
 
struct  CapFloorVolShiftData
 
struct  CapFloorVolShiftParData
 
struct  CdsVolShiftData
 
struct  CurveShiftData
 
struct  CurveShiftParData
 
struct  GenericYieldVolShiftData
 
struct  ShiftData
 
struct  SpotShiftData
 
struct  VolShiftData
 

Public Member Functions

 SensitivityScenarioData (bool parConversion=true)
 Default constructor.
 
Inspectors
const map< string, boost::shared_ptr< CurveShiftData > > & discountCurveShiftData () const
 
const map< string, boost::shared_ptr< CurveShiftData > > & indexCurveShiftData () const
 
const map< string, boost::shared_ptr< CurveShiftData > > & yieldCurveShiftData () const
 
const map< string, SpotShiftData > & fxShiftData () const
 
const map< string, boost::shared_ptr< CapFloorVolShiftData > > & capFloorVolShiftData () const
 
const map< string, GenericYieldVolShiftData > & swaptionVolShiftData () const
 
const map< string, GenericYieldVolShiftData > & yieldVolShiftData () const
 
const map< string, VolShiftData > & fxVolShiftData () const
 
const map< string, CdsVolShiftData > & cdsVolShiftData () const
 
const map< string, BaseCorrelationShiftData > & baseCorrelationShiftData () const
 
const map< string, boost::shared_ptr< CurveShiftData > > & zeroInflationCurveShiftData () const
 
const map< string, boost::shared_ptr< CurveShiftData > > & yoyInflationCurveShiftData () const
 
const map< string, boost::shared_ptr< CapFloorVolShiftData > > & yoyInflationCapFloorVolShiftData () const
 
const map< string, boost::shared_ptr< CapFloorVolShiftData > > & zeroInflationCapFloorVolShiftData () const
 
const map< string, string > & creditCcys () const
 
const map< string, boost::shared_ptr< CurveShiftData > > & creditCurveShiftData () const
 
const map< string, SpotShiftData > & equityShiftData () const
 
const map< string, VolShiftData > & equityVolShiftData () const
 
const map< string, boost::shared_ptr< CurveShiftData > > & dividendYieldShiftData () const
 
const map< string, string > & commodityCurrencies () const
 
const map< string, boost::shared_ptr< CurveShiftData > > & commodityCurveShiftData () const
 
const map< string, VolShiftData > & commodityVolShiftData () const
 
const map< string, VolShiftData > & correlationShiftData () const
 
const map< string, SpotShiftData > & securityShiftData () const
 
const vector< pair< string, string > > & crossGammaFilter () const
 
const bool computeGamma () const
 
const bool useSpreadedTermStructures () const
 
const ShiftDatashiftData (const ore::analytics::RiskFactorKey::KeyType &keyType, const std::string &name) const
 Give back the shift data for the given risk factor type, keyType, with the given name.
 
bool twoSidedDelta (const RiskFactorKey::KeyType &keyType) const
 Check if a two sided delta has been configured for the given risk factor key type, keyType.
 
const std::set< RiskFactorKey::KeyType > & twoSidedDeltas () const
 Return the set of risk factor key types configured for two sided delta.
 
Setters
bool & parConversion ()
 
map< string, boost::shared_ptr< CurveShiftData > > & discountCurveShiftData ()
 
map< string, boost::shared_ptr< CurveShiftData > > & indexCurveShiftData ()
 
map< string, boost::shared_ptr< CurveShiftData > > & yieldCurveShiftData ()
 
map< string, SpotShiftData > & fxShiftData ()
 
map< string, GenericYieldVolShiftData > & swaptionVolShiftData ()
 
map< string, GenericYieldVolShiftData > & yieldVolShiftData ()
 
map< string, boost::shared_ptr< CapFloorVolShiftData > > & capFloorVolShiftData ()
 
map< string, VolShiftData > & fxVolShiftData ()
 
map< string, CdsVolShiftData > & cdsVolShiftData ()
 
map< string, BaseCorrelationShiftData > & baseCorrelationShiftData ()
 
map< string, boost::shared_ptr< CurveShiftData > > & zeroInflationCurveShiftData ()
 
map< string, string > & creditCcys ()
 
map< string, boost::shared_ptr< CurveShiftData > > & creditCurveShiftData ()
 
map< string, boost::shared_ptr< CurveShiftData > > & yoyInflationCurveShiftData ()
 
map< string, boost::shared_ptr< CapFloorVolShiftData > > & yoyInflationCapFloorVolShiftData ()
 
map< string, boost::shared_ptr< CapFloorVolShiftData > > & zeroInflationCapFloorVolShiftData ()
 
map< string, SpotShiftData > & equityShiftData ()
 
map< string, boost::shared_ptr< CurveShiftData > > & dividendYieldShiftData ()
 
map< string, VolShiftData > & equityVolShiftData ()
 
map< string, string > & commodityCurrencies ()
 
map< string, boost::shared_ptr< CurveShiftData > > & commodityCurveShiftData ()
 
map< string, VolShiftData > & commodityVolShiftData ()
 
map< string, VolShiftData > & correlationShiftData ()
 
map< string, SpotShiftData > & securityShiftData ()
 
vector< pair< string, string > > & crossGammaFilter ()
 
bool & computeGamma ()
 
bool & useSpreadedTermStructures ()
 
std::set< RiskFactorKey::KeyType > & twoSidedDeltas ()
 
Serialisation
virtual void fromXML (XMLNode *node) override
 
virtual XMLNode * toXML (ore::data::XMLDocument &doc) override
 
- Public Member Functions inherited from XMLSerializable
void fromXMLString (const std::string &xml)
 
std::string toXMLString ()
 

Equality Operators

map< string, boost::shared_ptr< CurveShiftData > > discountCurveShiftData_
 
map< string, boost::shared_ptr< CurveShiftData > > indexCurveShiftData_
 
map< string, boost::shared_ptr< CurveShiftData > > yieldCurveShiftData_
 
map< string, SpotShiftDatafxShiftData_
 
map< string, boost::shared_ptr< CapFloorVolShiftData > > capFloorVolShiftData_
 
map< string, GenericYieldVolShiftDataswaptionVolShiftData_
 
map< string, GenericYieldVolShiftDatayieldVolShiftData_
 
map< string, VolShiftDatafxVolShiftData_
 
map< string, CdsVolShiftDatacdsVolShiftData_
 
map< string, BaseCorrelationShiftDatabaseCorrelationShiftData_
 
map< string, boost::shared_ptr< CurveShiftData > > zeroInflationCurveShiftData_
 
map< string, boost::shared_ptr< CurveShiftData > > yoyInflationCurveShiftData_
 
map< string, boost::shared_ptr< CapFloorVolShiftData > > yoyInflationCapFloorVolShiftData_
 
map< string, boost::shared_ptr< CapFloorVolShiftData > > zeroInflationCapFloorVolShiftData_
 
map< string, string > creditCcys_
 
map< string, boost::shared_ptr< CurveShiftData > > creditCurveShiftData_
 
map< string, SpotShiftDataequityShiftData_
 
map< string, VolShiftDataequityVolShiftData_
 
map< string, boost::shared_ptr< CurveShiftData > > dividendYieldShiftData_
 
map< string, std::string > commodityCurrencies_
 
map< string, boost::shared_ptr< CurveShiftData > > commodityCurveShiftData_
 
map< string, VolShiftDatacorrelationShiftData_
 
map< string, VolShiftDatacommodityVolShiftData_
 
map< string, SpotShiftDatasecurityShiftData_
 
vector< pair< string, string > > crossGammaFilter_
 
bool computeGamma_
 
bool useSpreadedTermStructures_
 
bool parConversion_
 
std::set< RiskFactorKey::KeyTypetwoSidedDeltas_
 
string getIndexCurrency (string indexName)
 Utilities.
 
void shiftDataFromXML (XMLNode *child, ShiftData &data)
 
void curveShiftDataFromXML (XMLNode *child, CurveShiftData &data)
 
void volShiftDataFromXML (XMLNode *child, VolShiftData &data, const bool requireShiftStrikes=true)
 
void shiftDataToXML (ore::data::XMLDocument &doc, XMLNode *node, const ShiftData &data) const
 toXML helper methods
 
void curveShiftDataToXML (ore::data::XMLDocument &doc, XMLNode *node, const CurveShiftData &data) const
 
void volShiftDataToXML (ore::data::XMLDocument &doc, XMLNode *node, const VolShiftData &data) const
 

Detailed Description

Description of sensitivity shift scenarios.

Member Data Documentation

◆ twoSidedDeltas_

std::set<RiskFactorKey::KeyType> twoSidedDeltas_
protected

Set of risk factor keys for which a two sided delta has been configured.