Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
simmconcentrationisdav1_3.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2018 Quaternion Risk Management Ltd
3 All rights reserved.
4
5 This file is part of ORE, a free-software/open-source library
6 for transparent pricing and risk analysis - http://opensourcerisk.org
7
8 ORE is free software: you can redistribute it and/or modify it
9 under the terms of the Modified BSD License. You should have received a
10 copy of the license along with this program.
11 The license is also available online at <http://opensourcerisk.org>
12
13 This program is distributed on the basis that it will form a useful
14 contribution to risk analytics and model standardisation, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
17*/
18
19/*! \file orea/simm/simmconcentrationisdav1_3.hpp
20 \brief SIMM concentration thresholds for SIMM version R1.3 (3.29)
21*/
22
23#pragma once
24
27
28#include <map>
29#include <set>
30#include <string>
31
32namespace ore {
33namespace analytics {
34
35/*! Class giving the SIMM concentration thresholds as outlined in the document
36 <em>ISDA SIMM Methodology, version R1.3 (based on v3.29: 1 April 2017).
37 Effective Date: April 1, 2017.</em>
38
39 This file used to be called simmconcentrationisdav329.hpp
40 This class used to be called SimmConcentration_ISDA_V329
41
42*/
44public:
45 //! Default constructor that adds fixed known mappings
46 SimmConcentration_ISDA_V1_3(const QuantLib::ext::shared_ptr<SimmBucketMapper>& simmBucketMapper);
47
48 /*! Return the SIMM <em>concentration threshold</em> for a given SIMM
49 <em>RiskType</em> and SIMM <em>Qualifier</em>.
50
51 \warning If the risk type is not covered <code>QL_MAX_REAL</code> is
52 returned i.e. no concentration threshold
53 */
54 QuantLib::Real threshold(const CrifRecord::RiskType& riskType, const std::string& qualifier) const override;
55
56private:
57 //! Help getting SIMM buckets from SIMM qualifiers
58 QuantLib::ext::shared_ptr<SimmBucketMapper> simmBucketMapper_;
59};
60
61} // namespace analytics
62} // namespace ore
QuantLib::Real threshold(const CrifRecord::RiskType &riskType, const std::string &qualifier) const override
QuantLib::ext::shared_ptr< SimmBucketMapper > simmBucketMapper_
Help getting SIMM buckets from SIMM qualifiers.
Abstract base class for classes that map SIMM qualifiers to buckets.
Abstract base class for retrieving SIMM concentration thresholds.