33 class UniformRandomVariable;
34 class CtrlBAckResponseHeader;
243 virtual void GotAck (
void);
272 virtual void Cancel (
void);
289 virtual bool HasTxop (
void)
const;
virtual uint32_t GetFragmentSize(void) const
Calculate the size of the current fragment.
MacLowTransmissionParameters m_currentParams
current transmission parameters
virtual void NotifyInternalCollision(void)
Notify the DCF that internal collision has occurred.
uint32_t GetMaxCw(void) const
Return the maximum contention window size.
bool NeedRtsRetransmission(Ptr< const Packet > packet, const WifiMacHeader &hdr)
Check if RTS should be re-transmitted if CTS was missed.
Simulation virtual time values and global simulation resolution.
Ptr< DcfState > m_dcf
the DCF state
Callback< void, const WifiMacHeader & > TxFailed
typedef for a callback to invoke when a packet transmission was failed.
void SetTxDroppedCallback(TxDropped callback)
uint8_t m_fragmentNumber
the fragment number
void SetTxFailedCallback(TxFailed callback)
void SetMaxCw(uint32_t maxCw)
Set the maximum contention window size.
virtual uint32_t GetNextFragmentSize(void) const
Calculate the size of the next fragment.
Ptr< MacLow > m_low
the MacLow
virtual void StartNextFragment(void)
Start transmission for the next fragment.
TxOk m_txOkCallback
the transmit OK callback
bool NeedDataRetransmission(Ptr< const Packet > packet, const WifiMacHeader &hdr)
Check if DATA should be re-transmitted if ACK was missed.
uint32_t GetAifsn(void) const
Return the number of slots that make up an AIFS.
void SetManager(const Ptr< DcfManager > manager)
Set DcfManager this DcaTxop is associated to.
int64_t AssignStreams(int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model...
represent a single transmission modeA WifiMode is implemented by a single integer which is used to lo...
static TypeId GetTypeId(void)
Get the type ID.
control how a packet is transmitted.
void SetTxOkCallback(TxOk callback)
virtual void NotifySleep(void)
When sleep operation occurs, if there is a pending packet transmission, it will be reinserted to the ...
virtual Ptr< Packet > GetFragmentPacket(WifiMacHeader *hdr)
Get the next fragment from the packet with appropriate Wifi header for the fragment.
friend class MacLowTransmissionListener
allow MacLowTransmissionListener class access
Callback< void, Ptr< const Packet > > TxDropped
typedef for a callback to invoke when a packet is dropped.
virtual void Queue(Ptr< const Packet > packet, const WifiMacHeader &hdr)
Time GetTxopLimit(void) const
Return the TXOP limit.
TxDropped m_txDroppedCallback
the packet dropped callback
virtual bool IsEdca()
Check for EDCA.
Ptr< WifiMacQueue > m_queue
the wifi MAC queue
virtual void Cancel(void)
Cancel the transmission.
virtual bool NeedFragmentation(void) const
Check if the current packet should be fragmented.
virtual void DoInitialize(void)
Initialize() implementation.
virtual void NotifyChannelSwitching(void)
When a channel switching occurs, enqueued packets are removed.
virtual void MissedCts(void)
Event handler when a CTS timeout has occurred.
keep track of the state needed for a single DCF function.
virtual void GotAck(void)
Event handler when an ACK is received.
virtual void NotifyOn(void)
When on operation occurs, channel access will be started.
Ptr< WifiRemoteStationManager > m_stationManager
the wifi remote station manager
void SetAifsn(uint32_t aifsn)
Set the number of slots that make up an AIFS.
Ptr< UniformRandomVariable > m_rng
the random stream
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Callback< void, const WifiMacHeader & > TxOk
typedef for a callback to invoke when a packet transmission was completed successfully.
WifiMacHeader m_currentHdr
the current header
Ptr< WifiMacQueue > GetQueue() const
Return the packet queue associated with this DcaTxop.
virtual void NotifyWakeUp(void)
When wake up operation occurs, channel access will be restarted.
Ptr< const Packet > m_currentPacket
the current packet
friend class DcfListener
allow DcfListener class access
Ptr< MacLow > GetLow(void) const
Return the MacLow associated with this DcaTxop.
virtual void StartNextPacket(void)
Start transmission for the next packet if allowed by the TxopLimit.
void SetLow(const Ptr< MacLow > low)
Set MacLow associated with this DcaTxop.
void SetTxMiddle(const Ptr< MacTxMiddle > txMiddle)
Set MacTxMiddle this DcaTxop is associated to.
void SetMinCw(uint32_t minCw)
Set the minimum contention window size.
virtual bool IsLastFragment(void) const
Check if the current fragment is the last fragment.
Ptr< MacTxMiddle > m_txMiddle
the MacTxMiddle
virtual void GotBlockAck(const CtrlBAckResponseHeader *blockAck, Mac48Address recipient, double rxSnr, WifiMode txMode, double dataSnr)
Event handler when a Block ACK is received.
void SetTxopLimit(Time txopLimit)
Set the TXOP limit.
void TxDroppedPacket(Ptr< const WifiMacQueueItem > item)
Pass the packet included in the wifi MAC queue item to the packet dropped callback.
virtual void DoDispose(void)
Destructor implementation.
virtual void NotifyCollision(void)
Notify the DCF that collision has occurred.
virtual void StartAccessIfNeeded(void)
Request access from DCF manager if needed.
void NextFragment(void)
Continue to the next fragment.
virtual bool HasTxop(void) const
Check if the station has TXOP granted for the next MPDU.
virtual void RestartAccessIfNeeded(void)
Restart access request if needed.
A base class which provides memory management and object aggregation.
virtual void MissedAck(void)
Event handler when an ACK is missed.
handle packet fragmentation and retransmissions.
virtual void NotifyOff(void)
When off operation occurs, the queue gets cleaned up.
uint32_t GetMinCw(void) const
Return the minimum contention window size.
a unique identifier for an interface.
virtual void NotifyAccessGranted(void)
Notify the DCF that access has been granted.
virtual void EndTxNoAck(void)
Event handler when a transmission that does not require an ACK has completed.
virtual void SetWifiRemoteStationManager(const Ptr< WifiRemoteStationManager > remoteManager)
Set WifiRemoteStationsManager this DcaTxop is associated to.
virtual void MissedBlockAck(uint8_t nMpdus)
Event handler when a Block ACK timeout has occurred.
virtual uint32_t GetFragmentOffset(void) const
Calculate the offset for the current fragment.
TxFailed m_txFailedCallback
the transmit failed callback
Ptr< DcfManager > m_manager
the DCF manager