Logo
Reference manual - version orea_version
Public Member Functions | List of all members
CounterpartyCalculator Class Referenceabstract

CounterpartyCalculator interface. More...

#include <orea/engine/cptycalculator.hpp>

+ Inheritance diagram for CounterpartyCalculator:

Public Member Functions

virtual void calculate (const std::string &name, Size nameIndex, const boost::shared_ptr< SimMarket > &simMarket, boost::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 boost::shared_ptr< SimMarket > &simMarket, boost::shared_ptr< NPVCube > &outputCube)=0
 

Detailed Description

CounterpartyCalculator interface.

Member Function Documentation

◆ calculate()

virtual void calculate ( const std::string &  name,
Size  nameIndex,
const boost::shared_ptr< SimMarket > &  simMarket,
boost::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

◆ calculateT0()

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