Vanetza
 
Loading...
Searching...
No Matches
vanetza::geonet::CbrAggregator Class Reference

#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 &lt, 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
 

Detailed Description

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.

Member Typedef Documentation

◆ ChannelLoad

Constructor & Destructor Documentation

◆ CbrAggregator()

vanetza::geonet::CbrAggregator::CbrAggregator ( )

Definition at line 45 of file cbr_aggregator.cpp.

Member Function Documentation

◆ aggregate()

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

Parameters
ltlocation table containing LocTEX_G5 entries
cbr_lifetimereject entries older than T_cbr
cbr_targetreference value

Definition at line 50 of file cbr_aggregator.cpp.

◆ get_global_cbr()

ChannelLoad vanetza::geonet::CbrAggregator::get_global_cbr ( ) const
inline

Get global channel busy ratio

Returns
CBR

Definition at line 50 of file cbr_aggregator.hpp.

◆ get_local_cbr()

ChannelLoad vanetza::geonet::CbrAggregator::get_local_cbr ( ) const
inline

Get local channel busy ratio, i.e. CBR_L_0_Hop

Returns
CBR

Definition at line 32 of file cbr_aggregator.hpp.

◆ get_one_hop_cbr()

ChannelLoad vanetza::geonet::CbrAggregator::get_one_hop_cbr ( ) const
inline

Get one-hop channel busy ratio, i.e. CBR_L_1_Hop

Returns
CBR

Definition at line 38 of file cbr_aggregator.hpp.

◆ get_two_hop_cbr()

ChannelLoad vanetza::geonet::CbrAggregator::get_two_hop_cbr ( ) const
inline

Get two-hop channel busy ratio, i.e. CBR_L_2_Hop

Returns
CBR

Definition at line 44 of file cbr_aggregator.hpp.

Member Data Documentation

◆ m_global_cbr

ChannelLoad vanetza::geonet::CbrAggregator::m_global_cbr
private

Definition at line 65 of file cbr_aggregator.hpp.

◆ m_local_cbr

std::array<ChannelLoad, 2> vanetza::geonet::CbrAggregator::m_local_cbr
private

Definition at line 62 of file cbr_aggregator.hpp.

◆ m_one_hop_cbr

ChannelLoad vanetza::geonet::CbrAggregator::m_one_hop_cbr
private

Definition at line 63 of file cbr_aggregator.hpp.

◆ m_two_hop_cbr

ChannelLoad vanetza::geonet::CbrAggregator::m_two_hop_cbr
private

Definition at line 64 of file cbr_aggregator.hpp.


The documentation for this class was generated from the following files: