SObjectizer 5.8
Loading...
Searching...
No Matches
ds_agent_core_stats.cpp
Go to the documentation of this file.
1/*
2 * SObjectizer-5
3 */
4
5/*!
6 * \since
7 * v.5.5.4
8 *
9 * \file
10 * \brief A data source class for run-time monitoring of agent_core.
11 */
12
13#include <so_5/stats/impl/ds_agent_core_stats.hpp>
14
15#include <so_5/stats/messages.hpp>
16#include <so_5/stats/std_names.hpp>
17
18#include <so_5/send_functions.hpp>
19
20namespace so_5 {
21
22namespace stats {
23
24namespace impl {
25
26//
27// ds_agent_core_stats_t
28//
29ds_agent_core_stats_t::ds_agent_core_stats_t(
31 : m_what( what )
32 {}
33
34void
35ds_agent_core_stats_t::distribute(
36 const mbox_t & distribution_mbox )
37 {
39
40 send< messages::quantity< std::size_t > >( distribution_mbox,
44
45 send< messages::quantity< std::size_t > >( distribution_mbox,
49
50 send< messages::quantity< std::size_t > >( distribution_mbox,
54 }
55
56} /* namespace impl */
57
58} /* namespace stats */
59
60} /* namespace so_5 */
An interface for environment_infrastructure entity.
virtual coop_repository_stats_t query_coop_repository_stats()=0
Query run-time statistics for cooperation repository.
void distribute(const mbox_t &distribution_mbox) override
Send appropriate notification about the current value.
ds_agent_core_stats_t(so_5::environment_infrastructure_t &what)
so_5::environment_infrastructure_t & m_what
Internal implementation of run-time monitoring and statistics related stuff.
Declarations of messages used by run-time monitoring and statistics.
Definition messages.hpp:36
Predefined prefixes of data-sources.
Definition std_names.hpp:23
SO_5_FUNC prefix_t coop_repository()
Prefix of data sources with statistics for cooperations and agents repository.
Definition std_names.cpp:22
Predefined suffixes of data-sources.
Definition std_names.hpp:55
SO_5_FUNC suffix_t coop_final_dereg_count()
Suffix for data source with count of cooperations waiting the final deregistration step and removemen...
Definition std_names.cpp:54
SO_5_FUNC suffix_t agent_count()
Suffix for data source with count of agents bound to some entity.
Definition std_names.cpp:66
SO_5_FUNC suffix_t coop_count()
Suffix for data source with count of cooperations.
Definition std_names.cpp:48
All stuff related to run-time monitoring and statistics.
Private part of message limit implementation.
Definition agent.cpp:33
void send(Target &&to, Args &&... args)
A utility function for creating and delivering a message or a signal.
std::size_t m_total_coop_count
Count of cooperations inside the environment.
std::size_t m_final_dereg_coop_count
Count of coops waiting for the final deregistration.
A message with value of some quantity.
Definition messages.hpp:60