|
Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
|
Defines the risk factors module container to hold risk factor models. More...
#include <riskfactor.h>
Public Member Functions | |
| RiskFactorModule ()=delete | |
| RiskFactorModule (std::map< RiskFactorModelType, std::unique_ptr< RiskFactorModel > > models) | |
| Initialises a new instance of the RiskFactorModule class. | |
| SimulationModuleType | type () const noexcept override |
| Gets the module type identifier. | |
| const std::string & | name () const noexcept override |
| Gets the module name. | |
| std::size_t | size () const noexcept override |
| Gets the number of diseases model hosted. | |
| bool | contains (const RiskFactorModelType &model_type) const noexcept override |
| Indicates whether the host contains a model of type. | |
| RiskFactorModel & | at (const RiskFactorModelType &model_type) const |
| void | initialise_population (RuntimeContext &context) override |
| Initialises the virtual population. | |
| void | update_population (RuntimeContext &context) override |
| Updates the virtual population status. | |
Public Member Functions inherited from hgps::SimulationModule | |
| virtual | ~SimulationModule ()=default |
| Destroys a SimulationModule instance. | |
Defines the risk factors module container to hold risk factor models.
|
delete |
| hgps::RiskFactorModule::RiskFactorModule | ( | std::map< RiskFactorModelType, std::unique_ptr< RiskFactorModel > > | models | ) |
Initialises a new instance of the RiskFactorModule class.
| models | Collection of model instances |
| std::invalid_argument | for empty models collection or missing module type. |
| std::out_of_range | for model type and model instance type mismatch. |
| RiskFactorModel & hgps::RiskFactorModule::at | ( | const RiskFactorModelType & | model_type | ) | const |
|
overridevirtualnoexcept |
Indicates whether the host contains a model of type.
| modelType | The 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.