#include <boost/test/unit_test.hpp>
#include <orea/scenario/scenariosimmarket.hpp>
#include <orea/scenario/scenariosimmarketparameters.hpp>
#include <ored/configuration/conventions.hpp>
#include <ored/marketdata/market.hpp>
#include <ored/marketdata/marketimpl.hpp>
#include <ored/utilities/log.hpp>
#include <oret/toplevelfixture.hpp>
#include <ql/termstructures/credit/flathazardrate.hpp>
#include <ql/termstructures/volatility/capfloor/constantcapfloortermvol.hpp>
#include <ql/termstructures/volatility/equityfx/blackconstantvol.hpp>
#include <ql/termstructures/volatility/swaption/swaptionconstantvol.hpp>
#include <ql/termstructures/yield/flatforward.hpp>
#include <ql/time/daycounters/actualactual.hpp>
#include <test/oreatoplevelfixture.hpp>
#include "testmarket.hpp"
#include <ql/indexes/ibor/all.hpp>
Go to the source code of this file.
Functions | |
void | testFxSpot (QuantLib::ext::shared_ptr< ore::data::Market > &initMarket, QuantLib::ext::shared_ptr< ore::analytics::ScenarioSimMarket > &simMarket, QuantLib::ext::shared_ptr< analytics::ScenarioSimMarketParameters > ¶meters) |
void | testDiscountCurve (QuantLib::ext::shared_ptr< ore::data::Market > &initMarket, QuantLib::ext::shared_ptr< ore::analytics::ScenarioSimMarket > &simMarket, QuantLib::ext::shared_ptr< analytics::ScenarioSimMarketParameters > ¶meters) |
void | testIndexCurve (QuantLib::ext::shared_ptr< ore::data::Market > &initMarket, QuantLib::ext::shared_ptr< ore::analytics::ScenarioSimMarket > &simMarket, QuantLib::ext::shared_ptr< analytics::ScenarioSimMarketParameters > ¶meters) |
void | testSwaptionVolCurve (QuantLib::ext::shared_ptr< ore::data::Market > &initMarket, QuantLib::ext::shared_ptr< ore::analytics::ScenarioSimMarket > &simMarket, QuantLib::ext::shared_ptr< analytics::ScenarioSimMarketParameters > ¶meters) |
void | testFxVolCurve (QuantLib::ext::shared_ptr< data::Market > &initMarket, QuantLib::ext::shared_ptr< analytics::ScenarioSimMarket > &simMarket, QuantLib::ext::shared_ptr< analytics::ScenarioSimMarketParameters > ¶meters) |
void | testDefaultCurve (QuantLib::ext::shared_ptr< ore::data::Market > &initMarket, QuantLib::ext::shared_ptr< ore::analytics::ScenarioSimMarket > &simMarket, QuantLib::ext::shared_ptr< analytics::ScenarioSimMarketParameters > ¶meters) |
void | testZeroInflationCurve (QuantLib::ext::shared_ptr< ore::data::Market > &initMarket, QuantLib::ext::shared_ptr< ore::analytics::ScenarioSimMarket > &simMarket, QuantLib::ext::shared_ptr< analytics::ScenarioSimMarketParameters > ¶meters) |
void | testCorrelationCurve (QuantLib::ext::shared_ptr< ore::data::Market > &initMarket, QuantLib::ext::shared_ptr< ore::analytics::ScenarioSimMarket > &simMarket, QuantLib::ext::shared_ptr< analytics::ScenarioSimMarketParameters > ¶meters) |
void | testToXML (QuantLib::ext::shared_ptr< analytics::ScenarioSimMarketParameters > params) |
BOOST_AUTO_TEST_CASE (testScenarioSimMarket) | |
void testFxSpot | ( | QuantLib::ext::shared_ptr< ore::data::Market > & | initMarket, |
QuantLib::ext::shared_ptr< ore::analytics::ScenarioSimMarket > & | simMarket, | ||
QuantLib::ext::shared_ptr< analytics::ScenarioSimMarketParameters > & | parameters | ||
) |
Definition at line 101 of file scenariosimmarket.cpp.
void testDiscountCurve | ( | QuantLib::ext::shared_ptr< ore::data::Market > & | initMarket, |
QuantLib::ext::shared_ptr< ore::analytics::ScenarioSimMarket > & | simMarket, | ||
QuantLib::ext::shared_ptr< analytics::ScenarioSimMarketParameters > & | parameters | ||
) |
Definition at line 131 of file scenariosimmarket.cpp.
void testIndexCurve | ( | QuantLib::ext::shared_ptr< ore::data::Market > & | initMarket, |
QuantLib::ext::shared_ptr< ore::analytics::ScenarioSimMarket > & | simMarket, | ||
QuantLib::ext::shared_ptr< analytics::ScenarioSimMarketParameters > & | parameters | ||
) |
Definition at line 143 of file scenariosimmarket.cpp.
void testSwaptionVolCurve | ( | QuantLib::ext::shared_ptr< ore::data::Market > & | initMarket, |
QuantLib::ext::shared_ptr< ore::analytics::ScenarioSimMarket > & | simMarket, | ||
QuantLib::ext::shared_ptr< analytics::ScenarioSimMarketParameters > & | parameters | ||
) |
Definition at line 155 of file scenariosimmarket.cpp.
void testFxVolCurve | ( | QuantLib::ext::shared_ptr< data::Market > & | initMarket, |
QuantLib::ext::shared_ptr< analytics::ScenarioSimMarket > & | simMarket, | ||
QuantLib::ext::shared_ptr< analytics::ScenarioSimMarketParameters > & | parameters | ||
) |
Definition at line 170 of file scenariosimmarket.cpp.
void testDefaultCurve | ( | QuantLib::ext::shared_ptr< ore::data::Market > & | initMarket, |
QuantLib::ext::shared_ptr< ore::analytics::ScenarioSimMarket > & | simMarket, | ||
QuantLib::ext::shared_ptr< analytics::ScenarioSimMarketParameters > & | parameters | ||
) |
Definition at line 188 of file scenariosimmarket.cpp.
void testZeroInflationCurve | ( | QuantLib::ext::shared_ptr< ore::data::Market > & | initMarket, |
QuantLib::ext::shared_ptr< ore::analytics::ScenarioSimMarket > & | simMarket, | ||
QuantLib::ext::shared_ptr< analytics::ScenarioSimMarketParameters > & | parameters | ||
) |
Definition at line 209 of file scenariosimmarket.cpp.
void testCorrelationCurve | ( | QuantLib::ext::shared_ptr< ore::data::Market > & | initMarket, |
QuantLib::ext::shared_ptr< ore::analytics::ScenarioSimMarket > & | simMarket, | ||
QuantLib::ext::shared_ptr< analytics::ScenarioSimMarketParameters > & | parameters | ||
) |
Definition at line 230 of file scenariosimmarket.cpp.
void testToXML | ( | QuantLib::ext::shared_ptr< analytics::ScenarioSimMarketParameters > | params | ) |
Definition at line 253 of file scenariosimmarket.cpp.
BOOST_AUTO_TEST_CASE | ( | testScenarioSimMarket | ) |
Definition at line 277 of file scenariosimmarket.cpp.