The EDCA Parameter Set. More...
#include "edca-parameter-set.h"
Public Member Functions | |
EdcaParameterSet () | |
WifiInformationElementId | ElementId () const override |
Get the wifi information element ID. More... | |
uint8_t | GetBeAifsn () const |
Return the AC_BE AIFSN field in the EdcaParameterSet information element. More... | |
uint32_t | GetBeCWmax () const |
Return the AC_BE CWmax field in the EdcaParameterSet information element. More... | |
uint32_t | GetBeCWmin () const |
Return the AC_BE CWmin field in the EdcaParameterSet information element. More... | |
uint16_t | GetBeTxopLimit () const |
Return the AC_BE TXOP Limit field in the EdcaParameterSet information element. More... | |
uint8_t | GetBkAifsn () const |
Return the AC_BK AIFSN field in the EdcaParameterSet information element. More... | |
uint32_t | GetBkCWmax () const |
Return the AC_BK CWmax field in the EdcaParameterSet information element. More... | |
uint32_t | GetBkCWmin () const |
Return the AC_BK CWmin field in the EdcaParameterSet information element. More... | |
uint16_t | GetBkTxopLimit () const |
Return the AC_BK TXOP Limit field in the EdcaParameterSet information element. More... | |
uint8_t | GetQosInfo () const |
Return the QoS Info field in the EdcaParameterSet information element. More... | |
uint8_t | GetViAifsn () const |
Return the AC_VI AIFSN field in the EdcaParameterSet information element. More... | |
uint32_t | GetViCWmax () const |
Return the AC_VI CWmax field in the EdcaParameterSet information element. More... | |
uint32_t | GetViCWmin () const |
Return the AC_VI CWmin field in the EdcaParameterSet information element. More... | |
uint16_t | GetViTxopLimit () const |
Return the AC_VI TXOP Limit field in the EdcaParameterSet information element. More... | |
uint8_t | GetVoAifsn () const |
Return the AC_VO AIFSN field in the EdcaParameterSet information element. More... | |
uint32_t | GetVoCWmax () const |
Return the AC_VO CWmax field in the EdcaParameterSet information element. More... | |
uint32_t | GetVoCWmin () const |
Return the AC_VO CWmin field in the EdcaParameterSet information element. More... | |
uint16_t | GetVoTxopLimit () const |
Return the AC_VO TXOP Limit field in the EdcaParameterSet information element. More... | |
void | SetBeAci (uint8_t aci) |
Set the AC_BE ACI field in the EdcaParameterSet information element. More... | |
void | SetBeAifsn (uint8_t aifsn) |
Set the AC_BE AIFSN field in the EdcaParameterSet information element. More... | |
void | SetBeCWmax (uint32_t cwMax) |
Set the AC_BE CWmax field in the EdcaParameterSet information element. More... | |
void | SetBeCWmin (uint32_t cwMin) |
Set the AC_BE CWmin field in the EdcaParameterSet information element. More... | |
void | SetBeTxopLimit (uint16_t txop) |
Set the AC_BE TXOP Limit field in the EdcaParameterSet information element. More... | |
void | SetBkAci (uint8_t aci) |
Set the AC_BK ACI field in the EdcaParameterSet information element. More... | |
void | SetBkAifsn (uint8_t aifsn) |
Set the AC_BK AIFSN field in the EdcaParameterSet information element. More... | |
void | SetBkCWmax (uint32_t cwMax) |
Set the AC_BK CWmax field in the EdcaParameterSet information element. More... | |
void | SetBkCWmin (uint32_t cwMin) |
Set the AC_BK CWmin field in the EdcaParameterSet information element. More... | |
void | SetBkTxopLimit (uint16_t txop) |
Set the AC_BK TXOP Limit field in the EdcaParameterSet information element. More... | |
void | SetQosInfo (uint8_t qosInfo) |
Set the QoS Info field in the EdcaParameterSet information element. More... | |
void | SetViAci (uint8_t aci) |
Set the AC_VI ACI field in the EdcaParameterSet information element. More... | |
void | SetViAifsn (uint8_t aifsn) |
Set the AC_VI AIFSN field in the EdcaParameterSet information element. More... | |
void | SetViCWmax (uint32_t cwMax) |
Set the AC_VI CWmax field in the EdcaParameterSet information element. More... | |
void | SetViCWmin (uint32_t cwMin) |
Set the AC_VI CWmin field in the EdcaParameterSet information element. More... | |
void | SetViTxopLimit (uint16_t txop) |
Set the AC_VI TXOP Limit field in the EdcaParameterSet information element. More... | |
void | SetVoAci (uint8_t aci) |
Set the AC_VO ACI field in the EdcaParameterSet information element. More... | |
void | SetVoAifsn (uint8_t aifsn) |
Set the AC_VO AIFSN field in the EdcaParameterSet information element. More... | |
void | SetVoCWmax (uint32_t cwMax) |
Set the AC_VO CWmax field in the EdcaParameterSet information element. More... | |
void | SetVoCWmin (uint32_t cwMin) |
Set the AC_VO CWmin field in the EdcaParameterSet information element. More... | |
void | SetVoTxopLimit (uint16_t txop) |
Set the AC_VO TXOP Limit field in the EdcaParameterSet information element. More... | |
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. More... | |
Buffer::Iterator | DeserializeIfPresent (Buffer::Iterator i) |
Deserialize entire IE (which may possibly be fragmented into multiple elements) if it is present. More... | |
virtual WifiInformationElementId | ElementIdExt () const |
Get the wifi information element ID extension. More... | |
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). More... | |
virtual bool | operator== (const WifiInformationElement &a) const |
Compare two IEs for equality by ID & Length, and then through memcmp of serialised version. More... | |
virtual void | Print (std::ostream &os) const |
Generate human-readable form of IE. More... | |
Buffer::Iterator | Serialize (Buffer::Iterator i) const |
Serialize entire IE including Element ID and length fields. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< WifiInformationElement > | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o[[maybe_unused]]) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o[[maybe_unused]]) |
Assignment operator. More... | |
void | Ref () const |
Increment the reference count. More... | |
void | Unref () const |
Decrement the reference count. More... | |
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) More... | |
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. More... | |
void | SerializeInformationField (Buffer::Iterator start) const override |
Serialize information (i.e., the body of the IE, not including the Element ID and length octets) More... | |
Private Attributes | |
uint32_t | m_acBE |
AC_BE. More... | |
uint32_t | m_acBK |
AC_BK. More... | |
uint32_t | m_acVI |
AC_VI. More... | |
uint32_t | m_acVO |
AC_VO. More... | |
uint8_t | m_qosInfo |
QOS info. More... | |
uint8_t | m_reserved |
reserved More... | |
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(), ns3::Buffer::Iterator::ReadU8(), and two-ray-to-three-gpp-ch-calibration::start.
|
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, m_reserved, and two-ray-to-three-gpp-ch-calibration::start.
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().