LinkMass Class Reference

Link mass random property. More...

#include <Randomiser.hh>

Public Member Functions

 LinkMass (IRandomSampler *sampler_, bool additive_, std::vector< std::string > &models_, std::vector< std::string > &links_, std::vector< double > &masses_)
 Constructor. More...
 
 ~LinkMass () override
 Destructor. More...
 
void fillMsg (DRRequest &msg, DRInterface &api, std::mt19937 &gen, std::string &target) override
 Fill DR request message. More...
 
- Public Member Functions inherited from RandomProperty
 RandomProperty (IRandomSampler *sampler_, bool additive_)
 Constructor. More...
 
virtual ~RandomProperty ()
 Destructor. More...
 

Public Attributes

std::vector< std::string > models
 List of affected models. More...
 
std::vector< std::string > links
 List of affected links. More...
 
std::vector< double > masses
 Respective list of initial link masses. More...
 
- Public Attributes inherited from RandomProperty
IRandomSamplersampler
 Random distribution sampler. More...
 
bool additive
 Whether term is additive or a scaling factor. More...
 

Additional Inherited Members

- Static Public Attributes inherited from RandomProperty
static const char CFG_TARGET_OBJ [] = "TARGET_OBJECT"
 Target object yml keyword string. More...
 

Detailed Description

Link mass random property.

Constructor & Destructor Documentation

LinkMass ( IRandomSampler sampler_,
bool  additive_,
std::vector< std::string > &  models_,
std::vector< std::string > &  links_,
std::vector< double > &  masses_ 
)

Constructor.

Parameters
sampler_PRNG sampler
additive_Whether term is addictive or a scaling factor
models_List of affected models
links_List of affected links
masses_Respective list of initial link masses
Warning
std::vectors params are moved inside instance!
~LinkMass ( )
inlineoverride

Destructor.

Member Function Documentation

void fillMsg ( DRRequest msg,
DRInterface &  api,
std::mt19937 &  gen,
std::string &  target 
)
overridevirtual

Fill DR request message.

Parameters
msgDR request message
apiDR interface
genPRNG
targetName of target object

Reimplemented from RandomProperty.

Member Data Documentation

std::vector<std::string> links

List of affected links.

std::vector<double> masses

Respective list of initial link masses.

std::vector<std::string> models

List of affected models.


The documentation for this class was generated from the following files: