Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
crlgmbuilder.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2016 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#pragma once
20
21#include <map>
22#include <ostream>
23#include <vector>
24
25
29
30namespace ore {
31using namespace data;
32namespace data {
33using namespace QuantLib;
34
36public:
37 /*! the configuration should refer to the calibration configuration here,
38 alternative discounting curves are then usually set in the pricing
39 engines for swaptions etc. */
40 /*! this builder should be replaced by the OREData standard builder for cr lgm */
41 CrLgmBuilder(const QuantLib::ext::shared_ptr<ore::data::Market>& market, const QuantLib::ext::shared_ptr<CrLgmData>& data,
42 const std::string& configuration = Market::defaultConfiguration);
43 QuantLib::ext::shared_ptr<QuantExt::CrLgm1fParametrization> parametrization() const { return parametrization_; }
44
45 bool requiresRecalibration() const override { return false; }
46 void performCalculations() const override {}
47
48private:
49 // void buildOptionBasket();
50 QuantLib::ext::shared_ptr<ore::data::Market> market_;
51 const std::string configuration_;
52 QuantLib::ext::shared_ptr<CrLgmData> data_;
53 QuantLib::ext::shared_ptr<QuantExt::CrLgm1fParametrization> parametrization_;
54 RelinkableHandle<DefaultProbabilityTermStructure> modelDefaultCurve_;
55};
56
57} // namespace data
58} // namespace ore
RelinkableHandle< DefaultProbabilityTermStructure > modelDefaultCurve_
const std::string configuration_
void performCalculations() const override
QuantLib::ext::shared_ptr< QuantExt::CrLgm1fParametrization > parametrization() const
bool requiresRecalibration() const override
QuantLib::ext::shared_ptr< ore::data::Market > market_
QuantLib::ext::shared_ptr< CrLgmData > data_
QuantLib::ext::shared_ptr< QuantExt::CrLgm1fParametrization > parametrization_
static const string defaultConfiguration
Default configuration label.
Definition: market.hpp:296
CR component data for the cross asset model.
@ data
Definition: log.hpp:77
Serializable Credit Default Swap.
Definition: namespaces.docs:23