Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
initbuilders.cpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2023 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
20
21#include <orea/app/analytic.hpp>
38
40
41#include <boost/thread/lock_types.hpp>
42#include <boost/thread/shared_mutex.hpp>
43
44namespace ore::analytics {
45
46using namespace ore::data;
47
48void initBuilders(const bool registerOREAnalytics) {
49
50 static boost::shared_mutex mutex;
51 boost::unique_lock<boost::shared_mutex> lock(mutex);
52
54
55 if (registerOREAnalytics) {
58 ORE_REGISTER_ANALYTIC_BUILDER("IM_SCHEDULE", {}, IMScheduleAnalytic, false);
59 ORE_REGISTER_ANALYTIC_BUILDER("PARAMETRIC_VAR", {}, ParametricVarAnalytic, false);
60 ORE_REGISTER_ANALYTIC_BUILDER("PARCONVERSION", {}, ParConversionAnalytic, false);
62 ORE_REGISTER_ANALYTIC_BUILDER("PNL_EXPLAIN", {}, PnlExplainAnalytic, false);
63 ORE_REGISTER_ANALYTIC_BUILDER("PRICING", pricingAnalyticSubAnalytics, PricingAnalytic, false);
64 ORE_REGISTER_ANALYTIC_BUILDER("SCENARIO", {}, ScenarioAnalytic, false);
65 ORE_REGISTER_ANALYTIC_BUILDER("SCENARIO_STATISTICS", {}, ScenarioStatisticsAnalytic, false);
67 ORE_REGISTER_ANALYTIC_BUILDER("XVA", xvaAnalyticSubAnalytics, XvaAnalytic, false);
69 ORE_REGISTER_ANALYTIC_BUILDER("PARSTRESSCONVERSION", {}, ParStressConversionAnalytic, false);
70 ORE_REGISTER_ANALYTIC_BUILDER("ZEROTOPARSHIFT", {}, ZeroToParShiftAnalytic, false);
71 ORE_REGISTER_ANALYTIC_BUILDER("XVA_STRESS", {}, XvaStressAnalytic, false);
72 ORE_REGISTER_ANALYTIC_BUILDER("XVA_SENSITIVITY", {}, XvaSensitivityAnalytic, false);
73 }
74}
75
76} // namespace ore::analytics
ORE Analytics Manager.
ORE IM Schedule Analytic.
add builders to factories
#define ORE_REGISTER_ANALYTIC_BUILDER(NAME, SUBANALYTICS, CLASS, OVERWRITE)
void initBuilders(const bool registerOREAnalytics)
void dataBuilders()
ORE Par-Stresstest-Conversion Analytic.
ORE NPV Lagged Analytic.
ORE Scenario Analytic.
ORE Scenario Statistics Analytics.
ORE SIMM Analytic.
ORE Stresstest Analytic.
xva sensitivity analytic
xva stress analytic
ORE ZeroToPar Shift Analytic.