Defines the baseline scenario data type.
More...
#include <baseline_scenario.h>
Defines the baseline scenario data type.
The baseline scenario is a special case, which identify the type as ScenarioType::baseline and when applied to a Person makes no changes to any risk factor value. This implementation is final.
◆ BaselineScenario() [1/2]
hgps::BaselineScenario::BaselineScenario |
( |
| ) |
|
|
delete |
◆ BaselineScenario() [2/2]
hgps::BaselineScenario::BaselineScenario |
( |
SyncChannel & |
data_sync | ) |
|
Initialises a new instance of the BaselineScenario class.
- Parameters
-
data_sync | The data synchronisation channel instance to use. |
◆ apply()
double hgps::BaselineScenario::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()
◆ clear()
void hgps::BaselineScenario::clear |
( |
| ) |
|
|
overridevirtualnoexcept |
◆ name()
const std::string & hgps::BaselineScenario::name |
( |
| ) |
const |
|
overridevirtualnoexcept |
◆ type()
Gets the scenario type identifier.
- Returns
- The scenario type
Implements hgps::Scenario.
The documentation for this class was generated from the following files: