67 const
std::vector<core::DiseaseInfo> &
diseases() const noexcept;
104 unsigned int current_run_{};
105 int model_start_time_{};
Defines the event aggregator interface type.
Definition: event_aggregator.h:59
Defines the hierarchical model mapping data type.
Definition: mapping.h:128
Defines the virtual population data type.
Definition: population.h:14
General purpose Random number generator algorithms.
Definition: random_algorithm.h:8
Defines the Simulation runtime context data type.
Definition: runtime_context.h:21
RuntimeMetric & metrics() noexcept
Gets a reference to the runtime metrics container.
Definition: runtime_context.cpp:20
const core::IntegerInterval & age_range() const noexcept
Gets a read-only reference to the population age range constraints.
Definition: runtime_context.cpp:34
Scenario & scenario() noexcept
Gets a reference to the simulation experiment scenario.
Definition: runtime_context.cpp:22
unsigned int current_run() const noexcept
Gets the experiment current run number.
Definition: runtime_context.cpp:12
int sync_timeout_millis() const noexcept
Gets the data synchronisation timeout in milliseconds.
Definition: runtime_context.cpp:14
void set_current_time(const int time_now) noexcept
Sets the current simulation time value.
Definition: runtime_context.cpp:42
Population & population() noexcept
Gets a reference to the virtual population container.
Definition: runtime_context.cpp:18
Random & random() noexcept
Gets a reference to the engine random number generator.
Definition: runtime_context.cpp:24
const std::vector< core::DiseaseInfo > & diseases() const noexcept
Gets a read-only reference to the select diseases information.
Definition: runtime_context.cpp:30
void reset_population(const std::size_t initial_pop_size, const int model_start_time)
Resets the virtual population to an initial size, with only new individuals.
Definition: runtime_context.cpp:48
const std::string identifier() const noexcept
Gets the simulation identifier for outside world messages.
Definition: runtime_context.cpp:38
void publish_async(std::unique_ptr< EventMessage > message) const noexcept
Publishes a polymorphic new message to the outside world asynchronously.
Definition: runtime_context.cpp:58
int time_now() const noexcept
Gets the current simulation time.
Definition: runtime_context.cpp:8
const HierarchicalMapping & mapping() const noexcept
Gets a read-only reference to the hierarchical risk factors mapping.
Definition: runtime_context.cpp:26
void publish(std::unique_ptr< EventMessage > message) const noexcept
Publishes a polymorphic new message to the outside world synchronously.
Definition: runtime_context.cpp:54
void set_current_run(const unsigned int run_number) noexcept
Sets the current simulation run number.
Definition: runtime_context.cpp:44
int start_time() const noexcept
Gets the experiment start time.
Definition: runtime_context.cpp:10
Defines the Simulation run-time metrics container data type.
Definition: runtime_metric.h:12
Health-GPS simulation scenario interface.
Definition: scenario.h:30
Interval< int > IntegerInterval
Interval representation integer data type.
Definition: interval.h:66
Top-level namespace for Health-GPS C++ API.
Definition: analysis_definition.h:8
Global namespace.
Definition: jsonparser.h:88
Simulation event messages interface.
Definition: event_message.h:25
Simulation experiment definition data type.
Definition: simulation_definition.h:13