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"
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< LoraNetworkStatus > | m_status |
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 45 of file lora-network-controller.h.
ns3::LoraNetworkController::LoraNetworkController | ( | ) |
Definition at line 42 of file lora-network-controller.cc.
ns3::LoraNetworkController::LoraNetworkController | ( | Ptr< LoraNetworkStatus > | networkStatus | ) |
Definition at line 47 of file lora-network-controller.cc.
|
virtual |
Definition at line 53 of file lora-network-controller.cc.
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 82 of file lora-network-controller.cc.
References m_components, and m_status.
|
static |
Definition at line 35 of file lora-network-controller.cc.
void ns3::LoraNetworkController::Install | ( | Ptr< LoraNetworkControllerComponent > | component | ) |
Add a new LoraNetworkControllerComponent.
Definition at line 59 of file lora-network-controller.cc.
References m_components.
void ns3::LoraNetworkController::OnNewPacket | ( | Ptr< const Packet > | packet | ) |
Method that is called by the NetworkServer when a new packet is received.
packet | The newly received packet. |
Definition at line 66 of file lora-network-controller.cc.
References m_components, and m_status.
|
private |
Definition at line 74 of file lora-network-controller.h.
Referenced by BeforeSendingReply(), Install(), and OnNewPacket().
|
private |
Definition at line 73 of file lora-network-controller.h.
Referenced by BeforeSendingReply(), and OnNewPacket().