Logo
Reference manual - version orea_version
Public Types | Public Member Functions | List of all members
ScenarioGeneratorData Class Reference

Scenario Generator description. More...

#include <orea/scenario/scenariogeneratordata.hpp>

+ Inheritance diagram for ScenarioGeneratorData:

Public Types

enum  MporCashFlowMode { NonePay , BothPay , WePay , TheyPay }
 

Public Member Functions

 ScenarioGeneratorData (boost::shared_ptr< DateGrid > dateGrid, SequenceType sequenceType, long seed, Size samples, SobolBrownianGenerator::Ordering ordering=SobolBrownianGenerator::Steps, SobolRsg::DirectionIntegers directionIntegers=SobolRsg::JoeKuoD7, bool withCloseOutLag=false, bool withMporStickyDate=false, MporCashFlowMode mporCashFlowMode=MporCashFlowMode::BothPay)
 Constructor.
 
void clear ()
 
virtual void fromXML (XMLNode *node) override
 Load members from XML.
 
virtual XMLNode * toXML (XMLDocument &doc) override
 Write members to XML.
 
Inspectors
boost::shared_ptr< DateGridgetGrid () const
 
SequenceType sequenceType () const
 
long seed () const
 
Size samples () const
 
SobolBrownianGenerator::Ordering ordering () const
 
SobolRsg::DirectionIntegers directionIntegers () const
 
boost::shared_ptr< DateGridcloseOutDateGrid () const
 
bool withCloseOutLag () const
 
bool withMporStickyDate () const
 
Period closeOutLag () const
 
MporCashFlowMode mporCashFlowMode () const
 
- Public Member Functions inherited from XMLSerializable
void fromXMLString (const std::string &xml)
 
std::string toXMLString ()
 

Setters

void setGrid (boost::shared_ptr< DateGrid > grid)
 
SequenceType & sequenceType ()
 
long & seed ()
 
Size & samples ()
 
SobolBrownianGenerator::Ordering & ordering ()
 
SobolRsg::DirectionIntegers & directionIntegers ()
 
bool & withCloseOutLag ()
 
bool & withMporStickyDate ()
 
Period & closeOutLag ()
 
MporCashFlowMode & mporCashFlowMode ()
 

Detailed Description

Scenario Generator description.

ScenarioGeneratorData wraps the specification of how to build a scenario generator from a given cross asset model and covers the choice and configuration of