EMANE
1.2.1
|
Manages neighbor metrics and sends neighbor metric control message upstream. More...
#include <neighbormetricmanager.h>
Public Member Functions | |
NeighborMetricManager (NEMId nemId) | |
~NeighborMetricManager () | |
void | updateNeighborTxMetric (NEMId dst, std::uint64_t u64DataRatebps, const TimePoint &txTime) |
void | updateNeighborRxMetric (NEMId src, std::uint64_t u64SeqNum, const uuid_t &uuid, const TimePoint &rxTime) |
void | updateNeighborRxMetric (const NEMId src, std::uint64_t u64SeqNum, const uuid_t &uuid, float fSINR, float fNoiseFloor, const TimePoint &rxTime, const Microseconds &durationMicroseconds, std::uint64_t u64DataRatebps) |
void | setNeighborDeleteTimeMicroseconds (const Microseconds &ageMicroseconds) |
Controls::R2RINeighborMetrics | getNeighborMetrics () |
void | updateNeighborStatus () |
void | registerStatistics (StatisticRegistrar &statisticRegistrar) |
Manages neighbor metrics and sends neighbor metric control message upstream.
Definition at line 53 of file neighbormetricmanager.h.
EMANE::NeighborMetricManager::NeighborMetricManager | ( | EMANE::NEMId | nemId | ) |
Creates a NeighborMetricManager instance
nemId | NEM id |
Definition at line 787 of file neighbormetricmanager.cc.
EMANE::NeighborMetricManager::~NeighborMetricManager | ( | ) |
Destroys an instance
Definition at line 792 of file neighbormetricmanager.cc.
EMANE::Controls::R2RINeighborMetrics EMANE::NeighborMetricManager::getNeighborMetrics | ( | ) |
Gets neighbor metrics
Definition at line 844 of file neighbormetricmanager.cc.
void EMANE::NeighborMetricManager::registerStatistics | ( | StatisticRegistrar & | statisticRegistrar | ) |
Definition at line 859 of file neighbormetricmanager.cc.
void EMANE::NeighborMetricManager::setNeighborDeleteTimeMicroseconds | ( | const Microseconds & | ageMicroseconds | ) |
Sets neighbor delete time (age)
ageMicroseconds | the neighbor delete time (relative) |
Definition at line 797 of file neighbormetricmanager.cc.
void EMANE::NeighborMetricManager::updateNeighborRxMetric | ( | NEMId | src, |
std::uint64_t | u64SeqNum, | ||
const uuid_t & | uuid, | ||
const TimePoint & | rxTime | ||
) |
Updates neighbor recv metric
src | src NEM (nbr) |
u64SeqNum | pkt sequence number |
uuid | application uuid |
rxTime | pkt rx time |
Definition at line 812 of file neighbormetricmanager.cc.
void EMANE::NeighborMetricManager::updateNeighborRxMetric | ( | const NEMId | src, |
std::uint64_t | u64SeqNum, | ||
const uuid_t & | uuid, | ||
float | fSINR, | ||
float | fNoiseFloor, | ||
const TimePoint & | rxTime, | ||
const Microseconds & | durationMicroseconds, | ||
std::uint64_t | u64DataRatebps | ||
) |
Updates neighbor receive metric
src | src NEM (nbr) |
u64SeqNum | pkt sequence number |
uuid | application uuid |
fSINR | sinr in dbm |
fNoiseFloor | noise floor in dBm |
rxTime | pkt rx time |
durationMicroseconds | pkt duration |
u64DataRatebps | data rate in bps |
Definition at line 822 of file neighbormetricmanager.cc.
void EMANE::NeighborMetricManager::updateNeighborStatus | ( | ) |
Updates the Neighbor Status Table
Definition at line 853 of file neighbormetricmanager.cc.
void EMANE::NeighborMetricManager::updateNeighborTxMetric | ( | NEMId | dst, |
std::uint64_t | u64DataRatebps, | ||
const TimePoint & | txTime | ||
) |
updates neighbor send metric
dst | dst NEM (nbr) |
u64DataRatebps | data rate in bps |
txTime | pkt tx time |
Definition at line 804 of file neighbormetricmanager.cc.