A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::lorawan::ForwarderHelper Class Reference

This class can be used to install Forwarder applications on a set of gateways. More...

#include "forwarder-helper.h"

+ Collaboration diagram for ns3::lorawan::ForwarderHelper:

Public Member Functions

 ForwarderHelper ()
 Default constructor.
 
 ~ForwarderHelper ()
 Destructor.
 
ApplicationContainer Install (NodeContainer c) const
 Install a Forwarder application on each node of the input container configured with all the attributes set with SetAttribute or other functions of this class.
 
ApplicationContainer Install (Ptr< Node > node) const
 Install a Forwarder application on the input Node configured with all the attributes set with SetAttribute or other functions of this class.
 
void SetAttribute (std::string name, const AttributeValue &value)
 Helper function used to set the underlying application attributes.
 

Private Member Functions

Ptr< ApplicationInstallPriv (Ptr< Node > node) const
 Install a Forwarder application on the input Node configured with all the attributes set with SetAttribute or other functions of this class.
 

Private Attributes

ObjectFactory m_factory
 The object factory.
 

Detailed Description

This class can be used to install Forwarder applications on a set of gateways.

Definition at line 44 of file forwarder-helper.h.

Constructor & Destructor Documentation

◆ ForwarderHelper()

ns3::lorawan::ForwarderHelper::ForwarderHelper ( )

Default constructor.

Definition at line 40 of file forwarder-helper.cc.

References m_factory, and ns3::ObjectFactory::SetTypeId().

+ Here is the call graph for this function:

◆ ~ForwarderHelper()

ns3::lorawan::ForwarderHelper::~ForwarderHelper ( )

Destructor.

Definition at line 45 of file forwarder-helper.cc.

Member Function Documentation

◆ Install() [1/2]

ApplicationContainer ns3::lorawan::ForwarderHelper::Install ( NodeContainer  c) const

Install a Forwarder application on each node of the input container configured with all the attributes set with SetAttribute or other functions of this class.

Parameters
cNodeContainer of the set of nodes on which an Forwarder will be installed.
Returns
Container of Ptr to the applications installed.

Definition at line 62 of file forwarder-helper.cc.

References ns3::ApplicationContainer::Add(), ns3::NodeContainer::Begin(), ns3::NodeContainer::End(), and InstallPriv().

Referenced by ns3::lorawan::CreateNetworkServer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Install() [2/2]

ApplicationContainer ns3::lorawan::ForwarderHelper::Install ( Ptr< Node node) const

Install a Forwarder application on the input Node configured with all the attributes set with SetAttribute or other functions of this class.

Parameters
nodeThe node on which a Forwarder will be installed.
Returns
Container of the Ptr to the application installed.

Definition at line 56 of file forwarder-helper.cc.

References InstallPriv().

+ Here is the call graph for this function:

◆ InstallPriv()

Ptr< Application > ns3::lorawan::ForwarderHelper::InstallPriv ( Ptr< Node node) const
private

Install a Forwarder application on the input Node configured with all the attributes set with SetAttribute or other functions of this class.

Parameters
nodeThe node on which a Forwarder will be installed.
Returns
A pointer to the applications installed.

Definition at line 74 of file forwarder-helper.cc.

References ns3::ObjectFactory::Create(), m_factory, ns3::MakeCallback(), NS_ASSERT_MSG, NS_LOG_ERROR, NS_LOG_FUNCTION, ns3::lorawan::Forwarder::ReceiveFromLora(), and ns3::lorawan::Forwarder::ReceiveFromPointToPoint().

Referenced by Install().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetAttribute()

void ns3::lorawan::ForwarderHelper::SetAttribute ( std::string  name,
const AttributeValue value 
)

Helper function used to set the underlying application attributes.

Parameters
nameThe name of the application attribute to set.
valueThe value of the application attribute to set.

Definition at line 50 of file forwarder-helper.cc.

References m_factory, and ns3::ObjectFactory::Set().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_factory

ObjectFactory ns3::lorawan::ForwarderHelper::m_factory
private

The object factory.

Definition at line 86 of file forwarder-helper.h.

Referenced by ForwarderHelper(), InstallPriv(), and SetAttribute().


The documentation for this class was generated from the following files: