EMANE  1.2.1
EMANE::Models::IEEE80211ABG::Neighbor2HopEntry Class Reference

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
 

Detailed Description

Defines a 2 hop nbr and its bandwidth utilization.

Definition at line 53 of file neighbor2hopentry.h.

Constructor & Destructor Documentation

◆ Neighbor2HopEntry()

EMANE::Models::IEEE80211ABG::Neighbor2HopEntry::Neighbor2HopEntry ( )

constructor

Definition at line 37 of file neighbor2hopentry.cc.

Member Function Documentation

◆ getLastActivityTime()

EMANE::TimePoint EMANE::Models::IEEE80211ABG::Neighbor2HopEntry::getLastActivityTime ( ) const

gets the last channel activity absolute time

Returns
the last channel activity absolute time

Definition at line 43 of file neighbor2hopentry.cc.

◆ getNumberOfPackets()

size_t EMANE::Models::IEEE80211ABG::Neighbor2HopEntry::getNumberOfPackets ( ) const

gets the number of utilization packets

Returns
the number of utilization packets

Definition at line 70 of file neighbor2hopentry.cc.

◆ getUtilizationMicroseconds()

EMANE::Microseconds EMANE::Models::IEEE80211ABG::Neighbor2HopEntry::getUtilizationMicroseconds ( ) const

gets the bandwidth utilization time

Returns
the bandwidth utilization time

Definition at line 76 of file neighbor2hopentry.cc.

◆ resetUtilization()

void EMANE::Models::IEEE80211ABG::Neighbor2HopEntry::resetUtilization ( )

resets the bandwidth utilization parameters

Definition at line 51 of file neighbor2hopentry.cc.

◆ updateChannelActivity()

void EMANE::Models::IEEE80211ABG::Neighbor2HopEntry::updateChannelActivity ( const Microseconds utilizationMicroseconds,
const TimePoint activityTime,
size_t  numPackets = 1 
)

updates the bandwidth utilization parameters

Parameters
utilizationMicrosecondsthe bandwidth (duration) of channel activity
activityTimethe absolute time that the activity
numPacketsthe number of packets associated with the activity default is 1

Definition at line 58 of file neighbor2hopentry.cc.


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