This class can be used to install Forwarder applications on a set of gateways. More...
#include "forwarder-helper.h"
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< Application > | InstallPriv (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. | |
This class can be used to install Forwarder applications on a set of gateways.
Definition at line 33 of file forwarder-helper.h.
| ns3::lorawan::ForwarderHelper::ForwarderHelper | ( | ) |
| ns3::lorawan::ForwarderHelper::~ForwarderHelper | ( | ) |
Destructor.
Definition at line 34 of file forwarder-helper.cc.
| 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.
| c | NodeContainer of the set of nodes on which an Forwarder will be installed. |
Definition at line 51 of file forwarder-helper.cc.
References ns3::ApplicationContainer::Add(), ns3::NodeContainer::Begin(), ns3::NodeContainer::End(), and InstallPriv().
Referenced by ns3::lorawan::CreateNetworkServer().
| 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.
| node | The node on which a Forwarder will be installed. |
Definition at line 45 of file forwarder-helper.cc.
References InstallPriv().
|
private |
Install a Forwarder application on the input Node configured with all the attributes set with SetAttribute or other functions of this class.
| node | The node on which a Forwarder will be installed. |
Definition at line 63 of file forwarder-helper.cc.
References ns3::DynamicCast(), 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(), and Install().
| void ns3::lorawan::ForwarderHelper::SetAttribute | ( | std::string | name, |
| const AttributeValue & | value ) |
Helper function used to set the underlying application attributes.
| name | The name of the application attribute to set. |
| value | The value of the application attribute to set. |
Definition at line 39 of file forwarder-helper.cc.
References m_factory.
|
private |
The object factory.
Definition at line 75 of file forwarder-helper.h.
Referenced by ForwarderHelper(), InstallPriv(), and SetAttribute().