Health-GPS
1.2.2.0
Global Health Policy Simulation model (Health-GPS)
|
Implements the population demographic module data type. More...
#include <demographic.h>
Public Member Functions | |
PopulationModule ()=delete | |
PopulationModule (std::map< int, std::map< int, PopulationRecord >> &&pop_data, LifeTable &&life_table) | |
Initialise a new instance of the PopulationModule class. More... | |
SimulationModuleType | type () const noexcept override |
Gets the module type identifier. More... | |
const std::string & | name () const noexcept override |
Gets the module name. More... | |
std::size_t | get_total_population_size (int time_year) const noexcept override |
Gets the total population at a specific point in time. More... | |
const std::map< int, PopulationRecord > & | get_population_distribution (int time_year) const override |
Gets the population age distribution at a specific point in time. More... | |
void | initialise_population (RuntimeContext &context) override |
Initialises the virtual population. More... | |
void | update_population (RuntimeContext &context, const DiseaseHostModule &disease_host) override |
Updates the virtual population status. More... | |
![]() | |
virtual | ~SimulationModule ()=default |
Destroys a SimulationModule instance. More... | |
Implements the population demographic module data type.
|
delete |
hgps::PopulationModule::PopulationModule | ( | std::map< int, std::map< int, PopulationRecord >> && | pop_data, |
LifeTable && | life_table | ||
) |
Initialise a new instance of the PopulationModule class.
pop_data | Population demographic trends table with year and age lookup |
life_table | Population life trends table with births and deaths |
|
overridevirtual |
Gets the population age distribution at a specific point in time.
time_year | The reference point in time (in year) |
Implements hgps::DemographicModule.
|
overridevirtualnoexcept |
Gets the total population at a specific point in time.
time_year | The reference point in time (in year) |
Implements hgps::DemographicModule.
|
overridevirtual |
Initialises the virtual population.
context | The simulation shared runtime context instance |
Implements hgps::SimulationModule.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Gets the module type identifier.
Implements hgps::SimulationModule.
|
overridevirtual |
Updates the virtual population status.
context | The simulation run-time context |
disease_host | The diseases host module instance |
Implements hgps::DemographicModule.