EMANE  1.2.1
EMANE::Models::IEEE80211ABG::MACConfig Class Reference

class used to define the mac layer configuration items More...

#include <macconfig.h>

Public Member Functions

 MACConfig (LogServiceProvider &logServiceProvider, NEMId id)
 constructor More...
 
 ~MACConfig ()
 destructor More...
 
bool getPromiscuosEnable () const
 get the promiscuous mode More...
 
bool getWmmEnable () const
 get the wmm mode More...
 
void registerConfiguration (ConfigurationRegistrar &configRegistrar)
 
MODULATION_TYPE getModulationType () const
 get the modulation type More...
 
std::uint8_t getUnicastDataRateIndex () const
 get the unicast datarate index More...
 
std::uint8_t getBroadcastDataRateIndex () const
 get the broadcast datarate index More...
 
std::uint32_t getUnicastDataRateKbps () const
 get the unicast datarate More...
 
std::uint32_t getBroadcastDataRateKbps () const
 get the broadcast datarate More...
 
std::uint32_t getMaxDataRateKbps () const
 
std::uint32_t getUnicastDataRateKbps (std::uint8_t) const
 get the unicast datarate More...
 
std::uint32_t getBroadcastDataRateKbps (std::uint8_t) const
 get the broadcast datarate More...
 
std::uint32_t getMaxP2pDistance () const
 get the max ptp distance More...
 
std::uint8_t getNumAccessCategories () const
 get the number of access categories (queues) More...
 
std::uint16_t getRtsThreshold () const
 
std::uint8_t getQueueSize (std::uint8_t) const
 get the queue size for a given queue index More...
 
std::uint16_t getQueueEntrySize (std::uint8_t) const
 get the queue entry size for a given queue index More...
 
std::uint16_t getCWMin (std::uint8_t) const
 get the min contention window size for a given queue index More...
 
std::uint16_t getCWMax (std::uint8_t) const
 get the max contention window size for a given queue index More...
 
void setCWMin0 (std::uint16_t u16Value)
 
void setCWMin1 (std::uint16_t u16Value)
 
void setCWMin2 (std::uint16_t u16Value)
 
void setCWMin3 (std::uint16_t u16Value)
 
void setCWMax0 (std::uint16_t u16Value)
 
void setCWMax1 (std::uint16_t u16Value)
 
void setCWMax2 (std::uint16_t u16Value)
 
void setCWMax3 (std::uint16_t u16Value)
 
Microseconds getAifsMicroseconds (std::uint8_t) const
 get the aifs for a given queue index More...
 
Microseconds getTxOpMicroseconds (std::uint8_t) const
 get the txop for a given queue index More...
 
std::uint8_t getRetryLimit (std::uint8_t) const
 get the retry limit for a given queue index More...
 
std::uint16_t getFlowControlTokens () const
 get the number of flow control tokens More...
 
bool getFlowControlEnable () const
 get the flow control enable status More...
 
std::string getPcrUri () const
 get the pcr uri More...
 
Microseconds getNeighborTimeoutMicroseconds () const
 
Microseconds getChannelActivityIntervalMicroseconds () const
 
bool configure (const ConfigurationUpdate &update)
 
bool processConfiguration (const ConfigurationUpdate &update)
 
CWRatioVector getCWMinRatioVector (std::uint8_t) const
 
Microseconds getNeighborMetricDeleteTimeMicroseconds () const
 
Microseconds getRadioMetricReportIntervalMicroseconds () const
 
bool getRadioMetricEnable () const
 

Detailed Description

class used to define the mac layer configuration items

Definition at line 152 of file macconfig.h.

Constructor & Destructor Documentation

◆ MACConfig()

EMANE::Models::IEEE80211ABG::MACConfig::MACConfig ( LogServiceProvider logServiceProvider,
NEMId  id 
)

constructor

Definition at line 71 of file macconfig.cc.

◆ ~MACConfig()

EMANE::Models::IEEE80211ABG::MACConfig::~MACConfig ( )

destructor

Definition at line 82 of file macconfig.cc.

Member Function Documentation

◆ configure()

bool EMANE::Models::IEEE80211ABG::MACConfig::configure ( const ConfigurationUpdate update)

Definition at line 1008 of file macconfig.cc.

◆ getAifsMicroseconds()

EMANE::Microseconds EMANE::Models::IEEE80211ABG::MACConfig::getAifsMicroseconds ( std::uint8_t  u8Category) const

get the aifs for a given queue index

Parameters
u8Categoryqueue index
Return values
aifs

Definition at line 806 of file macconfig.cc.

◆ getBroadcastDataRateIndex()

std::uint8_t EMANE::Models::IEEE80211ABG::MACConfig::getBroadcastDataRateIndex ( ) const

