22 #ifndef LR_WPAN_HELPER_H 23 #define LR_WPAN_HELPER_H 25 #include <ns3/node-container.h> 26 #include <ns3/lr-wpan-phy.h> 27 #include <ns3/lr-wpan-mac.h> 28 #include <ns3/trace-helper.h> 32 class SpectrumChannel;
185 bool explicitFilename);
Base class providing common user-level ascii trace operations for helpers representing net devices...
NetDeviceContainer Install(NodeContainer c)
Install a LrWpanNetDevice and the associated structures (e.g., channel) in the nodes.
Smart pointer class similar to boost::intrusive_ptr.
static std::string LrWpanPhyEnumerationPrinter(LrWpanPhyEnumeration e)
Transform the LrWpanPhyEnumeration enumeration into a printable string.
Base class providing common user-level pcap operations for helpers representing net devices...
static std::string LrWpanMacStatePrinter(LrWpanMacState e)
Transform the LrWpanMacState enumeration into a printable string.
LrWpanHelper & operator=(LrWpanHelper const &)
Copy constructor - defined and not implemented.
void AssociateToPan(NetDeviceContainer c, uint16_t panId)
Associate the nodes to the same PAN.
holds a vector of ns3::NetDevice pointers
int64_t AssignStreams(NetDeviceContainer c, int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model...
virtual void EnablePcapInternal(std::string prefix, Ptr< NetDevice > nd, bool promiscuous, bool explicitFilename)
Enable pcap output on the indicated net device.
Ptr< SpectrumChannel > m_channel
channel to be used for the devices
Every class exported by the ns3 library is enclosed in the ns3 namespace.
keep track of a set of node pointers.
LrWpanHelper(void)
Create a LrWpan helper in an empty state.
virtual void EnableAsciiInternal(Ptr< OutputStreamWrapper > stream, std::string prefix, Ptr< NetDevice > nd, bool explicitFilename)
Enable ascii trace output on the indicated net device.
void SetChannel(Ptr< SpectrumChannel > channel)
Set the channel associated to this helper.
LrWpanMacState
MAC states.
Ptr< SpectrumChannel > GetChannel(void)
Get the channel associated to this helper.
void AddMobility(Ptr< LrWpanPhy > phy, Ptr< MobilityModel > m)
Add mobility model to a physical device.
LrWpanPhyEnumeration
IEEE802.15.4-2006 PHY Emumerations Table 18 in section 6.2.3.
helps to manage and create IEEE 802.15.4 NetDevice objects
virtual ~LrWpanHelper(void)
void EnableLogComponents(void)
Helper to enable all LrWpan log components with one statement.