Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
jacardi_model_update.h
Go to the documentation of this file.
1#pragma once
2
5#include "risk_factor_model.h"
6
7#include <memory>
8#include <string>
9
10namespace hgps {
11
14class JacardiModelUpdate final : public RiskFactorModel {
15 public:
16 JacardiModelUpdate(std::shared_ptr<const EducationLifecycleTables> education,
17 std::shared_ptr<const EmploymentStaticTables> employment);
18
19 RiskFactorModelType type() const noexcept override;
20 std::string name() const noexcept override;
21
23 void generate_risk_factors(RuntimeContext &context) override;
24
26 void update_risk_factors(RuntimeContext &context) override;
27
28 private:
29 std::shared_ptr<const EducationLifecycleTables> education_;
30 std::shared_ptr<const EmploymentStaticTables> employment_;
31};
32
34 public:
35 JacardiModelUpdateDefinition(std::shared_ptr<EducationLifecycleTables> education,
36 std::shared_ptr<EmploymentStaticTables> employment);
37
38 std::unique_ptr<RiskFactorModel> create_model() const override;
39
40 private:
41 std::shared_ptr<EducationLifecycleTables> education_;
42 std::shared_ptr<EmploymentStaticTables> employment_;
43};
44
45} // namespace hgps
std::unique_ptr< RiskFactorModel > create_model() const override
Creates a new risk factor model from this definition.
Definition jacardi_model_update.cpp:68
JacardiModelUpdateDefinition(std::shared_ptr< EducationLifecycleTables > education, std::shared_ptr< EmploymentStaticTables > employment)
Definition jacardi_model_update.cpp:63
std::string name() const noexcept override
Gets the model name.
Definition jacardi_model_update.cpp:25
RiskFactorModelType type() const noexcept override
Gets the model type identifier.
Definition jacardi_model_update.cpp:21
void generate_risk_factors(RuntimeContext &context) override
Init is owned by JacardiModel — nothing to do here.
Definition jacardi_model_update.cpp:27
void update_risk_factors(RuntimeContext &context) override
Part B for every active person after ageing (education then employment).
Definition jacardi_model_update.cpp:31
JacardiModelUpdate(std::shared_ptr< const EducationLifecycleTables > education, std::shared_ptr< const EmploymentStaticTables > employment)
Definition jacardi_model_update.cpp:8
Risk factor model definition interface.
Definition risk_factor_model.h:44
Risk factor model interface.
Definition risk_factor_model.h:21
Defines the Simulation runtime context data type.
Definition runtime_context.h:22
Top-level namespace for Health-GPS Console host application.
Definition command_options.cpp:9
RiskFactorModelType
Health GPS risk factor module types enumeration.
Definition risk_factor_model.h:12