get the broadcast datarate index

Return values
datarateindex

Definition at line 509 of file macconfig.cc.

◆ getBroadcastDataRateKbps() [1/2]

std::uint32_t EMANE::Models::IEEE80211ABG::MACConfig::getBroadcastDataRateKbps ( ) const

get the broadcast datarate

Return values
dataratein Kbps

Definition at line 548 of file macconfig.cc.

◆ getBroadcastDataRateKbps() [2/2]

std::uint32_t EMANE::Models::IEEE80211ABG::MACConfig::getBroadcastDataRateKbps ( std::uint8_t  u8Index) const

get the broadcast datarate

Return values
dataratein Kbps

Definition at line 575 of file macconfig.cc.

◆ getChannelActivityIntervalMicroseconds()

EMANE::Microseconds EMANE::Models::IEEE80211ABG::MACConfig::getChannelActivityIntervalMicroseconds ( ) const

Definition at line 939 of file macconfig.cc.

◆ getCWMax()

std::uint16_t EMANE::Models::IEEE80211ABG::MACConfig::getCWMax ( std::uint8_t  u8Category) const

get the max contention window size for a given queue index

Parameters
u8Categoryqueue index
Return values
maxcontention window size

Definition at line 709 of file macconfig.cc.

◆ getCWMin()

std::uint16_t EMANE::Models::IEEE80211ABG::MACConfig::getCWMin ( std::uint8_t  u8Category) const

get the min contention window size for a given queue index

Parameters
u8Categoryqueue index
Return values
mincontention window size

Definition at line 680 of file macconfig.cc.

◆ getCWMinRatioVector()

EMANE::Models::IEEE80211ABG::CWRatioVector EMANE::Models::IEEE80211ABG::MACConfig::getCWMinRatioVector ( std::uint8_t  u8Category) const

Definition at line 953 of file macconfig.cc.

◆ getFlowControlEnable()

bool EMANE::Models::IEEE80211ABG::MACConfig::getFlowControlEnable ( ) const

get the flow control enable status

Return values
flowcontrol enable

Definition at line 894 of file macconfig.cc.

◆ getFlowControlTokens()

std::uint16_t EMANE::Models::IEEE80211ABG::MACConfig::getFlowControlTokens ( ) const

get the number of flow control tokens

Return values
flowcontrol tokens

Definition at line 909 of file macconfig.cc.

◆ getMaxDataRateKbps()

std::uint32_t EMANE::Models::IEEE80211ABG::MACConfig::getMaxDataRateKbps ( ) const

Definition at line 530 of file macconfig.cc.

◆ getMaxP2pDistance()

std::uint32_t EMANE::Models::IEEE80211ABG::MACConfig::getMaxP2pDistance ( ) const

get the max ptp distance

Return values
maxptp distance

Definition at line 591 of file macconfig.cc.

◆ getModulationType()

EMANE::Models::IEEE80211ABG::MODULATION_TYPE EMANE::Models::IEEE80211ABG::MACConfig::getModulationType ( ) const

get the modulation type

Return values
modulationtype

Definition at line 468 of file macconfig.cc.

◆ getNeighborMetricDeleteTimeMicroseconds()

EMANE::Microseconds EMANE::Models::IEEE80211ABG::MACConfig::getNeighborMetricDeleteTimeMicroseconds ( ) const

Definition at line 960 of file macconfig.cc.

◆ getNeighborTimeoutMicroseconds()

EMANE::Microseconds EMANE::Models::IEEE80211ABG::MACConfig::getNeighborTimeoutMicroseconds ( ) const

Definition at line 931 of file macconfig.cc.

◆ getNumAccessCategories()

std::uint8_t EMANE::Models::IEEE80211ABG::MACConfig::getNumAccessCategories ( ) const

get the number of access categories (queues)

Return values
numberof access categories (queues)

Definition at line 605 of file macconfig.cc.

◆ getPcrUri()

std::string EMANE::Models::IEEE80211ABG::MACConfig::getPcrUri ( ) const

get the pcr uri

Return values
pcruri

Definition at line 923 of file macconfig.cc.

◆ getPromiscuosEnable()

bool EMANE::Models::IEEE80211ABG::MACConfig::getPromiscuosEnable ( ) const

get the promiscuous mode

Return values
trueif on, false if off

Definition at line 439 of file macconfig.cc.

◆ getQueueEntrySize()

std::uint16_t EMANE::Models::IEEE80211ABG::MACConfig::getQueueEntrySize ( std::uint8_t  u8Category) const

get the queue entry size for a given queue index

Parameters
u8Categoryqueue index
Return values
queuesize

