Orchestrates the processes covered by ORE, data loading, analytics and reporting. More...
#include <orea/app/oreapp.hpp>
Public Member Functions | |
OREApp (QuantLib::ext::shared_ptr< Parameters > params, bool console=false, const boost::filesystem::path &logRootPath=boost::filesystem::path()) | |
Constructor that uses ORE parameters and input data from files. More... | |
OREApp (const QuantLib::ext::shared_ptr< InputParameters > &inputs, const std::string &logFile, Size logLevel=31, bool console=false, const boost::filesystem::path &logRootPath=boost::filesystem::path()) | |
Constructor that assumes we have already assembled input parameters via API. More... | |
virtual | ~OREApp () |
Destructor. More... | |
virtual void | run () |
Runs analytics and generates reports after using the first OREApp c'tor. More... | |
void | run (const std::vector< std::string > &marketData, const std::vector< std::string > &fixingData) |
Runs analytics and generates reports after using the second OREApp c'tor. More... | |
QuantLib::ext::shared_ptr< InputParameters > | getInputs () |
std::set< std::string > | getAnalyticTypes () |
std::set< std::string > | getSupportedAnalyticTypes () |
const QuantLib::ext::shared_ptr< Analytic > & | getAnalytic (std::string type) |
std::set< std::string > | getReportNames () |
QuantLib::ext::shared_ptr< PlainInMemoryReport > | getReport (std::string reportName) |
std::set< std::string > | getCubeNames () |
QuantLib::ext::shared_ptr< NPVCube > | getCube (std::string cubeName) |
std::set< std::string > | getMarketCubeNames () |
QuantLib::ext::shared_ptr< AggregationScenarioData > | getMarketCube (std::string cubeName) |
std::vector< std::string > | getErrors () |
Real | getRunTime () |
time for executing run(...) in seconds More... | |
std::string | version () |
Protected Member Functions | |
virtual void | analytics () |
void | buildInputParameters (QuantLib::ext::shared_ptr< InputParameters > inputs, const QuantLib::ext::shared_ptr< Parameters > ¶ms) |
Populate InputParameters object from classic ORE key-value pairs in Parameters. More... | |
QuantLib::ext::shared_ptr< CSVLoader > | buildCsvLoader (const QuantLib::ext::shared_ptr< Parameters > ¶ms) |
void | setupLog (const std::string &path, const std::string &file, QuantLib::Size mask, const boost::filesystem::path &logRootPath, const std::string &progressLogFile="", QuantLib::Size progressLogRotationSize=100 *1024 *1024, bool progressLogToConsole=false, const std::string &structuredLogFile="", QuantLib::Size structuredLogRotationSize=100 *1024 *1024) |
set up logging More... | |
void | closeLog () |
remove logs More... | |
void | initFromParams () |
void | initFromInputs () |
Protected Attributes | |
QuantLib::ext::shared_ptr< Parameters > | params_ |
ORE Input parameters. More... | |
QuantLib::ext::shared_ptr< InputParameters > | inputs_ |
QuantLib::ext::shared_ptr< OutputParameters > | outputs_ |
QuantLib::ext::shared_ptr< AnalyticsManager > | analyticsManager_ |
QuantLib::ext::shared_ptr< StructuredLogger > | structuredLogger_ |
boost::timer::cpu_timer | runTimer_ |
string | logFile_ |
Logging. More... | |
Size | logMask_ |
bool | console_ |
string | outputPath_ |
boost::filesystem::path | logRootPath_ |
string | progressLogFile_ = "" |
QuantLib::Size | progressLogRotationSize_ = 100 * 1024 * 1024 |
bool | progressLogToConsole_ = false |
string | structuredLogFile_ = "" |
QuantLib::Size | structuredLogRotationSize_ = 100 * 1024 * 1024 |
std::vector< std::string > | errorMessages_ |
Orchestrates the processes covered by ORE, data loading, analytics and reporting.
Definition at line 40 of file oreapp.hpp.
OREApp | ( | QuantLib::ext::shared_ptr< Parameters > | params, |
bool | console = false , |
||
const boost::filesystem::path & | logRootPath = boost::filesystem::path() |
||
) |
Constructor that uses ORE parameters and input data from files.
Definition at line 43 of file oreapp.hpp.
OREApp | ( | const QuantLib::ext::shared_ptr< InputParameters > & | inputs, |
const std::string & | logFile, | ||
Size | logLevel = 31 , |
||
bool | console = false , |
||
const boost::filesystem::path & | logRootPath = boost::filesystem::path() |
||
) |
Constructor that assumes we have already assembled input parameters via API.
Definition at line 48 of file oreapp.hpp.
|
virtual |
Destructor.
Definition at line 393 of file oreapp.cpp.
|
virtual |
Runs analytics and generates reports after using the first OREApp c'tor.
Definition at line 398 of file oreapp.cpp.
void run | ( | const std::vector< std::string > & | marketData, |
const std::vector< std::string > & | fixingData | ||
) |
Runs analytics and generates reports after using the second OREApp c'tor.
Definition at line 442 of file oreapp.cpp.
QuantLib::ext::shared_ptr< InputParameters > getInputs | ( | ) |
Definition at line 63 of file oreapp.hpp.
std::set< std::string > getAnalyticTypes | ( | ) |
Definition at line 64 of file oreapp.cpp.
std::set< std::string > getSupportedAnalyticTypes | ( | ) |
Definition at line 69 of file oreapp.cpp.
const QuantLib::ext::shared_ptr< Analytic > & getAnalytic | ( | std::string | type | ) |
Definition at line 74 of file oreapp.cpp.
std::set< std::string > getReportNames | ( | ) |
Definition at line 79 of file oreapp.cpp.
QuantLib::ext::shared_ptr< PlainInMemoryReport > getReport | ( | std::string | reportName | ) |
Definition at line 96 of file oreapp.cpp.
std::set< std::string > getCubeNames | ( | ) |
Definition at line 107 of file oreapp.cpp.
QuantLib::ext::shared_ptr< NPVCube > getCube | ( | std::string | cubeName | ) |
Definition at line 124 of file oreapp.cpp.
std::set< std::string > getMarketCubeNames | ( | ) |
Definition at line 135 of file oreapp.cpp.
QuantLib::ext::shared_ptr< AggregationScenarioData > getMarketCube | ( | std::string | cubeName | ) |
Definition at line 152 of file oreapp.cpp.
std::vector< std::string > getErrors | ( | ) |
Definition at line 163 of file oreapp.cpp.
Real getRunTime | ( | ) |
time for executing run(...) in seconds
Definition at line 167 of file oreapp.cpp.
std::string version | ( | ) |
Definition at line 564 of file oreapp.cpp.
|
protectedvirtual |
Definition at line 218 of file oreapp.cpp.
|
protected |
Populate InputParameters object from classic ORE key-value pairs in Parameters.
|
protected |
Definition at line 172 of file oreapp.cpp.
|
protected |
set up logging
Definition at line 523 of file oreapp.cpp.
|
protected |
remove logs
Definition at line 562 of file oreapp.cpp.
|
protected |
Definition at line 314 of file oreapp.cpp.
|
protected |
Definition at line 379 of file oreapp.cpp.
|
protected |
ORE Input parameters.
Definition at line 104 of file oreapp.hpp.
|
protected |
Definition at line 105 of file oreapp.hpp.
|
protected |
Definition at line 106 of file oreapp.hpp.
|
protected |
Definition at line 108 of file oreapp.hpp.
|
protected |
Definition at line 109 of file oreapp.hpp.
|
protected |
Definition at line 110 of file oreapp.hpp.
|
protected |
Logging.
Definition at line 113 of file oreapp.hpp.
|
protected |
Definition at line 114 of file oreapp.hpp.
|
protected |
Definition at line 115 of file oreapp.hpp.
|
protected |
Definition at line 116 of file oreapp.hpp.
|
protected |
Definition at line 117 of file oreapp.hpp.
|
protected |
Definition at line 118 of file oreapp.hpp.
|
protected |
Definition at line 119 of file oreapp.hpp.
|
protected |
Definition at line 120 of file oreapp.hpp.
|
protected |
Definition at line 121 of file oreapp.hpp.
|
protected |
Definition at line 122 of file oreapp.hpp.
|
protected |
Definition at line 125 of file oreapp.hpp.