Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | List of all members
CounterpartyCalculator Class Referenceabstract

CounterpartyCalculator interface. More...

#include <orea/engine/cptycalculator.hpp>

+ Inheritance diagram for CounterpartyCalculator:
+ Collaboration diagram for CounterpartyCalculator:

Public Member Functions

virtual ~CounterpartyCalculator ()
 
virtual void calculate (const std::string &name, Size nameIndex, const QuantLib::ext::shared_ptr< SimMarket > &simMarket, QuantLib::ext::shared_ptr< NPVCube > &outputCube, const Date &date, Size dateIndex, Size sample, bool isCloseOut=false)=0
 
virtual void calculateT0 (const std::string &name, Size nameIndex, const QuantLib::ext::shared_ptr< SimMarket > &simMarket, QuantLib::ext::shared_ptr< NPVCube > &outputCube)=0
 

Detailed Description

CounterpartyCalculator interface.

Definition at line 37 of file cptycalculator.hpp.

Constructor & Destructor Documentation

◆ ~CounterpartyCalculator()

virtual ~CounterpartyCalculator ( )
virtual

Definition at line 39 of file cptycalculator.hpp.

39{}

Member Function Documentation

◆ calculate()

virtual void calculate ( const std::string &  name,
Size  nameIndex,
const QuantLib::ext::shared_ptr< SimMarket > &  simMarket,
QuantLib::ext::shared_ptr< NPVCube > &  outputCube,
const Date &  date,
Size  dateIndex,
Size  sample,
bool  isCloseOut = false 
)
pure virtual
Parameters
nameThe counterparty name
nameIndexName index for writing to the cube
simMarketThe market
outputCubeThe cube for data on name level
dateThe date
dateIndexDate index
sampleSample
isCloseOutisCloseOut

Implemented in SurvivalProbabilityCalculator.

◆ calculateT0()

virtual void calculateT0 ( const std::string &  name,
Size  nameIndex,
const QuantLib::ext::shared_ptr< SimMarket > &  simMarket,
QuantLib::ext::shared_ptr< NPVCube > &  outputCube 
)
pure virtual
Parameters
nameThe counterparty name
nameIndexName index for writing to the cube
simMarketThe market
outputCubeThe cube

Implemented in SurvivalProbabilityCalculator.