21 #include "ns3/attribute.h"
22 #include "ns3/net-device-container.h"
23 #include "ns3/node-container.h"
24 #include "ns3/object-factory.h"
25 #include "ns3/trace-helper.h"
26 #include "ns3/yans-wifi-helper.h"
65 bool explicitFilename)
override;
82 bool explicitFilename)
override;
149 template <
typename... Ts>
159 template <
typename... Ts>
188 std::string nodeName)
const;
222 template <
typename... Ts>
229 template <
typename... Ts>
holds a vector of ns3::NetDevice pointers
keep track of a set of node pointers.
Instantiate subclasses of ns3::Object.
Smart pointer class similar to boost::intrusive_ptr.
helps to create WaveNetDevice objects
int64_t AssignStreams(NetDeviceContainer c, int64_t stream)
Assign a fixed random variable stream number to the random variables used by the Phy and Mac aspects ...
std::vector< uint32_t > m_macsForChannelNumber
MACs for channel number.
virtual NetDeviceContainer Install(const WifiPhyHelper &phy, const WifiMacHelper &mac, NodeContainer c) const
static void EnableLogComponents()
Helper to enable all WaveNetDevice log components with one statement.
uint32_t m_physNumber
Phy number.
void CreateMacForChannel(std::vector< uint32_t > channelNumbers)
void SetChannelScheduler(std::string type, Ts &&... args)
void SetRemoteStationManager(std::string type, Ts &&... args)
ObjectFactory m_channelScheduler
channel scheduler
ObjectFactory m_stationManager
station manager
void CreatePhys(uint32_t phys)
static WaveHelper Default()
create MAC layers for a ns3::WifiNetDevice.
To trace WaveNetDevice, we have to overwrite the trace functions of class YansWifiPhyHelper.
void EnablePcapInternal(std::string prefix, Ptr< NetDevice > nd, bool promiscuous, bool explicitFilename) override
Enable pcap output the indicated net device.
void EnableAsciiInternal(Ptr< OutputStreamWrapper > stream, std::string prefix, Ptr< NetDevice > nd, bool explicitFilename) override
Enable ascii trace output on the indicated net device.
static YansWavePhyHelper Default()
Create a phy helper in a default working state.
Make it easy to create and manage PHY objects for the YANS model.
Every class exported by the ns3 library is enclosed in the ns3 namespace.