GHS
Leader Election Based on GHS Minimum Spanning Tree
ghs-demo-edgemetrics.h
Go to the documentation of this file.
1 
37 #ifndef GHS_DEMO_EDGEMETRICS
38 #define GHS_DEMO_EDGEMETRICS
39 
40 #include <cstdint>
41 
45 typedef uint64_t CommsEdgeMetric;
46 
50 typedef uint32_t Kbps;
51 
69  const uint16_t agent_id,
70  const uint16_t agent_from,
71  const Kbps kbps);
72 
73 #endif
Kbps
uint32_t Kbps
a 32 bit throughput measuremeng. 32 bits is important!
Definition: ghs-demo-edgemetrics.h:50
sym_metric
CommsEdgeMetric sym_metric(const uint16_t agent_id, const uint16_t agent_from, const Kbps kbps)
Dark magic to provide a symmetric, unique link-metric based on throughput and the two agent ids
Definition: ghs-demo-edgemetrics.cpp:42
CommsEdgeMetric
uint64_t CommsEdgeMetric
a 64-bit edge metric. 64 bits is important!
Definition: ghs-demo-edgemetrics.h:45