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

Seeds the population with Health data. More...

#include <HealthSeeder.h>

Collaboration diagram for stride::HealthSeeder:
Collaboration graph

Public Member Functions

 HealthSeeder (const boost::property_tree::ptree &diseasePt)
 Constructor requires diease data. More...
 
void Seed (const std::shared_ptr< Population > &pop, std::vector< ContactHandler > &handlers)
 Seeds the population with Health data. More...
 

Private Member Functions

void GetDistribution (std::vector< double > &distribution, const boost::property_tree::ptree &rootPt, const std::string &xmlTag)
 Utility method to etract distribution from data in ptree. More...
 
unsigned short int Sample (const std::vector< double > &distribution, double random01)
 Sample for each of the health data item individually. More...
 

Private Attributes

std::vector< doublem_start_symptomatic
 
std::vector< doublem_time_asymptomatic
 
std::vector< doublem_time_infectious
 
std::vector< doublem_time_symptomatic
 

Detailed Description

Seeds the population with Health data.

Definition at line 36 of file HealthSeeder.h.

Constructor & Destructor Documentation

stride::HealthSeeder::HealthSeeder ( const boost::property_tree::ptree &  diseasePt)
explicit

Constructor requires diease data.

Definition at line 36 of file HealthSeeder.cpp.

References AssertThrow, GetDistribution(), m_start_symptomatic, m_time_asymptomatic, m_time_infectious, and m_time_symptomatic.

Here is the call graph for this function:

Member Function Documentation

void stride::HealthSeeder::Seed ( const std::shared_ptr< Population > &  pop,
std::vector< ContactHandler > &  handlers 
)

Seeds the population with Health data.

Definition at line 70 of file HealthSeeder.cpp.

References m_start_symptomatic, m_time_asymptomatic, m_time_infectious, m_time_symptomatic, and Sample().

Referenced by stride::SimBuilder::Build().

Here is the call graph for this function:

Here is the caller graph for this function:

void stride::HealthSeeder::GetDistribution ( std::vector< double > &  distribution,
const boost::property_tree::ptree &  rootPt,
const std::string &  xmlTag 
)
private

Utility method to etract distribution from data in ptree.

Definition at line 50 of file HealthSeeder.cpp.

Referenced by HealthSeeder().

Here is the caller graph for this function:

unsigned short int stride::HealthSeeder::Sample ( const std::vector< double > &  distribution,
double  random01 
)
private

Sample for each of the health data item individually.

Definition at line 58 of file HealthSeeder.cpp.

Referenced by Seed().

Here is the caller graph for this function:

Member Data Documentation

std::vector<double> stride::HealthSeeder::m_start_symptomatic
private

Definition at line 54 of file HealthSeeder.h.

Referenced by HealthSeeder(), and Seed().

std::vector<double> stride::HealthSeeder::m_time_asymptomatic
private

Definition at line 55 of file HealthSeeder.h.

Referenced by HealthSeeder(), and Seed().

std::vector<double> stride::HealthSeeder::m_time_infectious
private

Definition at line 56 of file HealthSeeder.h.

Referenced by HealthSeeder(), and Seed().

std::vector<double> stride::HealthSeeder::m_time_symptomatic
private

Definition at line 57 of file HealthSeeder.h.

Referenced by HealthSeeder(), and Seed().


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