|
Health-GPS
1.2.2.0
Global Health Policy Simulation model (Health-GPS)
|
Defines the disease module container to hold disease models. More...
#include <disease.h>
Public Member Functions | |
| DiseaseModule ()=delete | |
| DiseaseModule (std::map< core::Identifier, std::shared_ptr< DiseaseModel >> &&models) | |
| Initialises a new instance of the DiseaseModule 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 | size () const noexcept override |
| Gets the number of diseases model hosted. More... | |
| bool | contains (const core::Identifier &disease_id) const noexcept override |
| Indicates whether the host contains an disease identified by code. More... | |
| std::shared_ptr< DiseaseModel > & | operator[] (const core::Identifier &disease_id) |
| Gets the model for a given disease. More... | |
| const std::shared_ptr< DiseaseModel > & | operator[] (const core::Identifier &disease_id) const |
| Gets the model for a given disease. More... | |
| void | initialise_population (RuntimeContext &context) override |
| Initialises the virtual population. More... | |
| void | update_population (RuntimeContext &context) override |
| Updates the virtual population status. More... | |
| double | get_excess_mortality (const core::Identifier &disease_code, const Person &entity) const noexcept override |
| Gets the mortality rate associated with a disease for an individual. More... | |
Public Member Functions inherited from hgps::SimulationModule | |
| virtual | ~SimulationModule ()=default |
| Destroys a SimulationModule instance. More... | |
Defines the disease module container to hold disease models.
|
delete |
| hgps::DiseaseModule::DiseaseModule | ( | std::map< core::Identifier, std::shared_ptr< DiseaseModel >> && | models | ) |
Initialises a new instance of the DiseaseModule class.
| models | Collection of disease model instances |
|
overridevirtualnoexcept |
Indicates whether the host contains an disease identified by code.
| disease_id | The disease unique identifier |
Implements hgps::DiseaseHostModule.
|
overridevirtualnoexcept |
Gets the mortality rate associated with a disease for an individual.
| disease_id | The disease unique identifier |
| entity | The entity associated with the mortality value |
Implements hgps::DiseaseHostModule.
|
overridevirtual |
Initialises the virtual population.
| context | The simulation shared runtime context instance |
Implements hgps::SimulationModule.
|
overridevirtualnoexcept |
| std::shared_ptr< DiseaseModel > & hgps::DiseaseModule::operator[] | ( | const core::Identifier & | disease_id | ) |
Gets the model for a given disease.
| disease_id | The disease identifier |
| std::out_of_range | if the module does not have a model for the specified disease. |
| const std::shared_ptr< DiseaseModel > & hgps::DiseaseModule::operator[] | ( | const core::Identifier & | disease_id | ) | const |
Gets the model for a given disease.
| disease_id | The disease identifier |
| std::out_of_range | if the module does not have a model for the specified disease. |
|
overridevirtualnoexcept |
Gets the number of diseases model hosted.
Implements hgps::DiseaseHostModule.
|
overridevirtualnoexcept |
Gets the module type identifier.
Implements hgps::SimulationModule.
|
overridevirtual |
Updates the virtual population status.
| context | The simulation run-time context |
Implements hgps::UpdatableModule.