#include <orea/aggregation/exposureallocator.hpp>
|
| RelativeXvaExposureAllocator (const QuantLib::ext::shared_ptr< Portfolio > &portfolio, const QuantLib::ext::shared_ptr< NPVCube > &tradeExposureCube, const QuantLib::ext::shared_ptr< NPVCube > &nettedExposureCube, const QuantLib::ext::shared_ptr< NPVCube > &npvCube, const map< string, Real > &tradeCva, const map< string, Real > &tradeDva, const map< string, Real > &nettingSetSumCva, const map< string, Real > &nettingSetSumDva, const Size allocatedTradeEpeIndex=2, const Size allocatedTradeEneIndex=3, const Size tradeEpeIndex=0, const Size tradeEneIndex=1, const Size nettingSetEpeIndex=0, const Size nettingSetEneIndex=1) |
|
| ExposureAllocator (const QuantLib::ext::shared_ptr< Portfolio > &portfolio, const QuantLib::ext::shared_ptr< NPVCube > &tradeExposureCube, const QuantLib::ext::shared_ptr< NPVCube > &nettedExposureCube, const Size allocatedTradeEpeIndex=2, const Size allocatedTradeEneIndex=3, const Size tradeEpeIndex=0, const Size tradeEneIndex=1, const Size nettingSetEpeIndex=1, const Size nettingSetEneIndex=2) |
|
virtual | ~ExposureAllocator () |
|
const QuantLib::ext::shared_ptr< NPVCube > & | exposureCube () |
|
virtual void | build () |
| Compute exposures along all paths and fill result structures. More...
|
|
|
virtual Real | calculateAllocatedEpe (const string &tid, const string &nid, const Date &date, const Size sample) override |
|
virtual Real | calculateAllocatedEne (const string &tid, const string &nid, const Date &date, const Size sample) override |
|
virtual Real | calculateAllocatedEpe (const string &tid, const string &nid, const Date &date, const Size sample)=0 |
|
virtual Real | calculateAllocatedEne (const string &tid, const string &nid, const Date &date, const Size sample)=0 |
|
Definition at line 119 of file exposureallocator.hpp.
◆ RelativeXvaExposureAllocator()
RelativeXvaExposureAllocator |
( |
const QuantLib::ext::shared_ptr< Portfolio > & |
portfolio, |
|
|
const QuantLib::ext::shared_ptr< NPVCube > & |
tradeExposureCube, |
|
|
const QuantLib::ext::shared_ptr< NPVCube > & |
nettedExposureCube, |
|
|
const QuantLib::ext::shared_ptr< NPVCube > & |
npvCube, |
|
|
const map< string, Real > & |
tradeCva, |
|
|
const map< string, Real > & |
tradeDva, |
|
|
const map< string, Real > & |
nettingSetSumCva, |
|
|
const map< string, Real > & |
nettingSetSumDva, |
|
|
const Size |
allocatedTradeEpeIndex = 2 , |
|
|
const Size |
allocatedTradeEneIndex = 3 , |
|
|
const Size |
tradeEpeIndex = 0 , |
|
|
const Size |
tradeEneIndex = 1 , |
|
|
const Size |
nettingSetEpeIndex = 0 , |
|
|
const Size |
nettingSetEneIndex = 1 |
|
) |
| |
Definition at line 154 of file exposureallocator.cpp.
167 allocatedTradeEpeIndex, allocatedTradeEneIndex,
168 tradeEpeIndex, tradeEneIndex,
169 nettingSetEpeIndex, nettingSetEneIndex),
ExposureAllocator(const QuantLib::ext::shared_ptr< Portfolio > &portfolio, const QuantLib::ext::shared_ptr< NPVCube > &tradeExposureCube, const QuantLib::ext::shared_ptr< NPVCube > &nettedExposureCube, const Size allocatedTradeEpeIndex=2, const Size allocatedTradeEneIndex=3, const Size tradeEpeIndex=0, const Size tradeEneIndex=1, const Size nettingSetEpeIndex=1, const Size nettingSetEneIndex=2)
map< string, Real > nettingSetSumCva_
map< string, Real > nettingSetSumDva_
map< string, Real > tradeDva_
map< string, Real > tradeCva_
◆ calculateAllocatedEpe()
Real calculateAllocatedEpe |
( |
const string & |
tid, |
|
|
const string & |
nid, |
|
|
const Date & |
date, |
|
|
const Size |
sample |
|
) |
| |
|
overrideprotectedvirtual |
◆ calculateAllocatedEne()
Real calculateAllocatedEne |
( |
const string & |
tid, |
|
|
const string & |
nid, |
|
|
const Date & |
date, |
|
|
const Size |
sample |
|
) |
| |
|
overrideprotectedvirtual |
◆ tradeCva_
map<string, Real> tradeCva_ |
|
protected |
◆ tradeDva_
map<string, Real> tradeDva_ |
|
protected |
◆ nettingSetSumCva_
map<string, Real> nettingSetSumCva_ |
|
protected |
◆ nettingSetSumDva_
map<string, Real> nettingSetSumDva_ |
|
protected |
◆ tradeValueToday_
map<string, Real> tradeValueToday_ |
|
protected |