Stride Reference Manual  - generated for commit 9643b11
stride::DiseaseSeeder Class Reference

Seeds population w.r.t immunity (natural immunity, vaccination, ...) and infection. More...

#include <DiseaseSeeder.h>

Collaboration diagram for stride::DiseaseSeeder:
Collaboration graph

Public Member Functions

 DiseaseSeeder (const boost::property_tree::ptree &config, util::RnMan &rnMan)
 Initializing DiseaseSeeder. More...
 
void Seed (std::shared_ptr< Population > pop)
 Build the simulator. More...
 

Private Member Functions

void Vaccinate (const std::string &immunityType, const std::string &immunizationProfile, std::shared_ptr< Population > pop, const ContactType::Id contactPoolType)
 Seed for vaccination/natural immunity. More...
 

Private Attributes

const boost::property_tree::ptree & m_config
 Run config. More...
 
util::RnManm_rn_man
 Random number manager. More...
 

Detailed Description

Seeds population w.r.t immunity (natural immunity, vaccination, ...) and infection.

Definition at line 38 of file DiseaseSeeder.h.

Constructor & Destructor Documentation

stride::DiseaseSeeder::DiseaseSeeder ( const boost::property_tree::ptree &  config,
util::RnMan rnMan 
)

Initializing DiseaseSeeder.

Definition at line 39 of file DiseaseSeeder.cpp.

Member Function Documentation

void stride::DiseaseSeeder::Seed ( std::shared_ptr< Population pop)
void stride::DiseaseSeeder::Vaccinate ( const std::string &  immunityType,
const std::string &  immunizationProfile,
std::shared_ptr< Population pop,
const ContactType::Id  contactPoolType 
)
private

Seed for vaccination/natural immunity.

Definition at line 84 of file DiseaseSeeder.cpp.

References stride::Immunizer::Cocoon(), m_config, m_rn_man, stride::Immunizer::Random(), stride::util::FileSys::ReadPtreeFile(), and stride::util::ToLower().

Referenced by Seed().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

const boost::property_tree::ptree& stride::DiseaseSeeder::m_config
private

Run config.

Definition at line 52 of file DiseaseSeeder.h.

Referenced by Seed(), and Vaccinate().

util::RnMan& stride::DiseaseSeeder::m_rn_man
private

Random number manager.

Definition at line 53 of file DiseaseSeeder.h.

Referenced by Seed(), and Vaccinate().


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