Health-GPS
1.2.2.0
Global Health Policy Simulation model (Health-GPS)
|
Define the data repository interface for input datasets and back-end storage. More...
#include <repository.h>
Public Member Functions | |
Repository ()=default | |
Initialises a new instance of the Repository class. More... | |
Repository (Repository &&)=delete | |
Repository (const Repository &)=delete | |
Repository & | operator= (Repository &&)=delete |
Repository & | operator= (const Repository &)=delete |
virtual | ~Repository ()=default |
Destroys a Repository instance. More... | |
virtual core::Datastore & | manager () noexcept=0 |
Gets a reference to the back-end storage instance. More... | |
virtual const RiskFactorModelDefinition & | get_risk_factor_model_definition (const HierarchicalModelType &model_type) const =0 |
Gets a user-provided risk factor model definition. More... | |
virtual BaselineAdjustment & | get_baseline_adjustment_definition ()=0 |
Gets the user provided baseline risk factors adjustment dataset. More... | |
virtual const std::vector< core::DiseaseInfo > & | get_diseases ()=0 |
Gets the collection of all diseases available in the back-end storage. More... | |
virtual std::optional< core::DiseaseInfo > | get_disease_info (core::Identifier code)=0 |
Gets a disease information by identifier. More... | |
virtual DiseaseDefinition & | get_disease_definition (const core::DiseaseInfo &info, const ModelInput &config)=0 |
Gets a disease complete definition. More... | |
virtual LmsDefinition & | get_lms_definition ()=0 |
Gets the LMS (lambda-mu-sigma) definition. More... | |
Define the data repository interface for input datasets and back-end storage.
|
default |
Initialises a new instance of the Repository class.
|
delete |
|
delete |
|
virtualdefault |
Destroys a Repository instance.
|
pure virtual |
Gets the user provided baseline risk factors adjustment dataset.
Implemented in hgps::CachedRepository.
|
pure virtual |
Gets a disease complete definition.
info | The disease information |
config | The user inputs instance |
std::runtime_error | for failure to load disease definition. |
Implemented in hgps::CachedRepository.
|
pure virtual |
Gets a disease information by identifier.
code | The disease identifier |
Implemented in hgps::CachedRepository.
|
pure virtual |
Gets the collection of all diseases available in the back-end storage.
Implemented in hgps::CachedRepository.
|
pure virtual |
Gets the LMS (lambda-mu-sigma) definition.
Implemented in hgps::CachedRepository.
|
pure virtual |
Gets a user-provided risk factor model definition.
model_type | Static or Dynamic |
Implemented in hgps::CachedRepository.
|
pure virtualnoexcept |
Gets a reference to the back-end storage instance.
Implemented in hgps::CachedRepository.
|
delete |
|
delete |