Definition at line 18 of file location_table.hpp.
◆ LocationTableEntry()
vanetza::geonet::LocationTableEntry::LocationTableEntry |
( |
const Runtime & |
rt | ) |
|
◆ geonet_address()
const Address & vanetza::geonet::LocationTableEntry::geonet_address |
( |
| ) |
const |
◆ get_pdr()
double vanetza::geonet::LocationTableEntry::get_pdr |
( |
| ) |
const |
|
inline |
Get packed data rate (PDR) of corresponding source.
- Returns
- PDR in bytes per second, might be not-a-number
Definition at line 31 of file location_table.hpp.
◆ get_position_vector()
const LongPositionVector & vanetza::geonet::LocationTableEntry::get_position_vector |
( |
| ) |
const |
|
inline |
Get stored position vector
- Returns
- position vector (empty until set_position_vector invocation)
Definition at line 52 of file location_table.hpp.
◆ has_position_vector()
bool vanetza::geonet::LocationTableEntry::has_position_vector |
( |
| ) |
const |
|
inline |
Check if position vector has been set before
- Returns
- false after entry initialization true after set_position_vector invocations
Definition at line 46 of file location_table.hpp.
◆ is_neighbour()
bool vanetza::geonet::LocationTableEntry::is_neighbour |
( |
| ) |
const |
Check if this entry belongs to a direct neighbour
- Returns
- true if direct neighbour
Definition at line 33 of file location_table.cpp.
◆ link_layer_address()
const MacAddress & vanetza::geonet::LocationTableEntry::link_layer_address |
( |
| ) |
const |
◆ set_neighbour() [1/2]
void vanetza::geonet::LocationTableEntry::set_neighbour |
( |
bool |
flag | ) |
|
Set neighbour relation
- Parameters
-
flag | true if entry represents a direct neighbour |
Definition at line 80 of file location_table.cpp.
◆ set_neighbour() [2/2]
void vanetza::geonet::LocationTableEntry::set_neighbour |
( |
bool |
flag, |
|
|
Clock::duration |
expiry |
|
) |
| |
Set neighbour relation with expiry
- Parameters
-
flag | true if entry represents a direct neighbour |
expiry | reset neighbour relation to false after expiry |
Definition at line 85 of file location_table.cpp.
◆ set_position_vector()
bool vanetza::geonet::LocationTableEntry::set_position_vector |
( |
const LongPositionVector & |
pv | ) |
|
|
private |
Set stored position vector (without timestamp check)
- Parameters
-
Definition at line 56 of file location_table.cpp.
◆ station_type()
StationType vanetza::geonet::LocationTableEntry::station_type |
( |
| ) |
const |
◆ update_pdr()
void vanetza::geonet::LocationTableEntry::update_pdr |
( |
std::size_t |
packet_size, |
|
|
double |
beta = 0.5 |
|
) |
| |
Update packet data rate. See Annex B of EN 302 636-4-1 for details.
- Parameters
-
packet_size | received number of bytes |
beta | weight factor for exponential moving average ]0; 1[ |
Definition at line 38 of file location_table.cpp.
◆ update_position_vector()
bool vanetza::geonet::LocationTableEntry::update_position_vector |
( |
const LongPositionVector & |
pv | ) |
|
Update stored position vector (only after time stamp check)
- Parameters
-
- Returns
- true if position vector passed time stamp check
Definition at line 67 of file location_table.cpp.
◆ extensions
◆ m_has_position_vector
bool vanetza::geonet::LocationTableEntry::m_has_position_vector |
|
private |
◆ m_is_neighbour
Clock::time_point vanetza::geonet::LocationTableEntry::m_is_neighbour |
|
private |
◆ m_pdr
double vanetza::geonet::LocationTableEntry::m_pdr |
|
private |
◆ m_pdr_update
Clock::time_point vanetza::geonet::LocationTableEntry::m_pdr_update |
|
private |
◆ m_position_vector
◆ m_runtime
const Runtime& vanetza::geonet::LocationTableEntry::m_runtime |
|
private |
The documentation for this class was generated from the following files: