Health-GPS
1.2.2.0
Global Health Policy Simulation model (Health-GPS)
|
Defines the risk factors module container to hold hierarchical linear models. More...
#include <riskfactor.h>
Public Member Functions | |
RiskFactorModule ()=delete | |
RiskFactorModule (std::map< HierarchicalModelType, std::unique_ptr< HierarchicalLinearModel >> &&models, RiskfactorAdjustmentModel &&adjustments) | |
Initialises a new instance of the RiskFactorModule 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 HierarchicalModelType &modelType) const noexcept override |
Indicates whether the host contains a model of type. More... | |
HierarchicalLinearModel & | at (const HierarchicalModelType &model_type) const |
void | initialise_population (RuntimeContext &context) override |
Initialises the virtual population. More... | |
void | update_population (RuntimeContext &context) override |
Updates the virtual population status. More... | |
void | apply_baseline_adjustments (RuntimeContext &context) override |
Apply baseline risk factor adjustments to population. More... | |
![]() | |
virtual | ~SimulationModule ()=default |
Destroys a SimulationModule instance. More... | |
Defines the risk factors module container to hold hierarchical linear models.
|
delete |
hgps::RiskFactorModule::RiskFactorModule | ( | std::map< HierarchicalModelType, std::unique_ptr< HierarchicalLinearModel >> && | models, |
RiskfactorAdjustmentModel && | adjustments | ||
) |
Initialises a new instance of the RiskFactorModule class.
models | Collection of hierarchical linear model instances |
adjustments | The baseline risk factor adjustments values |
std::invalid_argument | for empty hierarchical models collection or missing required module type. |
std::out_of_range | for model type and model instance type mismatch. |
|
overridevirtual |
Apply baseline risk factor adjustments to population.
context | The simulation run-time context |
Implements hgps::RiskFactorHostModule.
HierarchicalLinearModel & hgps::RiskFactorModule::at | ( | const HierarchicalModelType & | model_type | ) | const |
|
overridevirtualnoexcept |
Indicates whether the host contains a model of type.
modelType | The hierarchical model type identifier |
Implements hgps::RiskFactorHostModule.
|
overridevirtual |
Initialises the virtual population.
context | The simulation shared runtime context instance |
Implements hgps::SimulationModule.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Gets the number of diseases model hosted.
Implements hgps::RiskFactorHostModule.
|
overridevirtualnoexcept |
Gets the module type identifier.
Implements hgps::SimulationModule.
|
overridevirtual |
Updates the virtual population status.
context | The simulation run-time context |
Implements hgps::UpdatableModule.