Definition at line 650 of file macconfig.cc.

◆ getQueueSize()

std::uint8_t EMANE::Models::IEEE80211ABG::MACConfig::getQueueSize ( std::uint8_t  u8Category) const

get the queue size for a given queue index

Parameters
u8Categoryqueue index
Return values
queuesize

Definition at line 621 of file macconfig.cc.

◆ getRadioMetricEnable()

bool EMANE::Models::IEEE80211ABG::MACConfig::getRadioMetricEnable ( ) const

Definition at line 974 of file macconfig.cc.

◆ getRadioMetricReportIntervalMicroseconds()

EMANE::Microseconds EMANE::Models::IEEE80211ABG::MACConfig::getRadioMetricReportIntervalMicroseconds ( ) const

Definition at line 967 of file macconfig.cc.

◆ getRetryLimit()

std::uint8_t EMANE::Models::IEEE80211ABG::MACConfig::getRetryLimit ( std::uint8_t  u8Category) const

get the retry limit for a given queue index

Parameters
u8Categoryqueue index
Return values
retrylimit

Definition at line 865 of file macconfig.cc.

◆ getRtsThreshold()

std::uint16_t EMANE::Models::IEEE80211ABG::MACConfig::getRtsThreshold ( ) const

Definition at line 946 of file macconfig.cc.

◆ getTxOpMicroseconds()

EMANE::Microseconds EMANE::Models::IEEE80211ABG::MACConfig::getTxOpMicroseconds ( std::uint8_t  u8Category) const

get the txop for a given queue index

Parameters
u8Categoryqueue index
Return values
txop

Definition at line 836 of file macconfig.cc.

◆ getUnicastDataRateIndex()

std::uint8_t EMANE::Models::IEEE80211ABG::MACConfig::getUnicastDataRateIndex ( ) const

get the unicast datarate index

Return values
datarateindex

Definition at line 495 of file macconfig.cc.

◆ getUnicastDataRateKbps() [1/2]

std::uint32_t EMANE::Models::IEEE80211ABG::MACConfig::getUnicastDataRateKbps ( ) const

get the unicast datarate

Return values
dataratein Kbps

Definition at line 523 of file macconfig.cc.

◆ getUnicastDataRateKbps() [2/2]

std::uint32_t EMANE::Models::IEEE80211ABG::MACConfig::getUnicastDataRateKbps ( std::uint8_t  u8Index) const

get the unicast datarate

Return values
dataratein Kbps

Definition at line 561 of file macconfig.cc.

◆ getWmmEnable()

bool EMANE::Models::IEEE80211ABG::MACConfig::getWmmEnable ( ) const

get the wmm mode

Return values
trueif on, false if off

Definition at line 454 of file macconfig.cc.

◆ processConfiguration()

bool EMANE::Models::IEEE80211ABG::MACConfig::processConfiguration ( const ConfigurationUpdate update)

Definition at line 1033 of file macconfig.cc.

◆ registerConfiguration()

void EMANE::Models::IEEE80211ABG::MACConfig::registerConfiguration ( ConfigurationRegistrar configRegistrar)

Definition at line 86 of file macconfig.cc.

◆ setCWMax0()

void EMANE::Models::IEEE80211ABG::MACConfig::setCWMax0 ( std::uint16_t  u16Value)

Definition at line 767 of file macconfig.cc.

◆ setCWMax1()

void EMANE::Models::IEEE80211ABG::MACConfig::setCWMax1 ( std::uint16_t  u16Value)

Definition at line 774 of file macconfig.cc.

◆ setCWMax2()

void EMANE::Models::IEEE80211ABG::MACConfig::setCWMax2 ( std::uint16_t  u16Value)

Definition at line 781 of file macconfig.cc.

◆ setCWMax3()

void EMANE::Models::IEEE80211ABG::MACConfig::setCWMax3 ( std::uint16_t  u16Value)

Definition at line 788 of file macconfig.cc.

◆ setCWMin0()

void EMANE::Models::IEEE80211ABG::MACConfig::setCWMin0 ( std::uint16_t  u16Value)

Definition at line 729 of file macconfig.cc.

◆ setCWMin1()

void EMANE::Models::IEEE80211ABG::MACConfig::setCWMin1 ( std::uint16_t  u16Value)

Definition at line 738 of file macconfig.cc.

◆ setCWMin2()

void EMANE::Models::IEEE80211ABG::MACConfig::setCWMin2 ( std::uint16_t  u16Value)

Definition at line 747 of file macconfig.cc.

◆ setCWMin3()

void EMANE::Models::IEEE80211ABG::MACConfig::setCWMin3 ( std::uint16_t  u16Value)

Definition at line 756 of file macconfig.cc.


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