The EDCA Parameter Set. More...
#include "edca-parameter-set.h"
Public Member Functions | |
EdcaParameterSet () | |
WifiInformationElementId | ElementId () const override |
Get the wifi information element ID. | |
uint8_t | GetBeAifsn () const |
Return the AC_BE AIFSN field in the EdcaParameterSet information element. | |
uint32_t | GetBeCWmax () const |
Return the AC_BE CWmax field in the EdcaParameterSet information element. | |
uint32_t | GetBeCWmin () const |
Return the AC_BE CWmin field in the EdcaParameterSet information element. | |
uint16_t | GetBeTxopLimit () const |
Return the AC_BE TXOP Limit field in the EdcaParameterSet information element. | |
uint8_t | GetBkAifsn () const |
Return the AC_BK AIFSN field in the EdcaParameterSet information element. | |
uint32_t | GetBkCWmax () const |
Return the AC_BK CWmax field in the EdcaParameterSet information element. | |
uint32_t | GetBkCWmin () const |
Return the AC_BK CWmin field in the EdcaParameterSet information element. | |
uint16_t | GetBkTxopLimit () const |
Return the AC_BK TXOP Limit field in the EdcaParameterSet information element. | |
uint8_t | GetQosInfo () const |
Return the QoS Info field in the EdcaParameterSet information element. | |
uint8_t | GetViAifsn () const |
Return the AC_VI AIFSN field in the EdcaParameterSet information element. | |
uint32_t | GetViCWmax () const |
Return the AC_VI CWmax field in the EdcaParameterSet information element. | |
uint32_t | GetViCWmin () const |
Return the AC_VI CWmin field in the EdcaParameterSet information element. | |
uint16_t | GetViTxopLimit () const |
Return the AC_VI TXOP Limit field in the EdcaParameterSet information element. | |
uint8_t | GetVoAifsn () const |
Return the AC_VO AIFSN field in the EdcaParameterSet information element. | |
uint32_t | GetVoCWmax () const |
Return the AC_VO CWmax field in the EdcaParameterSet information element. | |
uint32_t | GetVoCWmin () const |
Return the AC_VO CWmin field in the EdcaParameterSet information element. | |
uint16_t | GetVoTxopLimit () const |
Return the AC_VO TXOP Limit field in the EdcaParameterSet information element. | |
void | SetBeAci (uint8_t aci) |
Set the AC_BE ACI field in the EdcaParameterSet information element. | |
void | SetBeAifsn (uint8_t aifsn) |
Set the AC_BE AIFSN field in the EdcaParameterSet information element. | |
void | SetBeCWmax (uint32_t cwMax) |
Set the AC_BE CWmax field in the EdcaParameterSet information element. | |
void | SetBeCWmin (uint32_t cwMin) |
Set the AC_BE CWmin field in the EdcaParameterSet information element. | |
void | SetBeTxopLimit (uint16_t txop) |
Set the AC_BE TXOP Limit field in the EdcaParameterSet information element. | |
void | SetBkAci (uint8_t aci) |
Set the AC_BK ACI field in the EdcaParameterSet information element. | |
void | SetBkAifsn (uint8_t aifsn) |
Set the AC_BK AIFSN field in the EdcaParameterSet information element. | |
void | SetBkCWmax (uint32_t cwMax) |
Set the AC_BK CWmax field in the EdcaParameterSet information element. | |
void | SetBkCWmin (uint32_t cwMin) |
Set the AC_BK CWmin field in the EdcaParameterSet information element. | |
void | SetBkTxopLimit (uint16_t txop) |
Set the AC_BK TXOP Limit field in the EdcaParameterSet information element. | |
void | SetQosInfo (uint8_t qosInfo) |
Set the QoS Info field in the EdcaParameterSet information element. | |
void | SetViAci (uint8_t aci) |
Set the AC_VI ACI field in the EdcaParameterSet information element. | |
void | SetViAifsn (uint8_t aifsn) |
Set the AC_VI AIFSN field in the EdcaParameterSet information element. | |
void | SetViCWmax (uint32_t cwMax) |
Set the AC_VI CWmax field in the EdcaParameterSet information element. | |
void | SetViCWmin (uint32_t cwMin) |
Set the AC_VI CWmin field in the EdcaParameterSet information element. | |
void | SetViTxopLimit (uint16_t txop) |
Set the AC_VI TXOP Limit field in the EdcaParameterSet information element. | |
void | SetVoAci (uint8_t aci) |
Set the AC_VO ACI field in the EdcaParameterSet information element. | |
void | SetVoAifsn (uint8_t aifsn) |
Set the AC_VO AIFSN field in the EdcaParameterSet information element. | |
void | SetVoCWmax (uint32_t cwMax) |
Set the AC_VO CWmax field in the EdcaParameterSet information element. | |
void | SetVoCWmin (uint32_t cwMin) |
Set the AC_VO CWmin field in the EdcaParameterSet information element. | |
void | SetVoTxopLimit (uint16_t txop) |
Set the AC_VO TXOP Limit field in the EdcaParameterSet information element. | |
Public Member Functions inherited from ns3::WifiInformationElement | |
virtual | ~WifiInformationElement () |
Buffer::Iterator | Deserialize (Buffer::Iterator i) |
Deserialize entire IE (which may possibly be fragmented into multiple elements), which must be present. | |
Buffer::Iterator | DeserializeIfPresent (Buffer::Iterator i) |
Deserialize entire IE (which may possibly be fragmented into multiple elements) if it is present. | |
virtual WifiInformationElementId | ElementId () const =0 |
Get the wifi information element ID. | |
virtual WifiInformationElementId | ElementIdExt () const |
Get the wifi information element ID extension. | |
uint16_t | GetSerializedSize () const |
Get the size of the serialized IE including Element ID and length fields (for every element this IE is possibly fragmented into). | |
virtual bool | operator== (const WifiInformationElement &a) const |
Compare two IEs for equality by ID & Length, and then through memcmp of serialised version. | |
virtual void | Print (std::ostream &os) const |
Generate human-readable form of IE. | |
Buffer::Iterator | Serialize (Buffer::Iterator i) const |
Serialize entire IE including Element ID and length fields. | |
Public Member Functions inherited from ns3::SimpleRefCount< WifiInformationElement > | |
SimpleRefCount () | |
Default constructor. | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. | |
void | Ref () const |
Increment the reference count. | |
void | Unref () const |
Decrement the reference count. | |
Private Member Functions | |
uint16_t | DeserializeInformationField (Buffer::Iterator start, uint16_t length) override |
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets) | |
uint16_t | GetInformationFieldSize () const override |
Length of serialized information (i.e., the length of the body of the IE, not including the Element ID and length octets. | |
void | SerializeInformationField (Buffer::Iterator start) const override |
Serialize information (i.e., the body of the IE, not including the Element ID and length octets) | |
Private Attributes | |
uint32_t | m_acBE |
AC_BE. | |
uint32_t | m_acBK |
AC_BK. | |
uint32_t | m_acVI |
AC_VI. | |
uint32_t | m_acVO |
AC_VO. | |
uint8_t | m_qosInfo |
QOS info. | |
uint8_t | m_reserved |
reserved | |
The EDCA Parameter Set.
This class knows how to serialise and deserialise the EDCA Parameter Set.
Definition at line 34 of file edca-parameter-set.h.
ns3::EdcaParameterSet::EdcaParameterSet | ( | ) |
Definition at line 27 of file edca-parameter-set.cc.
|
overrideprivatevirtual |
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets)
start | an iterator which points to where the information should be written. |
length | the expected number of bytes to read |
Implements ns3::WifiInformationElement.
Definition at line 305 of file edca-parameter-set.cc.
References m_acBE, m_acBK, m_acVI, m_acVO, m_qosInfo, m_reserved, ns3::Buffer::Iterator::ReadU32(), and ns3::Buffer::Iterator::ReadU8().
|
overridevirtual |
Get the wifi information element ID.
Implements ns3::WifiInformationElement.
Definition at line 38 of file edca-parameter-set.cc.
References IE_EDCA_PARAMETER_SET.
uint8_t ns3::EdcaParameterSet::GetBeAifsn | ( | ) | const |
Return the AC_BE AIFSN field in the EdcaParameterSet information element.
Definition at line 184 of file edca-parameter-set.cc.
References m_acBE.
uint32_t ns3::EdcaParameterSet::GetBeCWmax | ( | ) | const |
Return the AC_BE CWmax field in the EdcaParameterSet information element.
Definition at line 197 of file edca-parameter-set.cc.
References m_acBE.
uint32_t ns3::EdcaParameterSet::GetBeCWmin | ( | ) | const |
Return the AC_BE CWmin field in the EdcaParameterSet information element.
Definition at line 190 of file edca-parameter-set.cc.
References m_acBE.
uint16_t ns3::EdcaParameterSet::GetBeTxopLimit | ( | ) | const |
Return the AC_BE TXOP Limit field in the EdcaParameterSet information element.
Definition at line 204 of file edca-parameter-set.cc.
References m_acBE.
uint8_t ns3::EdcaParameterSet::GetBkAifsn | ( | ) | const |
Return the AC_BK AIFSN field in the EdcaParameterSet information element.
Definition at line 210 of file edca-parameter-set.cc.
References m_acBK.
uint32_t ns3::EdcaParameterSet::GetBkCWmax | ( | ) | const |
Return the AC_BK CWmax field in the EdcaParameterSet information element.
Definition at line 223 of file edca-parameter-set.cc.
References m_acBK.
uint32_t ns3::EdcaParameterSet::GetBkCWmin | ( | ) | const |
Return the AC_BK CWmin field in the EdcaParameterSet information element.
Definition at line 216 of file edca-parameter-set.cc.
References m_acBK.
uint16_t ns3::EdcaParameterSet::GetBkTxopLimit | ( | ) | const |
Return the AC_BK TXOP Limit field in the EdcaParameterSet information element.
Definition at line 230 of file edca-parameter-set.cc.
References m_acBK.
|
overrideprivatevirtual |
Length of serialized information (i.e., the length of the body of the IE, not including the Element ID and length octets.
This is the value that will appear in the second octet of the entire IE - the length field - if the IE is not fragmented)
Implements ns3::WifiInformationElement.
Definition at line 288 of file edca-parameter-set.cc.
uint8_t ns3::EdcaParameterSet::GetQosInfo | ( | ) | const |
Return the QoS Info field in the EdcaParameterSet information element.
Definition at line 178 of file edca-parameter-set.cc.
References m_qosInfo.
Referenced by SerializeInformationField().
uint8_t ns3::EdcaParameterSet::GetViAifsn | ( | ) | const |
Return the AC_VI AIFSN field in the EdcaParameterSet information element.
Definition at line 236 of file edca-parameter-set.cc.
References m_acVI.
uint32_t ns3::EdcaParameterSet::GetViCWmax | ( | ) | const |
Return the AC_VI CWmax field in the EdcaParameterSet information element.
Definition at line 249 of file edca-parameter-set.cc.
References m_acVI.
uint32_t ns3::EdcaParameterSet::GetViCWmin | ( | ) | const |
Return the AC_VI CWmin field in the EdcaParameterSet information element.
Definition at line 242 of file edca-parameter-set.cc.
References m_acVI.
uint16_t ns3::EdcaParameterSet::GetViTxopLimit | ( | ) | const |
Return the AC_VI TXOP Limit field in the EdcaParameterSet information element.
Definition at line 256 of file edca-parameter-set.cc.
References m_acVI.
uint8_t ns3::EdcaParameterSet::GetVoAifsn | ( | ) | const |
Return the AC_VO AIFSN field in the EdcaParameterSet information element.
Definition at line 262 of file edca-parameter-set.cc.
References m_acVO.
uint32_t ns3::EdcaParameterSet::GetVoCWmax | ( | ) | const |
Return the AC_VO CWmax field in the EdcaParameterSet information element.
Definition at line 275 of file edca-parameter-set.cc.
References m_acVO.
uint32_t ns3::EdcaParameterSet::GetVoCWmin | ( | ) | const |
Return the AC_VO CWmin field in the EdcaParameterSet information element.
Definition at line 268 of file edca-parameter-set.cc.
References m_acVO.
uint16_t ns3::EdcaParameterSet::GetVoTxopLimit | ( | ) | const |
Return the AC_VO TXOP Limit field in the EdcaParameterSet information element.
Definition at line 282 of file edca-parameter-set.cc.
References m_acVO.
|
overrideprivatevirtual |
Serialize information (i.e., the body of the IE, not including the Element ID and length octets)
start | an iterator which points to where the information should be written. |
Implements ns3::WifiInformationElement.
Definition at line 294 of file edca-parameter-set.cc.
References GetQosInfo(), m_acBE, m_acBK, m_acVI, m_acVO, and m_reserved.
void ns3::EdcaParameterSet::SetBeAci | ( | uint8_t | aci | ) |
Set the AC_BE ACI field in the EdcaParameterSet information element.
aci | the AC_BE ACI field in the EdcaParameterSet information element |
Definition at line 56 of file edca-parameter-set.cc.
References m_acBE.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetBeAifsn | ( | uint8_t | aifsn | ) |
Set the AC_BE AIFSN field in the EdcaParameterSet information element.
aifsn | the AC_BE AIFSN field in the EdcaParameterSet information element |
Definition at line 50 of file edca-parameter-set.cc.
References m_acBE.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetBeCWmax | ( | uint32_t | cwMax | ) |
Set the AC_BE CWmax field in the EdcaParameterSet information element.
cwMax | the AC_BE CWmax field in the EdcaParameterSet information element |
Definition at line 69 of file edca-parameter-set.cc.
References m_acBE.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetBeCWmin | ( | uint32_t | cwMin | ) |
Set the AC_BE CWmin field in the EdcaParameterSet information element.
cwMin | the AC_BE CWmin field in the EdcaParameterSet information element |
Definition at line 62 of file edca-parameter-set.cc.
References m_acBE.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetBeTxopLimit | ( | uint16_t | txop | ) |
Set the AC_BE TXOP Limit field in the EdcaParameterSet information element.
txop | the AC_BE TXOP Limit field in the EdcaParameterSet information element |
Definition at line 76 of file edca-parameter-set.cc.
References m_acBE.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetBkAci | ( | uint8_t | aci | ) |
Set the AC_BK ACI field in the EdcaParameterSet information element.
aci | the AC_BK ACI field in the EdcaParameterSet information element |
Definition at line 88 of file edca-parameter-set.cc.
References m_acBK.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetBkAifsn | ( | uint8_t | aifsn | ) |
Set the AC_BK AIFSN field in the EdcaParameterSet information element.
aifsn | the AC_BB AIFSN field in the EdcaParameterSet information element |
Definition at line 82 of file edca-parameter-set.cc.
References m_acBK.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetBkCWmax | ( | uint32_t | cwMax | ) |
Set the AC_BK CWmax field in the EdcaParameterSet information element.
cwMax | the AC_BK CWmax field in the EdcaParameterSet information element |
Definition at line 101 of file edca-parameter-set.cc.
References m_acBK.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetBkCWmin | ( | uint32_t | cwMin | ) |
Set the AC_BK CWmin field in the EdcaParameterSet information element.
cwMin | the AC_BK CWmin field in the EdcaParameterSet information element |
Definition at line 94 of file edca-parameter-set.cc.
References m_acBK.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetBkTxopLimit | ( | uint16_t | txop | ) |
Set the AC_BK TXOP Limit field in the EdcaParameterSet information element.
txop | the AC_BK TXOP Limit field in the EdcaParameterSet information element |
Definition at line 108 of file edca-parameter-set.cc.
References m_acBK.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetQosInfo | ( | uint8_t | qosInfo | ) |
Set the QoS Info field in the EdcaParameterSet information element.
qosInfo | the QoS Info field in the EdcaParameterSet information element |
Definition at line 44 of file edca-parameter-set.cc.
References m_qosInfo.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetViAci | ( | uint8_t | aci | ) |
Set the AC_VI ACI field in the EdcaParameterSet information element.
aci | the AC_VI ACI field in the EdcaParameterSet information element |
Definition at line 120 of file edca-parameter-set.cc.
References m_acVI.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetViAifsn | ( | uint8_t | aifsn | ) |
Set the AC_VI AIFSN field in the EdcaParameterSet information element.
aifsn | the AC_VI AIFSN field in the EdcaParameterSet information element |
Definition at line 114 of file edca-parameter-set.cc.
References m_acVI.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetViCWmax | ( | uint32_t | cwMax | ) |
Set the AC_VI CWmax field in the EdcaParameterSet information element.
cwMax | the AC_VI CWmax field in the EdcaParameterSet information element |
Definition at line 133 of file edca-parameter-set.cc.
References m_acVI.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetViCWmin | ( | uint32_t | cwMin | ) |
Set the AC_VI CWmin field in the EdcaParameterSet information element.
cwMin | the AC_VI CWmin field in the EdcaParameterSet information element |
Definition at line 126 of file edca-parameter-set.cc.
References m_acVI.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetViTxopLimit | ( | uint16_t | txop | ) |
Set the AC_VI TXOP Limit field in the EdcaParameterSet information element.
txop | the AC_VI TXOP Limit field in the EdcaParameterSet information element |
Definition at line 140 of file edca-parameter-set.cc.
References m_acVI.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetVoAci | ( | uint8_t | aci | ) |
Set the AC_VO ACI field in the EdcaParameterSet information element.
aci | the AC_VO ACI field in the EdcaParameterSet information element |
Definition at line 152 of file edca-parameter-set.cc.
References m_acVO.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetVoAifsn | ( | uint8_t | aifsn | ) |
Set the AC_VO AIFSN field in the EdcaParameterSet information element.
aifsn | the AC_VO AIFSN field in the EdcaParameterSet information element |
Definition at line 146 of file edca-parameter-set.cc.
References m_acVO.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetVoCWmax | ( | uint32_t | cwMax | ) |
Set the AC_VO CWmax field in the EdcaParameterSet information element.
cwMax | the AC_VO CWmax field in the EdcaParameterSet information element |
Definition at line 165 of file edca-parameter-set.cc.
References m_acVO.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetVoCWmin | ( | uint32_t | cwMin | ) |
Set the AC_VO CWmin field in the EdcaParameterSet information element.
cwMin | the AC_VO CWmin field in the EdcaParameterSet information element |
Definition at line 158 of file edca-parameter-set.cc.
References m_acVO.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
void ns3::EdcaParameterSet::SetVoTxopLimit | ( | uint16_t | txop | ) |
Set the AC_VO TXOP Limit field in the EdcaParameterSet information element.
txop | the AC_VO TXOP Limit field in the EdcaParameterSet information element |
Definition at line 172 of file edca-parameter-set.cc.
References m_acVO.
Referenced by ns3::ApWifiMac::GetEdcaParameterSet().
|
private |
AC_BE.
Definition at line 279 of file edca-parameter-set.h.
Referenced by DeserializeInformationField(), GetBeAifsn(), GetBeCWmax(), GetBeCWmin(), GetBeTxopLimit(), SerializeInformationField(), SetBeAci(), SetBeAifsn(), SetBeCWmax(), SetBeCWmin(), and SetBeTxopLimit().
|
private |
AC_BK.
Definition at line 280 of file edca-parameter-set.h.
Referenced by DeserializeInformationField(), GetBkAifsn(), GetBkCWmax(), GetBkCWmin(), GetBkTxopLimit(), SerializeInformationField(), SetBkAci(), SetBkAifsn(), SetBkCWmax(), SetBkCWmin(), and SetBkTxopLimit().
|
private |
AC_VI.
Definition at line 281 of file edca-parameter-set.h.
Referenced by DeserializeInformationField(), GetViAifsn(), GetViCWmax(), GetViCWmin(), GetViTxopLimit(), SerializeInformationField(), SetViAci(), SetViAifsn(), SetViCWmax(), SetViCWmin(), and SetViTxopLimit().
|
private |
AC_VO.
Definition at line 282 of file edca-parameter-set.h.
Referenced by DeserializeInformationField(), GetVoAifsn(), GetVoCWmax(), GetVoCWmin(), GetVoTxopLimit(), SerializeInformationField(), SetVoAci(), SetVoAifsn(), SetVoCWmax(), SetVoCWmin(), and SetVoTxopLimit().
|
private |
QOS info.
Definition at line 277 of file edca-parameter-set.h.
Referenced by DeserializeInformationField(), GetQosInfo(), and SetQosInfo().
|
private |
reserved
Definition at line 278 of file edca-parameter-set.h.
Referenced by DeserializeInformationField(), and SerializeInformationField().