EMANE
1.2.1
|
Defines a 1 hop nbr and its bandwidth utilization. More...
#include <neighborentry.h>
Public Member Functions | |
NeighborEntry () | |
void | updateChannelActivity (const Microseconds &utilizationMicroseconds, std::uint8_t type, const TimePoint &activityTime, float fRxPowerMilliWatts, size_t numPackets=1) |
void | storeUtilization () |
EMANE::TimePoint | getLastActivityTime () const |
Microseconds | getUtilizationMicroseconds (std::uint8_t msgTypeMask) const |
size_t | getNumberOfPackets (std::uint8_t msgTypeMask) const |
float | getRxPowerMilliWatts (std::uint8_t msgTypeMask) const |
float | getEstimatedNumCommonNeighbors () const |
void | setEstimatedNumCommonNeighbors (float num) |
float | getHiddenChannelActivity () const |
void | setHiddenChannelActivity (float fActivity) |
void | setAverageHiddenRxPowerMilliWatts (float dAverageHiddenRxPowerMilliWatts) |
float | getAverageHiddenRxPowerMilliWatts () const |
void | setAverageCommonRxPowerMilliWatts (float dAverageCommonRxPowerMilliWatts) |
float | getAverageCommonRxPowerMilliWatts () const |
void | setOneHopNeighbors (const NbrSet &nbrs) |
void | setHiddenNeighbors (const NbrSet &nbrs) |
void | setCommonNeighbors (const NbrSet &nbrs) |
const NbrSet & | getOneHopNeighbors () const |
const NbrSet & | getCommonNeighbors () const |
const NbrSet & | getHiddenNeighbors () const |
bool | isOneHopNbr (EMANE::NEMId id) const |
bool | isCommonNbr (EMANE::NEMId id) const |
bool | isHiddenNbr (EMANE::NEMId id) const |
Defines a 1 hop nbr and its bandwidth utilization.
Definition at line 59 of file neighborentry.h.
EMANE::Models::IEEE80211ABG::NeighborEntry::NeighborEntry | ( | ) |
constructor
Definition at line 37 of file neighborentry.cc.
float EMANE::Models::IEEE80211ABG::NeighborEntry::getAverageCommonRxPowerMilliWatts | ( | ) | const |
Definition at line 154 of file neighborentry.cc.
float EMANE::Models::IEEE80211ABG::NeighborEntry::getAverageHiddenRxPowerMilliWatts | ( | ) | const |
Definition at line 139 of file neighborentry.cc.
const EMANE::Models::IEEE80211ABG::NbrSet & EMANE::Models::IEEE80211ABG::NeighborEntry::getCommonNeighbors | ( | ) | const |
Definition at line 246 of file neighborentry.cc.
float EMANE::Models::IEEE80211ABG::NeighborEntry::getEstimatedNumCommonNeighbors | ( | ) | const |
Definition at line 122 of file neighborentry.cc.
float EMANE::Models::IEEE80211ABG::NeighborEntry::getHiddenChannelActivity | ( | ) | const |
Definition at line 86 of file neighborentry.cc.
const EMANE::Models::IEEE80211ABG::NbrSet & EMANE::Models::IEEE80211ABG::NeighborEntry::getHiddenNeighbors | ( | ) | const |
Definition at line 253 of file neighborentry.cc.
EMANE::TimePoint EMANE::Models::IEEE80211ABG::NeighborEntry::getLastActivityTime | ( | ) | const |
Definition at line 58 of file neighborentry.cc.
size_t EMANE::Models::IEEE80211ABG::NeighborEntry::getNumberOfPackets | ( | std::uint8_t | msgTypeMask | ) | const |
gets the number of utilization packets
msgTypeMask | the msg type (unicast, unicast rts/cts, broadcast) |
Definition at line 102 of file neighborentry.cc.
const EMANE::Models::IEEE80211ABG::NbrSet & EMANE::Models::IEEE80211ABG::NeighborEntry::getOneHopNeighbors | ( | ) | const |
Definition at line 239 of file neighborentry.cc.
float EMANE::Models::IEEE80211ABG::NeighborEntry::getRxPowerMilliWatts | ( | std::uint8_t | msgTypeMask | ) | const |
gets the utilization rx power
msgTypeMask | the msg type (unicast, unicast rts/cts, broadcast) |
Definition at line 168 of file neighborentry.cc.
EMANE::Microseconds EMANE::Models::IEEE80211ABG::NeighborEntry::getUtilizationMicroseconds | ( | std::uint8_t | msgTypeMask | ) | const |
gets the bandiwdth utilzation (duration) time
msgTypeMask | the msg type (unicast, unicast rts/cts, broadcast) |
Definition at line 66 of file neighborentry.cc.
bool EMANE::Models::IEEE80211ABG::NeighborEntry::isCommonNbr | ( | EMANE::NEMId | id | ) | const |
Definition at line 267 of file neighborentry.cc.
bool EMANE::Models::IEEE80211ABG::NeighborEntry::isHiddenNbr | ( | EMANE::NEMId | id | ) | const |
Definition at line 274 of file neighborentry.cc.
bool EMANE::Models::IEEE80211ABG::NeighborEntry::isOneHopNbr | ( | EMANE::NEMId | id | ) | const |
Definition at line 260 of file neighborentry.cc.
void EMANE::Models::IEEE80211ABG::NeighborEntry::setAverageCommonRxPowerMilliWatts | ( | float | dAverageCommonRxPowerMilliWatts | ) |
Definition at line 161 of file neighborentry.cc.
void EMANE::Models::IEEE80211ABG::NeighborEntry::setAverageHiddenRxPowerMilliWatts | ( | float | dAverageHiddenRxPowerMilliWatts | ) |
Definition at line 147 of file neighborentry.cc.
void EMANE::Models::IEEE80211ABG::NeighborEntry::setCommonNeighbors | ( | const NbrSet & | nbrs | ) |
Definition at line 231 of file neighborentry.cc.
void EMANE::Models::IEEE80211ABG::NeighborEntry::setEstimatedNumCommonNeighbors | ( | float | num | ) |
Definition at line 131 of file neighborentry.cc.
void EMANE::Models::IEEE80211ABG::NeighborEntry::setHiddenChannelActivity | ( | float | fActivity | ) |
Definition at line 94 of file neighborentry.cc.
void EMANE::Models::IEEE80211ABG::NeighborEntry::setHiddenNeighbors | ( | const NbrSet & | nbrs | ) |
Definition at line 223 of file neighborentry.cc.
void EMANE::Models::IEEE80211ABG::NeighborEntry::setOneHopNeighbors | ( | const NbrSet & | nbrs | ) |
Definition at line 215 of file neighborentry.cc.
void EMANE::Models::IEEE80211ABG::NeighborEntry::storeUtilization | ( | ) |
stores previous and resets the current bandwidth utilization parameter(s)
Definition at line 187 of file neighborentry.cc.
void EMANE::Models::IEEE80211ABG::NeighborEntry::updateChannelActivity | ( | const Microseconds & | utilizationMicroseconds, |
std::uint8_t | type, | ||
const TimePoint & | activityTime, | ||
float | fRxPowerMilliWatts, | ||
size_t | numPackets = 1 |
||
) |
updates the bandwidth utilization parameters
utilizationMicroseconds | the bandwidth (duration) of channel activity |
type | the msg type (unicast, unicast rts/cts, broadcast) |
activityTime | the absolute time that the activity |
fRxPowerMilliWatts | the rx power in milliwatts |
numPackets | the number of packets associated with the activity default is 1 |
Definition at line 201 of file neighborentry.cc.