16#include "ns3/lr-wpan-mac-base.h"
17#include "ns3/lr-wpan-net-device.h"
18#include "ns3/traced-callback.h"
A base class which provides memory management and object aggregation.
Smart pointer class similar to boost::intrusive_ptr.
a unique identifier for an interface.
Zigbee protocol stack to device interface.
static TypeId GetTypeId()
Get the type ID.
void SetNwk(Ptr< ZigbeeNwk > nwk)
Set the NWK layer used by this ZigbeeStack.
Ptr< NetDevice > m_netDevice
Smart pointer to the underlying NetDevice.
void SetAps(Ptr< ZigbeeAps > aps)
Set the APS layer used by this ZigbeeStack.
Ptr< lrwpan::LrWpanMacBase > m_mac
The underlying LrWpan MAC connected to this Zigbee Stack.
void SetNetDevice(Ptr< NetDevice > netDevice)
Setup Zigbee to be the next set of higher layers for the specified NetDevice.
Ptr< Channel > GetChannel() const
Get the Channel object of the underlying LrWpanNetDevice.
bool m_nwkOnly
Indicates that only the NWK layer is present in the Zigbee stack.
ZigbeeStack()
Default constructor.
Ptr< ZigbeeAps > GetAps() const
Get the APS layer used by this ZigbeeStack.
Ptr< ZigbeeNwk > GetNwk() const
Get the NWK layer used by this ZigbeeStack.
Ptr< Node > GetNode() const
Get the node currently using this ZigbeeStack.
Ptr< ZigbeeAps > m_aps
The Zigbee Application Support Sub-layer.
Ptr< ZigbeeNwk > m_nwk
The Zigbee Network layer.
Ptr< Node > m_node
The node associated with this NetDevice.
void DoDispose() override
Dispose of the Objects used by the ZigbeeStack.
Ptr< NetDevice > GetNetDevice() const
Returns a smart pointer to the underlying NetDevice.
void SetOnlyNwkLayer()
Inticates to the Zigbee stack that only the NWK layer should be present.
void DoInitialize() override
Initialize of the Objects used by the ZigbeeStack.
Every class exported by the ns3 library is enclosed in the ns3 namespace.