Mads
Multi-Agent Distributed System
Loading...
Searching...
No Matches
Mads::ClockPeerObservation Struct Reference

One responder's answer to Agent::broadcast_clock_probe()'s ping (clock-offset source B, see clock_offset.hpp): the raw four-timestamp sample plus the responder's identity and its own currently adopted clock offset, which is what lets an initiator compose clock_offset(mine) = responder_adopted.offset_us + estimate(sample).offset_us rather than treating a peer exchange as an unrelated measurement. More...

#include <agent.hpp>

Public Attributes

std::string responder_agent_id
 
std::string responder_name
 
std::string responder_hostname
 
std::string responder_domain
 
ClockSample sample
 
ClockOffsetResult responder_adopted
 

Detailed Description

One responder's answer to Agent::broadcast_clock_probe()'s ping (clock-offset source B, see clock_offset.hpp): the raw four-timestamp sample plus the responder's identity and its own currently adopted clock offset, which is what lets an initiator compose clock_offset(mine) = responder_adopted.offset_us + estimate(sample).offset_us rather than treating a peer exchange as an unrelated measurement.

Definition at line 130 of file agent.hpp.

Member Data Documentation

◆ responder_adopted

ClockOffsetResult Mads::ClockPeerObservation::responder_adopted

The responder's own clock_offset() at reply time; source() == ClockSource::None if the responder had no valid measurement of its own.

Examples
/home/runner/work/MADS/MADS/src/agent.hpp.

Definition at line 138 of file agent.hpp.

◆ responder_agent_id

std::string Mads::ClockPeerObservation::responder_agent_id
Examples
/home/runner/work/MADS/MADS/src/agent.hpp.

Definition at line 131 of file agent.hpp.

◆ responder_domain

std::string Mads::ClockPeerObservation::responder_domain
Examples
/home/runner/work/MADS/MADS/src/agent.hpp.

Definition at line 134 of file agent.hpp.

◆ responder_hostname

std::string Mads::ClockPeerObservation::responder_hostname
Examples
/home/runner/work/MADS/MADS/src/agent.hpp.

Definition at line 133 of file agent.hpp.

◆ responder_name

std::string Mads::ClockPeerObservation::responder_name
Examples
/home/runner/work/MADS/MADS/src/agent.hpp.

Definition at line 132 of file agent.hpp.

◆ sample

ClockSample Mads::ClockPeerObservation::sample
Examples
/home/runner/work/MADS/MADS/src/agent.hpp.

Definition at line 135 of file agent.hpp.


The documentation for this struct was generated from the following file: