Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
ses_noise_module.h
Go to the documentation of this file.
1#pragma once
2
3#include "interfaces.h"
4#include "modelinput.h"
5#include "repository.h"
6
7namespace hgps {
8
10class SESNoiseModule final : public UpdatableModule {
11 public:
14
18 SESNoiseModule(const std::vector<double> &parameters);
19
24 SESNoiseModule(std::string function, const std::vector<double> &parameters);
25
31 SESNoiseModule(bool enabled, std::string function, const std::vector<double> &parameters);
32
33 SimulationModuleType type() const noexcept override;
34
35 const std::string &name() const noexcept override;
36
37 void initialise_population(RuntimeContext &context) override;
38
39 void update_population(RuntimeContext &context) override;
40
41 private:
42 bool enabled_{true};
43 std::string function_;
44 std::vector<double> parameters_;
45 std::string name_{"SES"};
46};
47
53std::unique_ptr<SESNoiseModule> build_ses_noise_module(Repository &repository,
54 const ModelInput &config);
55} // namespace hgps
Defines the Simulation model inputs data type.
Definition modelinput.h:53
Define the data repository interface for input datasets and back-end storage.
Definition repository.h:18
Defines the Simulation runtime context data type.
Definition runtime_context.h:22
const std::string & name() const noexcept override
Gets the module name.
Definition ses_noise_module.cpp:37
SESNoiseModule()
Initialise a new instance of the SESNoiseModule class.
Definition ses_noise_module.cpp:9
void update_population(RuntimeContext &context) override
Updates the virtual population status.
Definition ses_noise_module.cpp:49
SimulationModuleType type() const noexcept override
Gets the module type identifier.
Definition ses_noise_module.cpp:35
void initialise_population(RuntimeContext &context) override
Initialises the virtual population.
Definition ses_noise_module.cpp:39
Generic disease module interface to host multiple diseases model.
Definition interfaces.h:52
Top-level namespace for Health-GPS Console host application.
Definition command_options.cpp:9
std::unique_ptr< SESNoiseModule > build_ses_noise_module(Repository &repository, const ModelInput &config)
Builds a new instance of the SESNoiseModule using the given data infrastructure.
Definition ses_noise_module.cpp:65
SimulationModuleType
Health GPS simulation modules types enumeration.
Definition interfaces.h:15