Health-GPS
1.2.2.0
Global Health Policy Simulation model (Health-GPS)
|
Health-GPS simulation scenario interface. More...
#include <scenario.h>
Public Member Functions | |
virtual | ~Scenario ()=default |
Destroys a Scenario instance. More... | |
virtual ScenarioType | type () const noexcept=0 |
Gets the scenario type identifier. More... | |
virtual const std::string & | name () const noexcept=0 |
Gets the scenario type name. More... | |
virtual SyncChannel & | channel ()=0 |
Gets the Scenario communication channel. More... | |
virtual void | clear () noexcept=0 |
Clear the scenario log book data. More... | |
virtual double | apply (Random &generator, Person &entity, int time, const core::Identifier &risk_factor_key, double value)=0 |
Applies this Scenario to the Person instance. More... | |
Health-GPS simulation scenario interface.
The scenarios communication is one way from baseline
to intervention
, the ScenarioType is by the Health-GPS simulation engine to identify the data-flow direction and send or receive messages.
|
virtualdefault |
Destroys a Scenario instance.
|
pure virtual |
Applies this Scenario to the Person instance.
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 |
Implemented in hgps::SimplePolicyScenario, hgps::PhysicalActivityScenario, hgps::MarketingPolicyScenario, hgps::MarketingDynamicScenario, hgps::FoodLabellingScenario, hgps::FiscalPolicyScenario, and hgps::BaselineScenario.
|
pure virtual |
Gets the Scenario communication channel.
Implemented in hgps::SimplePolicyScenario, hgps::PhysicalActivityScenario, hgps::MarketingPolicyScenario, hgps::MarketingDynamicScenario, hgps::FoodLabellingScenario, hgps::FiscalPolicyScenario, and hgps::BaselineScenario.
|
pure virtualnoexcept |
Clear the scenario log book data.
Implemented in hgps::SimplePolicyScenario, hgps::PhysicalActivityScenario, hgps::MarketingPolicyScenario, hgps::MarketingDynamicScenario, hgps::FoodLabellingScenario, hgps::FiscalPolicyScenario, and hgps::BaselineScenario.
|
pure virtualnoexcept |
Gets the scenario type name.
Implemented in hgps::InterventionScenario, and hgps::BaselineScenario.
|
pure virtualnoexcept |
Gets the scenario type identifier.
Implemented in hgps::InterventionScenario, and hgps::BaselineScenario.