Stride Reference Manual
- generated for commit 9643b11
|
Seeds population w.r.t immunity (natural immunity, vaccination, ...) and infection. More...
#include <DiseaseSeeder.h>
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::RnMan & | m_rn_man |
Random number manager. More... | |
Seeds population w.r.t immunity (natural immunity, vaccination, ...) and infection.
Definition at line 38 of file DiseaseSeeder.h.
stride::DiseaseSeeder::DiseaseSeeder | ( | const boost::property_tree::ptree & | config, |
util::RnMan & | rnMan | ||
) |
Initializing DiseaseSeeder.
Definition at line 39 of file DiseaseSeeder.cpp.
void stride::DiseaseSeeder::Seed | ( | std::shared_ptr< Population > | pop | ) |
Build the simulator.
Definition at line 41 of file DiseaseSeeder.cpp.
References stride::Person::GetAge(), stride::Person::GetHealth(), stride::Person::GetId(), stride::Person::GetPoolId(), stride::util::RnMan::GetUniformIntGenerator(), stride::ContactType::Household, stride::Health::IsSusceptible(), m_config, m_rn_man, stride::Health::StartInfection(), and Vaccinate().
Referenced by stride::SimBuilder::Build().
|
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().
|
private |
|
private |
Random number manager.
Definition at line 53 of file DiseaseSeeder.h.
Referenced by Seed(), and Vaccinate().