24 #include "ns3/string.h"
29 #include "ns3/unused.h"
49 "NonUnicastMode",
StringValue (
"OfdmRate6MbpsBW10MHz"));
62 NS_FATAL_ERROR (
"802.11p only use 802.11 standard with 10MHz or 20MHz");
79 bool isWaveMacHelper =
false;
83 isWaveMacHelper =
true;
86 catch (
const std::bad_cast &)
94 isWaveMacHelper =
true;
97 catch (
const std::bad_cast &)
102 if (!isWaveMacHelper)
104 NS_FATAL_ERROR (
"the macHelper should be either QosWaveMacHelper or NqosWaveMacHelper"
105 ", or should be the subclass of QosWaveMacHelper or NqosWaveMacHelper");
helps to create wifi 802.11p objects of WifiNetDevice class
void SetRemoteStationManager(std::string type, std::string n0="", const AttributeValue &v0=EmptyAttributeValue(), std::string n1="", const AttributeValue &v1=EmptyAttributeValue(), std::string n2="", const AttributeValue &v2=EmptyAttributeValue(), std::string n3="", const AttributeValue &v3=EmptyAttributeValue(), std::string n4="", const AttributeValue &v4=EmptyAttributeValue(), std::string n5="", const AttributeValue &v5=EmptyAttributeValue(), std::string n6="", const AttributeValue &v6=EmptyAttributeValue(), std::string n7="", const AttributeValue &v7=EmptyAttributeValue())
Hold variables of type string.
virtual void SetStandard(enum WifiPhyStandard standard)
#define NS_UNUSED(x)
Mark a local variable as unused.
OFDM PHY for the 5 GHz band (Clause 17 with 10 MHz channel bandwidth)
#define NS_FATAL_ERROR(msg)
Fatal error handling.
virtual NetDeviceContainer Install(const WifiPhyHelper &phy, const WifiMacHelper &mac, NodeContainer c) const
WifiPhyStandard
Identifies the PHY specification that a Wifi device is configured to use.
void LogComponentEnable(char const *name, enum LogLevel level)
Enable the logging output associated with that log component.
virtual ~Wifi80211pHelper()
holds a vector of ns3::NetDevice pointers
virtual void SetStandard(enum WifiPhyStandard standard)
virtual NetDeviceContainer Install(const WifiPhyHelper &phy, const WifiMacHelper &macHelper, NodeContainer c) const
OFDM PHY for the 5 GHz band (Clause 17)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
keep track of a set of node pointers.
static Wifi80211pHelper Default(void)
static void EnableLogComponents(void)
Helper to enable all WifiNetDevice log components with one statement.
static void EnableLogComponents(void)
Helper to enable all WifiNetDevice log components with one statement.