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

Initializes Population objects. More...

#include <DefaultPopBuilder.h>

Inheritance diagram for stride::DefaultPopBuilder:
Inheritance graph
Collaboration diagram for stride::DefaultPopBuilder:
Collaboration graph

Public Member Functions

std::shared_ptr< PopulationBuild (std::shared_ptr< Population > pop) override
 Build Population and return it afterwards. More...
 
- Public Member Functions inherited from stride::AbstractPopBuilder
 AbstractPopBuilder (const boost::property_tree::ptree &config, util::RnMan &rnMan, std::shared_ptr< spdlog::logger > strideLogger=nullptr)
 Initializing constructor. More...
 
virtual ~AbstractPopBuilder ()=default
 Has to be virtual. More...
 

Private Member Functions

std::shared_ptr< PopulationMakePersons (std::shared_ptr< Population > pop)
 Generates pop's individuals and return pop. More...
 

Additional Inherited Members

- Protected Attributes inherited from stride::AbstractPopBuilder
const boost::property_tree::ptree & m_config
 Configuration property tree. More...
 
util::RnManm_rn_man
 Random number generation management. More...
 
std::shared_ptr< spdlog::logger > m_stride_logger
 

Detailed Description

Initializes Population objects.

Definition at line 35 of file DefaultPopBuilder.h.

Member Function Documentation

shared_ptr< Population > stride::DefaultPopBuilder::Build ( std::shared_ptr< Population pop)
overridevirtual

Build Population and return it afterwards.

The steps are:

  • Check input data.
  • Read persons from file and instantiate them.
  • Fill up the various type of contactpools.
  • Seed the population with contact survey participants.

Implements stride::AbstractPopBuilder.

Definition at line 89 of file DefaultPopBuilder.cpp.

References stride::ContactType::IdList.

Referenced by stride::Population::Create().

Here is the caller graph for this function:

shared_ptr< Population > stride::DefaultPopBuilder::MakePersons ( std::shared_ptr< Population pop)
private

Generates pop's individuals and return pop.

Definition at line 44 of file DefaultPopBuilder.cpp.

References stride::util::FileSys::GetDataDir(), and stride::util::Split().

Here is the call graph for this function:


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