EMANE  1.2.1
EMANE::Models::IEEE80211ABG::ModeTimingParameters Class Reference

class used to define timing parameters More...

#include <modetimingparameters.h>

Public Member Functions

 ModeTimingParameters (const MACConfig &macConfig)
 constructor More...
 
 ~ModeTimingParameters ()
 destructor More...
 
bool packetTimedOut (const Microseconds &txOpMicroseconds, const TimePoint &) const
 check if a packet has timed out More...
 
int getContentionWindow (std::uint8_t, std::uint8_t) const
 get the contention window More...
 
Microseconds getSlotSizeMicroseconds () const
 get the slot duration for a given mode and distance More...
 
Microseconds getOverheadMicroseconds (std::uint8_t u8Category) const
 get the overhead time More...
 
Microseconds getMessageDurationMicroseconds (std::uint8_t, size_t) const
 get the message duration More...
 
Microseconds getDeferIntervalMicroseconds (std::uint8_t) const
 get the defer time More...
 
TimePoint getSotTime () const
 

Detailed Description

class used to define timing parameters

Definition at line 57 of file modetimingparameters.h.

Constructor & Destructor Documentation

◆ ModeTimingParameters()

EMANE::Models::IEEE80211ABG::ModeTimingParameters::ModeTimingParameters ( const MACConfig macConfig)

constructor

Definition at line 87 of file modetimingparameters.cc.

◆ ~ModeTimingParameters()

EMANE::Models::IEEE80211ABG::ModeTimingParameters::~ModeTimingParameters ( )

destructor

Definition at line 129 of file modetimingparameters.cc.

Member Function Documentation

◆ getContentionWindow()

int EMANE::Models::IEEE80211ABG::ModeTimingParameters::getContentionWindow ( std::uint8_t  u8Category,
std::uint8_t  tries 
) const

get the contention window

Parameters
u8Categoryqueue index
triesnumber of retires
Return values
cwthe contention interval

Definition at line 502 of file modetimingparameters.cc.

◆ getDeferIntervalMicroseconds()

EMANE::Microseconds EMANE::Models::IEEE80211ABG::ModeTimingParameters::getDeferIntervalMicroseconds ( std::uint8_t  u8Category) const

get the defer time

Parameters
u8Categoryqueue index
Return values
thedefer interval in Microseconds

Definition at line 334 of file modetimingparameters.cc.

◆ getMessageDurationMicroseconds()

EMANE::Microseconds EMANE::Models::IEEE80211ABG::ModeTimingParameters::getMessageDurationMicroseconds ( std::uint8_t  type,
size_t  numBytes 
) const

get the message duration

Parameters
typepacket type (rts, cts, ack, data)
numBytespacket size in bytes
Return values
thetransmission duration in Microseconds

Definition at line 408 of file modetimingparameters.cc.

◆ getOverheadMicroseconds()

EMANE::Microseconds EMANE::Models::IEEE80211ABG::ModeTimingParameters::getOverheadMicroseconds ( std::uint8_t  u8Category) const

get the overhead time

Parameters
u8Categoryqueue index
Return values
theoverhead interval in Microseconds

Definition at line 355 of file modetimingparameters.cc.

◆ getSlotSizeMicroseconds()

EMANE::Microseconds EMANE::Models::IEEE80211ABG::ModeTimingParameters::getSlotSizeMicroseconds ( ) const

get the slot duration for a given mode and distance

Return values
slottime length in Microseconds

Definition at line 227 of file modetimingparameters.cc.

◆ getSotTime()

TimePoint EMANE::Models::IEEE80211ABG::ModeTimingParameters::getSotTime ( ) const

◆ packetTimedOut()

bool EMANE::Models::IEEE80211ABG::ModeTimingParameters::packetTimedOut ( const Microseconds txOpMicroseconds,
const TimePoint rxTime 
) const

check if a packet has timed out

Parameters
txOpMicrosecondspacket txop time
rxTimepacket rx time
Return values
returntrue if packet has timed out, else return false.

Definition at line 381 of file modetimingparameters.cc.


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