21 #include "ns3/net-device.h" 23 #include "ns3/frame-exchange-manager.h" 24 #include "ns3/wifi-protection-manager.h" 25 #include "ns3/wifi-ack-manager.h" 26 #include "ns3/multi-user-scheduler.h" 27 #include "ns3/boolean.h" 52 mac->SetDevice (device);
54 mac->ConfigureStandard (standard);
59 if (wifiMac != 0 && (fem = wifiMac->GetFrameExchangeManager ()) != 0)
62 protectionManager->SetWifiMac (wifiMac);
63 fem->SetProtectionManager (protectionManager);
66 ackManager->SetWifiMac (wifiMac);
67 fem->SetAckManager (ackManager);
75 apMac->AggregateObject (muScheduler);
Smart pointer class similar to boost::intrusive_ptr.
void SetType(std::string type, Args &&... args)
AttributeValue implementation for Boolean.
void SetTypeId(TypeId tid)
Set the TypeId of the Objects to be created by this factory.
ObjectFactory m_muScheduler
Multi-user Scheduler object factory.
ObjectFactory m_ackManager
Factory to create an acknowledgment manager.
const std::map< WifiStandard, WifiStandardInfo > wifiStandards
map a given standard configured by the user to the corresponding WifiStandardInfo ...
static Mac48Address Allocate(void)
Allocate a new Mac48Address.
virtual Ptr< WifiMac > Create(Ptr< NetDevice > device, WifiStandard standard) const
Ptr< Object > Create(void) const
Create an Object instance of the configured TypeId.
base class for all MAC-level wifi objects.
WifiMacHelper()
Create a WifiMacHelper to make life easier for people who want to work with Wifi MAC layers...
MultiUserScheduler is an abstract base class defining the API that APs supporting at least VHT can us...
WifiAckManager is an abstract base class.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
WifiStandard
Identifies the allowed configurations that a Wifi device is configured to use.
WifiProtectionManager is an abstract base class.
bool IsTypeIdSet(void) const
Check if the ObjectFactory has been configured with a TypeId.
virtual ~WifiMacHelper()
Destroy a WifiMacHelper.
#define NS_ABORT_MSG_IF(cond, msg)
Abnormal program termination if a condition is true, with a message.
ObjectFactory m_mac
MAC object factory.
ObjectFactory m_protectionManager
Factory to create a protection manager.