ns3::LoraNetworkController Class Reference

This class collects a series of components that deal with various aspects of managing the network, and queries them for action when a new packet is received or other events occur in the network. More...

#include "lora-network-controller.h"

+ Inheritance diagram for ns3::LoraNetworkController:
+ Collaboration diagram for ns3::LoraNetworkController:

Public Member Functions

 LoraNetworkController ()
 
 LoraNetworkController (Ptr< LoraNetworkStatus > networkStatus)
 
virtual ~LoraNetworkController ()
 
void BeforeSendingReply (Ptr< LoraEndDeviceStatus > endDeviceStatus)
 Method that is called by the NetworkScheduler just before sending a reply to a certain End Device. More...
 
void Install (Ptr< LoraNetworkControllerComponent > component)
 Add a new LoraNetworkControllerComponent. More...
 
void OnNewPacket (Ptr< const Packet > packet)
 Method that is called by the NetworkServer when a new packet is received. More...
 

Static Public Member Functions

static TypeId GetTypeId (void)
 

Private Attributes

std::list< Ptr< LoraNetworkControllerComponent > > m_components
 
Ptr< LoraNetworkStatusm_status
 

Detailed Description

This class collects a series of components that deal with various aspects of managing the network, and queries them for action when a new packet is received or other events occur in the network.

Definition at line 43 of file lora-network-controller.h.

Constructor & Destructor Documentation

◆ LoraNetworkController() [1/2]

ns3::LoraNetworkController::LoraNetworkController ( )

Definition at line 40 of file lora-network-controller.cc.

◆ LoraNetworkController() [2/2]

ns3::LoraNetworkController::LoraNetworkController ( Ptr< LoraNetworkStatus networkStatus)

Definition at line 45 of file lora-network-controller.cc.

◆ ~LoraNetworkController()

ns3::LoraNetworkController::~LoraNetworkController ( )
virtual

Definition at line 51 of file lora-network-controller.cc.

Member Function Documentation

◆ BeforeSendingReply()

void ns3::LoraNetworkController::BeforeSendingReply ( Ptr< LoraEndDeviceStatus endDeviceStatus)

Method that is called by the NetworkScheduler just before sending a reply to a certain End Device.

Definition at line 80 of file lora-network-controller.cc.

References m_components, and m_status.

◆ GetTypeId()

TypeId ns3::LoraNetworkController::GetTypeId ( void  )
static

Definition at line 33 of file lora-network-controller.cc.

◆ Install()

void ns3::LoraNetworkController::Install ( Ptr< LoraNetworkControllerComponent component)

Add a new LoraNetworkControllerComponent.

Definition at line 57 of file lora-network-controller.cc.

References m_components.

◆ OnNewPacket()

void ns3::LoraNetworkController::OnNewPacket ( Ptr< const Packet >  packet)

Method that is called by the NetworkServer when a new packet is received.

Parameters
packetThe newly received packet.

Definition at line 64 of file lora-network-controller.cc.

References m_components, and m_status.

Member Data Documentation

◆ m_components

std::list<Ptr<LoraNetworkControllerComponent> > ns3::LoraNetworkController::m_components
private

Definition at line 72 of file lora-network-controller.h.

Referenced by BeforeSendingReply(), Install(), and OnNewPacket().

◆ m_status

Ptr<LoraNetworkStatus> ns3::LoraNetworkController::m_status
private

Definition at line 71 of file lora-network-controller.h.

Referenced by BeforeSendingReply(), and OnNewPacket().


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