Vanetza
 
Loading...
Searching...
No Matches
vanetza::dcc::SmoothingChannelProbeProcessor Class Reference

#include <smoothing_channel_probe_processor.hpp>

Inheritance diagram for vanetza::dcc::SmoothingChannelProbeProcessor:

Public Member Functions

 SmoothingChannelProbeProcessor (UnitInterval alpha=UnitInterval(0.5))
 
void indicate (ChannelLoad cl) override
 
ChannelLoad channel_load () const
 

Public Attributes

HookRegistry< ChannelLoadon_indication
 

Private Attributes

UnitInterval m_alpha
 
ChannelLoad m_channel_load
 
Hook< ChannelLoadm_indication_hook
 

Detailed Description

Smooth local channel load measurements as per C2C-CC Whitepaper on DCC for Day One (Version 1.0 from 2013) and Basic System Profile (RS_BSP_240 in Version 1.3)

Definition at line 19 of file smoothing_channel_probe_processor.hpp.

Constructor & Destructor Documentation

◆ SmoothingChannelProbeProcessor()

vanetza::dcc::SmoothingChannelProbeProcessor::SmoothingChannelProbeProcessor ( UnitInterval  alpha = UnitInterval(0.5))

Initialize ChannelProbeProcessor with smoothing behaviour.

Parameters
alphasmoothing factor (influence of new raw measurement)

Definition at line 8 of file smoothing_channel_probe_processor.cpp.

Member Function Documentation

◆ channel_load()

ChannelLoad vanetza::dcc::SmoothingChannelProbeProcessor::channel_load ( ) const

Get smoothed channel load value

Definition at line 19 of file smoothing_channel_probe_processor.cpp.

◆ indicate()

void vanetza::dcc::SmoothingChannelProbeProcessor::indicate ( ChannelLoad  cl)
overridevirtual

Feed new local channel load measurement into smoothing algorithm. Side effect: Update function is called afterwards with smoothed channel load.

Parameters
clraw local channel load

Reimplemented from vanetza::dcc::HookedChannelProbeProcessor.

Definition at line 13 of file smoothing_channel_probe_processor.cpp.

Member Data Documentation

◆ m_alpha

UnitInterval vanetza::dcc::SmoothingChannelProbeProcessor::m_alpha
private

Definition at line 41 of file smoothing_channel_probe_processor.hpp.

◆ m_channel_load

ChannelLoad vanetza::dcc::SmoothingChannelProbeProcessor::m_channel_load
private

Definition at line 42 of file smoothing_channel_probe_processor.hpp.

◆ m_indication_hook

Hook<ChannelLoad> vanetza::dcc::HookedChannelProbeProcessor::m_indication_hook
privateinherited

Definition at line 24 of file hooked_channel_probe_processor.hpp.

◆ on_indication

HookRegistry<ChannelLoad> vanetza::dcc::HookedChannelProbeProcessor::on_indication
inherited

Definition at line 21 of file hooked_channel_probe_processor.hpp.


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