|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
27 #include <unordered_map>
32 class CapabilityInformation;
33 class DsssParameterSet;
35 class EdcaParameterSet;
36 class MuEdcaParameterSet;
102 const std::map<uint16_t, Mac48Address>&
GetStaList (
void)
const;
330 std::unordered_map<WifiAddressTidPair, bsrType, WifiAddressTidHash>
m_bufferStatus;
Ptr< Txop > m_beaconTxop
Dedicated Txop for beacons.
void DoInitialize(void) override
Initialize() implementation.
a unique identifier for an interface.
SupportedRates GetSupportedRates(void) const
Return an instance of SupportedRates that contains all rates that we support including HT rates.
std::unordered_map< WifiAddressTidPair, bsrType, WifiAddressTidHash > m_bufferStatus
Per (MAC address, TID) buffer status reports.
An identifier for simulation events.
void(* AssociationCallback)(uint16_t aid, Mac48Address address)
TracedCallback signature for association/deassociation events.
void DeaggregateAmsduAndForward(Ptr< WifiMacQueueItem > mpdu) override
This method is called to de-aggregate an A-MSDU and forward the constituent packets up the stack.
HeOperation GetHeOperation(void) const
Return the HE operation of the current AP.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
HtOperation GetHtOperation(void) const
Return the HT operation of the current AP.
void TxFailed(uint8_t timeoutReason, Ptr< const WifiMacQueueItem > mpdu, const WifiTxVector &txVector)
The packet we sent was successfully received by the receiver (i.e.
const std::map< uint16_t, Mac48Address > & GetStaList(void) const
Get a const reference to the map of associated stations.
DsssParameterSet GetDsssParameterSet(void) const
Return the DSSS Parameter Set that we support.
void TxOk(Ptr< const WifiMacQueueItem > mpdu)
The packet we sent was successfully received by the receiver (i.e.
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
base class for all MAC-level wifi objects.
void SetBeaconInterval(Time interval)
bool m_shortPreambleEnabled
Flag whether short preamble is enabled in the BSS.
uint8_t value
value of BSR
The VHT Operation Information Element.
static TypeId GetTypeId(void)
Get the type ID.
bool m_enableBeaconGeneration
Flag whether beacons are being generated.
bool m_shortSlotTimeEnabled
Flag whether short slot time is enabled within the BSS.
The Supported Rates Information Element.
uint16_t m_numNonHtStations
Number of non-HT stations currently associated to the AP.
store value and timestamp for each Buffer Status Report
CapabilityInformation GetCapabilities(void) const
Return the Capability information of the current AP.
Time m_beaconInterval
Beacon interval.
Ptr< WifiMacQueue > GetTxopQueue(AcIndex ac) const override
Get the wifi MAC queue of the (Qos)Txop associated with the given AC.
void SendOneBeacon(void)
Forward a beacon packet to the beacon special DCF.
EventId m_beaconEvent
Event to generate one beacon.
void SendProbeResp(Mac48Address to)
Forward a probe response packet to the DCF.
The HE Operation Information Element.
Simulation virtual time values and global simulation resolution.
void SetBeaconGeneration(bool enable)
Enable or disable beacon generation of the AP.
void SendAssocResp(Mac48Address to, bool success, bool isReassoc)
Forward an association or a reassociation response packet to the DCF.
uint16_t GetVhtOperationalChannelWidth(void) const
Determine the VHT operational channel width (in MHz).
uint8_t GetMaxBufferStatus(Mac48Address address) const
Return the maximum among the values of the Queue Size subfield of the last QoS Data or QoS Null frame...
VhtOperation GetVhtOperation(void) const
Return the VHT operation of the current AP.
Ptr< UniformRandomVariable > m_beaconJitter
UniformRandomVariable used to randomize the time of the first beacon.
std::map< uint16_t, Mac48Address > m_staList
Map of all stations currently associated to the AP with their association ID.
uint8_t GetBufferStatus(uint8_t tid, Mac48Address address) const
Return the value of the Queue Size subfield of the last QoS Data or QoS Null frame received from the ...
void SetLinkUpCallback(Callback< void > linkUp) override
uint16_t GetAssociationId(Mac48Address addr) const
void UpdateShortPreambleEnabled(void)
Update whether short preamble should be enabled or not in the BSS.
bool m_enableBeaconJitter
Flag whether the first beacon should be generated at random time.
Time GetBeaconInterval(void) const
void Receive(Ptr< WifiMacQueueItem > mpdu) override
This method acts as the MacRxMiddle receive callback and is invoked to notify us that a frame has bee...
void ForwardDown(Ptr< Packet > packet, Mac48Address from, Mac48Address to)
Forward the packet down to DCF/EDCAF (enqueue the packet).
uint16_t m_numNonErpStations
Number of non-ERP stations currently associated to the AP.
void SetAddress(Mac48Address address) override
void UpdateShortSlotTimeEnabled(void)
Update whether short slot time should be enabled or not in the BSS.
AcIndex
This enumeration defines the Access Categories as an enumeration with values corresponding to the AC ...
MuEdcaParameterSet GetMuEdcaParameterSet(void) const
Return the MU EDCA Parameter Set of the current AP.
Forward calls to a chain of Callback.
bool SupportsSendFrom(void) const override
The HT Operation Information Element.
TracedCallback< uint16_t, Mac48Address > m_deAssocLogger
deassociation logger
EdcaParameterSet GetEdcaParameterSet(void) const
Return the EDCA Parameter Set of the current AP.
ErpInformation GetErpInformation(void) const
Return the ERP information of the current AP.
void DoDispose(void) override
Destructor implementation.
TracedCallback< uint16_t, Mac48Address > m_assocLogger
association logger
Time m_bsrLifetime
Lifetime of Buffer Status Reports.
bool GetUseNonErpProtection(void) const
Return whether protection for non-ERP stations is used in the BSS.
bool m_enableNonErpProtection
Flag whether protection mechanism is used or not when non-ERP STAs are present within the BSS.
int64_t AssignStreams(int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model.
void SetBufferStatus(uint8_t tid, Mac48Address address, uint8_t size)
Store the value of the Queue Size subfield of the last QoS Data or QoS Null frame received from the s...
Time timestamp
timestamp of BSR
The MU EDCA Parameter Set.
void Enqueue(Ptr< Packet > packet, Mac48Address to) override
uint16_t GetNextAssociationId(void)