24 #include "ns3/nstime.h"
25 #include "ns3/simulator.h"
137 uint32_t
GetCw (
void)
const;
uint32_t m_cwMin
the CW minimum
void SetTxopLimit(Time txopLimit)
Set the TXOP limit.
Simulation virtual time values and global simulation resolution.
void NotifySleep(void)
Notify that the device has started to sleep.
DcfState(Ptr< DcaTxop > txop)
Constructor.
Smart pointer class similar to boost::intrusive_ptr.
void NotifyInternalCollision(void)
Notify that internal collision has occurred.
uint32_t GetCwMin(void) const
Return the minimum contention window size.
void NotifyAccessGranted(void)
Notify that access has been granted.
Time GetBackoffStart(void) const
Return the time when the backoff procedure started.
void NotifyWakeUp(void)
Notify that the device has started to wake up.
Ptr< DcaTxop > m_txop
the DCA TXOP
bool m_accessRequested
flag whether channel access is already requested
void SetAifsn(uint32_t aifsn)
void ResetCw(void)
Update the value of the CW variable to take into account a transmission success or a transmission abo...
Time GetTxopLimit(void) const
Return the TXOP limit.
uint32_t m_backoffSlots
the backoff slots
Time m_txopLimit
the txop limit time
Manage a set of ns3::DcfStateHandle a set of independent ns3::DcfState, each of which represents a si...
keep track of the state needed for a single DCF function.
bool IsAccessRequested(void) const
void DoDispose(void)
Destructor implementation.
uint32_t GetBackoffSlots(void) const
Return the current number of backoff slots.
uint32_t GetCwMax(void) const
Return the maximum contention window size.
void NotifyOn(void)
Notify that the device has started to switch on.
void SetCwMin(uint32_t minCw)
Set the minimum contention window size.
void StartBackoffNow(uint32_t nSlots)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint32_t m_cwMax
the CW maximum
void NotifyAccessRequested(void)
Notify that access request has been received.
uint32_t m_cw
the current CW
void SetCwMax(uint32_t maxCw)
Set the maximum contention window size.
void NotifyChannelSwitching(void)
Notify that the device is switching channel.
uint32_t GetCw(void) const
uint32_t GetAifsn(void) const
Return the number of slots that make up an AIFS.
uint32_t m_aifsn
the AIFSN
void UpdateBackoffSlotsNow(uint32_t nSlots, Time backoffUpdateBound)
Update backoff slots that nSlots has passed.
static TypeId GetTypeId(void)
Get the type ID.
void NotifyCollision(void)
Notify that collision has occurred.
void NotifyOff(void)
Notify that the device has started to switch off.
Time m_backoffStart
the backoffStart variable is used to keep track of the time at which a backoff was started or the tim...
A base class which provides memory management and object aggregation.
void UpdateFailedCw(void)
Update the value of the CW variable to take into account a transmission failure.
a unique identifier for an interface.