Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
jacardi_model.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 JacardiModel final : public RiskFactorModel {
15 public:
16 JacardiModel(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 void apply_education_part_a(Person &person, Random &rng) const;
30 void apply_employment_part_a(Person &person, Random &rng) const;
31
32 std::shared_ptr<const EducationLifecycleTables> education_;
33 std::shared_ptr<const EmploymentStaticTables> employment_;
34};
35
37 public:
38 JacardiModelDefinition(std::shared_ptr<EducationLifecycleTables> education,
39 std::shared_ptr<EmploymentStaticTables> employment);
40
41 std::unique_ptr<RiskFactorModel> create_model() const override;
42
43 private:
44 std::shared_ptr<EducationLifecycleTables> education_;
45 std::shared_ptr<EmploymentStaticTables> employment_;
46};
47
48} // namespace hgps
JacardiModelDefinition(std::shared_ptr< EducationLifecycleTables > education, std::shared_ptr< EmploymentStaticTables > employment)
Definition jacardi_model.cpp:77
std::unique_ptr< RiskFactorModel > create_model() const override
Creates a new risk factor model from this definition.
Definition jacardi_model.cpp:81
JacardiModel(std::shared_ptr< const EducationLifecycleTables > education, std::shared_ptr< const EmploymentStaticTables > employment)
Definition jacardi_model.cpp:8
RiskFactorModelType type() const noexcept override
Gets the model type identifier.
Definition jacardi_model.cpp:21
std::string name() const noexcept override
Gets the model name.
Definition jacardi_model.cpp:23
void generate_risk_factors(RuntimeContext &context) override
Part A for the full active population at simulation start.
Definition jacardi_model.cpp:49
void update_risk_factors(RuntimeContext &context) override
Part A only for people still missing finite Education / Employment.
Definition jacardi_model.cpp:61
General purpose Random number generator algorithms.
Definition random_algorithm.h: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
Defines a virtual population person data type.
Definition person.h:39