Stride Reference Manual
- generated for commit 9643b11
|
Builds a simulator based a configuration property tree. More...
#include <SimBuilder.h>
Public Member Functions | |
SimBuilder (const boost::property_tree::ptree &config) | |
Initializing SimBuilder. More... | |
std::shared_ptr< Sim > | Build (std::shared_ptr< Sim > sim, std::shared_ptr< Population > pop, util::RnMan rnMan) |
Build the simulator and return it afterwards. More... | |
Private Member Functions | |
boost::property_tree::ptree | ReadAgeContactPtree () |
Get the contact configuration data. More... | |
boost::property_tree::ptree | ReadDiseasePtree () |
Get the disease configuration data. More... | |
Private Attributes | |
boost::property_tree::ptree | m_config |
Run config in ptree. More... | |
Builds a simulator based a configuration property tree.
It
Definition at line 41 of file SimBuilder.h.
|
explicit |
Initializing SimBuilder.
Definition at line 39 of file SimBuilder.cpp.
shared_ptr< Sim > stride::SimBuilder::Build | ( | std::shared_ptr< Sim > | sim, |
std::shared_ptr< Population > | pop, | ||
util::RnMan | rnMan | ||
) |
Build the simulator and return it afterwards.
Definition at line 41 of file SimBuilder.cpp.
References stride::ContactType::IdList, m_config, ReadAgeContactPtree(), ReadDiseasePtree(), stride::HealthSeeder::Seed(), stride::DiseaseSeeder::Seed(), stride::SurveySeeder::Seed(), and stride::ContactLogMode::ToMode().
|
private |
Get the contact configuration data.
Definition at line 107 of file SimBuilder.cpp.
References stride::util::FileSys::GetDataDir(), m_config, and stride::util::FileSys::ReadPtreeFile().
Referenced by Build().
|
private |
Get the disease configuration data.
Definition at line 114 of file SimBuilder.cpp.
References stride::util::FileSys::GetDataDir(), m_config, and stride::util::FileSys::ReadPtreeFile().
Referenced by Build().
|
private |
Run config in ptree.
Definition at line 58 of file SimBuilder.h.
Referenced by Build(), ReadAgeContactPtree(), and ReadDiseasePtree().