Health-GPS  1.2.2.0
Global Health Policy Simulation model (Health-GPS)
options.h
Go to the documentation of this file.
1 #pragma once
3 #include "poco.h"
4 #include <filesystem>
5 
6 namespace host {
8 struct CommandOptions {
10  bool success{};
11 
13  int exit_code{};
14 
16  std::filesystem::path config_file{};
17 
19  std::filesystem::path storage_folder{};
20 
22  bool verbose{};
23 
25  int job_id{};
26 };
27 
29 struct Configuration {
32 
35 
38 
41 
43  std::vector<std::string> diseases;
44 
46  std::optional<unsigned int> custom_seed;
47 
49  unsigned int start_time{};
50 
52  unsigned int stop_time{};
53 
55  unsigned int trial_runs{};
56 
58  unsigned int sync_timeout_ms{};
59 
62 
65 
68 
71 
73  int job_id{};
74 
76  std::string app_name;
77 
79  std::string app_version;
80 };
81 } // namespace host
VerboseMode
Verbosity mode enumeration.
Definition: forward_type.h:9
Top-level namespace for Health-GPS Console host application.
Definition: configuration.cpp:31
Defines the Command Line Interface (CLI) arguments options.
Definition: options.h:8
std::filesystem::path config_file
The configuration file argument value.
Definition: options.h:16
bool success
Indicates whether the argument parsing succeed.
Definition: options.h:10
int exit_code
The exit code to return, in case of CLI arguments parsing failure.
Definition: options.h:13
std::filesystem::path storage_folder
The back-end storage full path argument value.
Definition: options.h:19
int job_id
The batch job identifier value, optional.
Definition: options.h:25
bool verbose
Indicates whether the application logging is verbose.
Definition: options.h:22
Defines the application configuration data structure.
Definition: options.h:29
poco::OutputInfo output
Experiment output folder and file information.
Definition: options.h:67
poco::SESInfo ses
Socio-economic status (SES) model inputs.
Definition: options.h:37
unsigned int stop_time
The experiment stop time (simulation clock)
Definition: options.h:52
unsigned int trial_runs
The number of simulation runs (replications) to execute.
Definition: options.h:55
std::string app_name
Experiment model name.
Definition: options.h:76
poco::SettingsInfo settings
Experiment population settings.
Definition: options.h:34
unsigned int sync_timeout_ms
Baseline to intervention data synchronisation time out (milliseconds)
Definition: options.h:58
poco::FileInfo file
The input data file details.
Definition: options.h:31
std::optional< unsigned int > custom_seed
Simulation initialisation custom seed value, optional.
Definition: options.h:46
unsigned int start_time
The experiment start time (simulation clock)
Definition: options.h:49
poco::PolicyScenarioInfo intervention
The active intervention policy definition.
Definition: options.h:64
std::string app_version
Experiment model version.
Definition: options.h:79
poco::ModellingInfo modelling
User defined model and parameters information.
Definition: options.h:40
int job_id
Experiment batch job identifier.
Definition: options.h:73
bool has_active_intervention
Indicates whether an alternative intervention policy is active.
Definition: options.h:61
std::vector< std::string > diseases
List of diseases to include in experiment.
Definition: options.h:43
hgps::core::VerboseMode verbosity
Application logging verbosity mode.
Definition: options.h:70
Definition: poco.h:9
Definition: poco.h:42
Definition: poco.h:49
Definition: poco.h:87
Definition: poco.h:23
Definition: poco.h:17