Implements the physical activity regulation intervention scenario.
More...
#include <physical_activity_scenario.h>
Implements the physical activity regulation intervention scenario.
◆ PhysicalActivityScenario() [1/2]
| hgps::PhysicalActivityScenario::PhysicalActivityScenario |
( |
| ) |
|
|
delete |
◆ PhysicalActivityScenario() [2/2]
Initialises a new instance of the MarketingDynamicScenario class.
- Parameters
-
| data_sync | The data synchronisation channel instance to use. |
| definition | The intervention definition |
- Exceptions
-
| std::invalid_argument | number of impact levels mismatch. |
| std::out_of_range | for overlapping or non-ordered impact levels. |
◆ active_period()
| const PolicyInterval & hgps::PhysicalActivityScenario::active_period |
( |
| ) |
const |
|
overridevirtualnoexcept |
◆ apply()
| double hgps::PhysicalActivityScenario::apply |
( |
Random & | generator, |
|
|
Person & | entity, |
|
|
int | time, |
|
|
const core::Identifier & | risk_factor_key, |
|
|
double | value ) |
|
overridevirtual |
Applies this Scenario to the Person instance.
- Parameters
-
| generator | Random number generator instance |
| entity | Person instance to apply |
| time | Current simulation time |
| risk_factor_key | Target risk factor identifier |
| value | Current risk factor value |
- Returns
- The risk factor new value
Implements hgps::Scenario.
◆ channel()
| SyncChannel & hgps::PhysicalActivityScenario::channel |
( |
| ) |
|
|
overridevirtual |
◆ clear()
| void hgps::PhysicalActivityScenario::clear |
( |
| ) |
|
|
overridevirtualnoexcept |
◆ impacts()
| const std::vector< PolicyImpact > & hgps::PhysicalActivityScenario::impacts |
( |
| ) |
const |
|
overridevirtualnoexcept |
Gets the intervention impacts by risk factor and age range.
- Returns
- Intervention impact on risk factors
Implements hgps::InterventionScenario.
The documentation for this class was generated from the following files: