Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
configuration.h File Reference

Main header file for functionality related to loading config files. More...

#include "data_source.h"
#include "poco.h"
#include "version.h"
#include "HealthGPS.Core/api.h"
#include "HealthGPS/intervention_scenario.h"
#include "HealthGPS/modelinput.h"
#include "HealthGPS/scenario.h"
#include "HealthGPS/simulation.h"
#include <memory>
#include <optional>
#include <stdexcept>
Include dependency graph for configuration.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hgps::input::Configuration
 Defines the application configuration data structure. More...
 
class  hgps::input::ConfigurationError
 Represents an error that occurred with the format of a config file. More...
 

Namespaces

namespace  hgps
 Top-level namespace for Health-GPS Console host application.
 
namespace  hgps::input
 Data structures containing model parameters and configuration options.
 

Functions

Configuration hgps::input::get_configuration (const std::string &config_source, const std::optional< std::string > &output_folder, int job_id, bool verbose)
 Loads the input configuration file, *.json, information.
 
std::vector< core::DiseaseInfohgps::input::get_diseases_info (hgps::core::Datastore &data_api, Configuration &config)
 Gets the collection of diseases that matches the selected input list.
 
hgps::ModelInput hgps::input::create_model_input (hgps::core::DataTable &input_table, hgps::core::Country country, const Configuration &config, std::vector< hgps::core::DiseaseInfo > diseases)
 Creates Health-GPS inputs instance from configuration.
 
std::string hgps::input::create_output_file_name (const OutputInfo &info, int job_id)
 Creates the full output file name from user input configuration.
 
std::unique_ptr< hgps::Scenariohgps::input::create_baseline_scenario (hgps::SyncChannel &channel)
 Creates the baseline scenario instance.
 
hgps::Simulation hgps::input::create_baseline_simulation (hgps::SyncChannel &channel, hgps::SimulationModuleFactory &factory, std::shared_ptr< const hgps::EventAggregator > event_bus, std::shared_ptr< const hgps::ModelInput > input)
 Creates the baseline simulation engine instance.
 
std::unique_ptr< hgps::Scenariohgps::input::create_intervention_scenario (hgps::SyncChannel &channel, const PolicyScenarioInfo &info)
 Creates the intervention scenario instance.
 
hgps::Simulation hgps::input::create_intervention_simulation (hgps::SyncChannel &channel, hgps::SimulationModuleFactory &factory, std::shared_ptr< const hgps::EventAggregator > event_bus, std::shared_ptr< const hgps::ModelInput > input, const PolicyScenarioInfo &info)
 Creates the intervention simulation engine instance.
 
std::string hgps::input::expand_environment_variables (const std::string &path)
 Expand environment variables in path to respective values.
 
std::optional< unsigned int > hgps::input::create_job_seed (int job_id, std::optional< unsigned int > user_seed)
 Creates the experiment random number generator seed.
 

Detailed Description

Main header file for functionality related to loading config files.

This file contains definitions for the main functions required to load JSON-formatted configuration files from disk.