EMANE
1.2.1
|
Defines a 2 hop nbr and its bandwidth utilization. More...
#include <neighbor2hopentry.h>
Public Member Functions | |
Neighbor2HopEntry () | |
TimePoint | getLastActivityTime () const |
void | updateChannelActivity (const Microseconds &utilizationMicroseconds, const TimePoint &activityTime, size_t numPackets=1) |
void | resetUtilization () |
Microseconds | getUtilizationMicroseconds () const |
size_t | getNumberOfPackets () const |
Defines a 2 hop nbr and its bandwidth utilization.
Definition at line 53 of file neighbor2hopentry.h.
EMANE::Models::IEEE80211ABG::Neighbor2HopEntry::Neighbor2HopEntry | ( | ) |
constructor
Definition at line 37 of file neighbor2hopentry.cc.
EMANE::TimePoint EMANE::Models::IEEE80211ABG::Neighbor2HopEntry::getLastActivityTime | ( | ) | const |
gets the last channel activity absolute time
Definition at line 43 of file neighbor2hopentry.cc.
size_t EMANE::Models::IEEE80211ABG::Neighbor2HopEntry::getNumberOfPackets | ( | ) | const |
gets the number of utilization packets
Definition at line 70 of file neighbor2hopentry.cc.
EMANE::Microseconds EMANE::Models::IEEE80211ABG::Neighbor2HopEntry::getUtilizationMicroseconds | ( | ) | const |
gets the bandwidth utilization time
Definition at line 76 of file neighbor2hopentry.cc.
void EMANE::Models::IEEE80211ABG::Neighbor2HopEntry::resetUtilization | ( | ) |
resets the bandwidth utilization parameters
Definition at line 51 of file neighbor2hopentry.cc.
void EMANE::Models::IEEE80211ABG::Neighbor2HopEntry::updateChannelActivity | ( | const Microseconds & | utilizationMicroseconds, |
const TimePoint & | activityTime, | ||
size_t | numPackets = 1 |
||
) |
updates the bandwidth utilization parameters
utilizationMicroseconds | the bandwidth (duration) of channel activity |
activityTime | the absolute time that the activity |
numPackets | the number of packets associated with the activity default is 1 |
Definition at line 58 of file neighbor2hopentry.cc.