|
Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
|
Implements the dummy risk factor model type. More...
#include <dummy_model.h>
Public Member Functions | |
| DummyModel (RiskFactorModelType type, const std::vector< core::Identifier > &names, const std::vector< double > &values, const std::vector< double > &policy, const std::vector< int > &policy_start) | |
| Initialises a new instance of the DummyModel class. | |
| RiskFactorModelType | type () const noexcept override |
| Get the risk factor model type. | |
| std::string | name () const noexcept override |
| Get the risk factor model name. | |
| void | generate_risk_factors (RuntimeContext &context) override |
| Initialise risk factor values and apply intervention policy. | |
| void | update_risk_factors (RuntimeContext &context) override |
| Update risk factor values and apply intervention policy. | |
Public Member Functions inherited from hgps::RiskFactorModel | |
| virtual | ~RiskFactorModel ()=default |
| Destroys a RiskFactorModel instance. | |
Implements the dummy risk factor model type.
The dummy model is used to fix risk factors to known constant values.
| hgps::DummyModel::DummyModel | ( | RiskFactorModelType | type, |
| const std::vector< core::Identifier > & | names, | ||
| const std::vector< double > & | values, | ||
| const std::vector< double > & | policy, | ||
| const std::vector< int > & | policy_start | ||
| ) |
Initialises a new instance of the DummyModel class.
| type | Risk factor model type |
| names | Risk factor names |
| values | Constant values to set risk factors to |
| policy | Risk factor policy in intervention scenario |
| policy_start | Policy start (in years since the start of the simulation) |
|
overridevirtual |
Initialise risk factor values and apply intervention policy.
| context | The runtime context |
Implements hgps::RiskFactorModel.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtual |
Update risk factor values and apply intervention policy.
| context | The runtime context |
Implements hgps::RiskFactorModel.