This class can install Network Server applications on multiple nodes at once. More...
#include "lora-network-server-helper.h"
Public Member Functions | |
LoraNetworkServerHelper () | |
~LoraNetworkServerHelper () | |
void | EnableAdr (bool enableAdr) |
Enable (true) or disable (false) the ADR component in the Network Server created by this helper. More... | |
ApplicationContainer | Install (NodeContainer c) |
ApplicationContainer | Install (Ptr< Node > node) |
void | SetAdr (std::string type) |
Set the ADR implementation to use in the Network Server created by this helper. More... | |
void | SetAttribute (std::string name, const AttributeValue &value) |
void | SetEndDevices (NodeContainer endDevices) |
Set which end devices will be managed by this NS. More... | |
void | SetGateways (NodeContainer gateways) |
Set which gateways will need to be connected to this NS. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Private Member Functions | |
void | InstallComponents (Ptr< LoraNetworkServer > netServer) |
Ptr< Application > | InstallPriv (Ptr< Node > node) |
Private Attributes | |
bool | m_adrEnabled |
ObjectFactory | m_adrSupportFactory |
NodeContainer | m_endDevices |
Set of endDevices to connect to this NS. More... | |
ObjectFactory | m_factory |
NodeContainer | m_gateways |
Set of gateways to connect to this NS. More... | |
PointToPointHelper | p2pHelper |
Helper to create PointToPoint links. More... | |
This class can install Network Server applications on multiple nodes at once.
Definition at line 44 of file lora-network-server-helper.h.
ns3::LoraNetworkServerHelper::LoraNetworkServerHelper | ( | ) |
Definition at line 50 of file lora-network-server-helper.cc.
References m_factory, p2pHelper, and SetAdr().
ns3::LoraNetworkServerHelper::~LoraNetworkServerHelper | ( | ) |
Definition at line 58 of file lora-network-server-helper.cc.
void ns3::LoraNetworkServerHelper::EnableAdr | ( | bool | enableAdr | ) |
Enable (true) or disable (false) the ADR component in the Network Server created by this helper.
Definition at line 136 of file lora-network-server-helper.cc.
References m_adrEnabled.
|
static |
Get the type ID.
Definition at line 42 of file lora-network-server-helper.cc.
ApplicationContainer ns3::LoraNetworkServerHelper::Install | ( | NodeContainer | c | ) |
Definition at line 87 of file lora-network-server-helper.cc.
References InstallPriv().
ApplicationContainer ns3::LoraNetworkServerHelper::Install | ( | Ptr< Node > | node | ) |
Definition at line 81 of file lora-network-server-helper.cc.
References InstallPriv().
|
private |
Definition at line 153 of file lora-network-server-helper.cc.
References m_adrEnabled, and m_adrSupportFactory.
Referenced by InstallPriv().
|
private |
Definition at line 99 of file lora-network-server-helper.cc.
References InstallComponents(), m_endDevices, m_factory, m_gateways, p2pHelper, and ns3::LoraNetworkServer::Receive().
Referenced by Install().
void ns3::LoraNetworkServerHelper::SetAdr | ( | std::string | type | ) |
Set the ADR implementation to use in the Network Server created by this helper.
Definition at line 144 of file lora-network-server-helper.cc.
References m_adrSupportFactory.
Referenced by LoraNetworkServerHelper().
void ns3::LoraNetworkServerHelper::SetAttribute | ( | std::string | name, |
const AttributeValue & | value | ||
) |
Definition at line 63 of file lora-network-server-helper.cc.
References m_factory.
void ns3::LoraNetworkServerHelper::SetEndDevices | ( | NodeContainer | endDevices | ) |
Set which end devices will be managed by this NS.
Definition at line 75 of file lora-network-server-helper.cc.
References m_endDevices.
void ns3::LoraNetworkServerHelper::SetGateways | ( | NodeContainer | gateways | ) |
Set which gateways will need to be connected to this NS.
Definition at line 69 of file lora-network-server-helper.cc.
References m_gateways.
|
private |
Definition at line 97 of file lora-network-server-helper.h.
Referenced by EnableAdr(), and InstallComponents().
|
private |
Definition at line 99 of file lora-network-server-helper.h.
Referenced by InstallComponents(), and SetAdr().
|
private |
Set of endDevices to connect to this NS.
Definition at line 93 of file lora-network-server-helper.h.
Referenced by InstallPriv(), and SetEndDevices().
|
private |
Definition at line 89 of file lora-network-server-helper.h.
Referenced by LoraNetworkServerHelper(), InstallPriv(), and SetAttribute().
|
private |
Set of gateways to connect to this NS.
Definition at line 91 of file lora-network-server-helper.h.
Referenced by InstallPriv(), and SetGateways().
|
private |
Helper to create PointToPoint links.
Definition at line 95 of file lora-network-server-helper.h.
Referenced by LoraNetworkServerHelper(), and InstallPriv().