Stride Reference Manual
- generated for commit 9643b11
|
Seeds the population with survey participants. More...
#include <SurveySeeder.h>
Public Member Functions | |
SurveySeeder (const boost::property_tree::ptree &config, util::RnMan &rnMan) | |
Initialize Seeder. More... | |
std::shared_ptr< Population > | Seed (std::shared_ptr< Population > pop) |
Seeds the population with survey participants. More... | |
Private Attributes | |
const boost::property_tree::ptree & | m_config |
Run config. More... | |
util::RnMan & | m_rn_man |
Random number manager. More... | |
Seeds the population with survey participants.
Definition at line 37 of file SurveySeeder.h.
stride::SurveySeeder::SurveySeeder | ( | const boost::property_tree::ptree & | config, |
util::RnMan & | rnMan | ||
) |
Initialize Seeder.
config | Configuration parameters. |
rnMan | Random number manager. |
Definition at line 37 of file SurveySeeder.cpp.
shared_ptr< Population > stride::SurveySeeder::Seed | ( | std::shared_ptr< Population > | pop | ) |
Seeds the population with survey participants.
pop | Population. |
Definition at line 39 of file SurveySeeder.cpp.
References stride::Population::CRefPoolSys(), stride::Person::GetAge(), stride::Person::GetHealth(), stride::Person::GetId(), stride::Person::GetPoolId(), stride::util::RnMan::GetUniformIntGenerator(), stride::Person::IsSurveyParticipant(), m_config, m_rn_man, stride::Person::ParticipateInSurvey(), stride::Population::RefContactLogger(), and stride::util::SegmentedVector< T, N, Safe >::size().
Referenced by stride::SimBuilder::Build().
|
private |
|
private |