25 const
std::
string &
name() const noexcept override;
29 std::
size_t size() const noexcept;
34 bool contains(const core::Identifier &disease_id) const noexcept;
40 std::shared_ptr<
DiseaseModel> &operator[](const core::Identifier &disease_id);
46 const
std::shared_ptr<
DiseaseModel> &operator[](const core::Identifier &disease_id) const;
61 const
Person &entity) const noexcept;
65 std::
string name_{
"Disease"};
74 const ModelInput &config);
Diseases model interface.
Definition interfaces.h:94
Defines the disease module container to hold disease models.
Definition disease.h:11
void update_population(RuntimeContext &context) override
Updates the virtual population status.
Definition disease.cpp:49
SimulationModuleType type() const noexcept override
Gets the module type identifier.
Definition disease.cpp:13
std::size_t size() const noexcept
Gets the number of diseases models hosted.
Definition disease.cpp:17
void initialise_population(RuntimeContext &context) override
Initialises the virtual population status.
Definition disease.cpp:32
double get_excess_mortality(const core::Identifier &disease_code, const Person &entity) const noexcept
Gets the mortality rate associated with a disease for an individual.
Definition disease.cpp:55
bool contains(const core::Identifier &disease_id) const noexcept
Indicates whether the host contains an disease identified by code.
Definition disease.cpp:19
const std::string & name() const noexcept override
Gets the module name.
Definition disease.cpp:15
Defines the Simulation runtime context data type.
Definition runtime_context.h:22
Generic disease module interface to host multiple diseases model.
Definition interfaces.h:50
Top-level namespace for Health-GPS Console host application.
Definition command_options.cpp:8
std::unique_ptr< DiseaseModule > build_disease_module(Repository &repository, const ModelInput &config)
Builds a new instance of the DiseaseModule using the given data infrastructure.
Definition disease.cpp:64
SimulationModuleType
Health GPS simulation modules types enumeration.
Definition interfaces.h:13
Global namespace.
Definition column_iterator.h:123
Defines a virtual population person data type.
Definition person.h:39
Entity unique identifier data type.
Definition identifier.h:20