22 #include "ns3/uinteger.h"
36 .SetGroupName (
"Wifi")
37 .AddAttribute (
"MinCw",
"The minimum value of the contention window.",
41 MakeUintegerChecker<uint32_t> ())
42 .AddAttribute (
"MaxCw",
"The maximum value of the contention window.",
46 MakeUintegerChecker<uint32_t> ())
47 .AddAttribute (
"Aifsn",
"The AIFSN: the default value conforms to simple DCA.",
51 MakeUintegerChecker<uint32_t> ())
52 .AddAttribute (
"TxopLimit",
"The TXOP limit: the default value conforms to simple DCA.",
virtual void SetMaxCw(uint32_t maxCw)=0
Set the maximum contention window size.
virtual void SetTxopLimit(Time txopLimit)=0
virtual uint32_t GetMinCw(void) const =0
Return the minimum contention window size.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Time MilliSeconds(uint64_t value)
Construct a Time in the indicated unit.
Ptr< const AttributeChecker > MakeTimeChecker(const Time min, const Time max)
Helper to make a Time checker with bounded range.
AttributeValue implementation for Time.
Hold an unsigned integer type.
virtual void SetAifsn(uint32_t aifsn)=0
virtual Time GetTxopLimit(void) const =0
Return the TXOP limit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< const AttributeAccessor > MakeTimeAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
virtual void SetMinCw(uint32_t minCw)=0
Set the minimum contention window size.
static TypeId GetTypeId(void)
virtual uint32_t GetAifsn(void) const =0
Return the number of slots that make up an AIFS.
A base class which provides memory management and object aggregation.
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
virtual uint32_t GetMaxCw(void) const =0
Return the maximum contention window size.