Implements the dynamic marketing regulation intervention scenario.
More...
#include <marketing_dynamic_scenario.h>
Implements the dynamic marketing regulation intervention scenario.
◆ MarketingDynamicScenario() [1/2]
| hgps::MarketingDynamicScenario::MarketingDynamicScenario |
( |
| ) |
|
|
delete |
◆ MarketingDynamicScenario() [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::MarketingDynamicScenario::active_period |
( |
| ) |
const |
|
overridevirtualnoexcept |
◆ apply()
| double hgps::MarketingDynamicScenario::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::MarketingDynamicScenario::channel |
( |
| ) |
|
|
overridevirtual |
◆ clear()
| void hgps::MarketingDynamicScenario::clear |
( |
| ) |
|
|
overridevirtualnoexcept |
◆ dynamic()
| const PolicyDynamic & hgps::MarketingDynamicScenario::dynamic |
( |
| ) |
const |
|
overridevirtualnoexcept |
◆ impacts()
| const std::vector< PolicyImpact > & hgps::MarketingDynamicScenario::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: