|
Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
|
Implements the population demographic module data type. More...
#include <demographic.h>
Public Member Functions | |
| DemographicModule ()=delete | |
| DemographicModule (std::map< int, std::map< int, PopulationRecord > > &&pop_data, LifeTable &&life_table) | |
| Initialise a new instance of the DemographicModule class. | |
| SimulationModuleType | type () const noexcept override |
| Gets the module type identifier. | |
| const std::string & | name () const noexcept override |
| Gets the module name. | |
| std::size_t | get_total_population_size (int time_year) const noexcept |
| Gets the total population at a specific point in time. | |
| const std::map< int, PopulationRecord > & | get_population_distribution (int time_year) const |
| Gets the population age distribution at a specific point in time. | |
| void | initialise_population (RuntimeContext &context) override |
| Initialises the virtual population status. | |
| void | update_population (RuntimeContext &context, const DiseaseModule &disease_host) |
| Updates the virtual population status. | |
| void | set_region_prevalence (const std::map< core::Identifier, std::map< core::Gender, std::map< std::string, double > > > ®ion_data) |
| Sets the region prevalence data for assignment. | |
| void | set_ethnicity_prevalence (const std::map< core::Identifier, std::map< core::Gender, std::map< std::string, std::map< std::string, double > > > > ðnicity_data) |
| Sets the ethnicity prevalence data for assignment. | |
Public Member Functions inherited from hgps::SimulationModule | |
| virtual | ~SimulationModule ()=default |
| Destroys a SimulationModule instance. | |
Implements the population demographic module data type.
|
delete |
| hgps::DemographicModule::DemographicModule | ( | std::map< int, std::map< int, PopulationRecord > > && | pop_data, |
| LifeTable && | life_table | ||
| ) |
Initialise a new instance of the DemographicModule class.
| pop_data | Population demographic trends table with year and age lookup |
| life_table | Population life trends table with births and deaths |
| const std::map< int, PopulationRecord > & hgps::DemographicModule::get_population_distribution | ( | int | time_year | ) | const |
Gets the population age distribution at a specific point in time.
| time_year | The reference point in time (in year) |
|
noexcept |
Gets the total population at a specific point in time.
| time_year | The reference point in time (in year) |
|
overridevirtual |
Initialises the virtual population status.
| context | The simulation run-time context |
Implements hgps::SimulationModule.
|
overridevirtualnoexcept |
| void hgps::DemographicModule::set_ethnicity_prevalence | ( | const std::map< core::Identifier, std::map< core::Gender, std::map< std::string, std::map< std::string, double > > > > & | ethnicity_data | ) |
Sets the ethnicity prevalence data for assignment.
| ethnicity_data | Map of age group, gender, and region-specific ethnicity probabilities |
| void hgps::DemographicModule::set_region_prevalence | ( | const std::map< core::Identifier, std::map< core::Gender, std::map< std::string, double > > > & | region_data | ) |
Sets the region prevalence data for assignment.
| region_data | Map of age-specific region probabilities by gender |
|
overridevirtualnoexcept |
Gets the module type identifier.
Implements hgps::SimulationModule.
| void hgps::DemographicModule::update_population | ( | RuntimeContext & | context, |
| const DiseaseModule & | disease_host | ||
| ) |
Updates the virtual population status.
| context | The simulation run-time context |
| disease_host | The diseases host module instance |