Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
simmconcentrationisdav1_3_38.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_38.hpp
20 \brief SIMM concentration thresholds for SIMM version 1.3.38
21*/
22
23#pragma once
24
27
28#include <map>
29#include <set>
30#include <string>
31
32namespace ore {
33namespace analytics {
34
35/*! This file used to be called simmconcentrationisdav338.hpp
36 This class used to be called SimmConcentration_ISDA_V338
37
38*/
39
40// Do not have documentation for these thresholds. They are copied from the
41// class SimmConfiguration_ISDA_V1_3_38 during refactor.
42
43//! Class giving the SIMM concentration thresholds for v1.3.38
45public:
46 //! Default constructor that adds fixed known mappings
47 SimmConcentration_ISDA_V1_3_38(const QuantLib::ext::shared_ptr<SimmBucketMapper>& simmBucketMapper);
48
49 /*! Return the SIMM <em>concentration threshold</em> for a given SIMM
50 <em>RiskType</em> and SIMM <em>Qualifier</em>.
51
52 \warning If the risk type is not covered <code>QL_MAX_REAL</code> is
53 returned i.e. no concentration threshold
54 */
55 QuantLib::Real threshold(const CrifRecord::RiskType& riskType, const std::string& qualifier) const override;
56
57private:
58 //! Help getting SIMM buckets from SIMM qualifiers
59 QuantLib::ext::shared_ptr<SimmBucketMapper> simmBucketMapper_;
60};
61
62} // namespace analytics
63} // namespace ore
Class giving the SIMM concentration thresholds for v1.3.38.
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.