#include <cbr_aggregator.hpp>
Public Types | |
using | ChannelLoad = dcc::ChannelLoad |
Public Member Functions | |
ChannelLoad | get_local_cbr () const |
ChannelLoad | get_one_hop_cbr () const |
ChannelLoad | get_two_hop_cbr () const |
ChannelLoad | get_global_cbr () const |
void | aggregate (ChannelLoad cbr_local, const LocationTable <, Timestamp cbr_lifetime, ChannelLoad cbr_target) |
Private Attributes | |
std::array< ChannelLoad, 2 > | m_local_cbr |
ChannelLoad | m_one_hop_cbr |
ChannelLoad | m_two_hop_cbr |
ChannelLoad | m_global_cbr |
CbrAggregator realises the CBR aggregration as specified by TS 102 636-4-2 V1.1.1, section 5.2.2
Since this algorithm relies mainly on location table entries it is placed in the geonet module.
Definition at line 21 of file cbr_aggregator.hpp.
Definition at line 24 of file cbr_aggregator.hpp.
vanetza::geonet::CbrAggregator::CbrAggregator | ( | ) |
Definition at line 45 of file cbr_aggregator.cpp.
void vanetza::geonet::CbrAggregator::aggregate | ( | ChannelLoad | cbr_local, |
const LocationTable & | lt, | ||
Timestamp | cbr_lifetime, | ||
ChannelLoad | cbr_target | ||
) |
Aggregate {1,2}-hop CBRs from received CBR values stored in location table \parame local most recent local CBR measurement CBR_L_0_Hop
lt | location table containing LocTEX_G5 entries |
cbr_lifetime | reject entries older than T_cbr |
cbr_target | reference value |
Definition at line 50 of file cbr_aggregator.cpp.
|
inline |
|
inline |
Get local channel busy ratio, i.e. CBR_L_0_Hop
Definition at line 32 of file cbr_aggregator.hpp.
|
inline |
Get one-hop channel busy ratio, i.e. CBR_L_1_Hop
Definition at line 38 of file cbr_aggregator.hpp.
|
inline |
Get two-hop channel busy ratio, i.e. CBR_L_2_Hop
Definition at line 44 of file cbr_aggregator.hpp.
|
private |
Definition at line 65 of file cbr_aggregator.hpp.
|
private |
Definition at line 62 of file cbr_aggregator.hpp.
|
private |
Definition at line 63 of file cbr_aggregator.hpp.
|
private |
Definition at line 64 of file cbr_aggregator.hpp.