ns3::LoraPeriodicSender Class Reference

#include "lora-periodic-sender.h"

+ Inheritance diagram for ns3::LoraPeriodicSender:
+ Collaboration diagram for ns3::LoraPeriodicSender:

Public Member Functions

 LoraPeriodicSender ()
 
 ~LoraPeriodicSender ()
 
Time GetInterval (void) const
 Get the sending inteval. More...
 
void SendPacket (void)
 Send a packet using the LoraNetDevice's Send method. More...
 
void SetInitialDelay (Time delay)
 Set the initial delay of this application. More...
 
void SetInterval (Time interval)
 Set the sending interval. More...
 
void SetPacketSize (uint8_t size)
 Set packet size. More...
 
void SetPacketSizeRandomVariable (Ptr< RandomVariableStream > rv)
 Set if using randomness in the packet size. More...
 
void StartApplication (void)
 Start the application by scheduling the first SendPacket event. More...
 
void StopApplication (void)
 Stop the application. More...
 

Static Public Member Functions

static TypeId GetTypeId (void)
 

Private Attributes

uint8_t m_basePktSize
 The packet size. More...
 
Time m_initialDelay
 The initial delay of this application. More...
 
Time m_interval
 The interval between to consecutive send events. More...
 
Ptr< LorawanMacm_mac
 The MAC layer of this node. More...
 
Ptr< RandomVariableStream > m_pktSizeRV
 The random variable that adds bytes to the packet size. More...
 
EventId m_sendEvent
 The sending event scheduled as next. More...
 

Detailed Description

Definition at line 35 of file lora-periodic-sender.h.

Constructor & Destructor Documentation

◆ LoraPeriodicSender()

ns3::LoraPeriodicSender::LoraPeriodicSender ( )

Definition at line 59 of file lora-periodic-sender.cc.

◆ ~LoraPeriodicSender()

ns3::LoraPeriodicSender::~LoraPeriodicSender ( )

Definition at line 69 of file lora-periodic-sender.cc.

Member Function Documentation

◆ GetInterval()

Time ns3::LoraPeriodicSender::GetInterval ( void  ) const

Get the sending inteval.

Returns
the interval between two packet sends

Definition at line 82 of file lora-periodic-sender.cc.

References m_interval.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

◆ GetTypeId()

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

Definition at line 40 of file lora-periodic-sender.cc.

References GetInterval(), and SetInterval().

+ Here is the call graph for this function:

◆ SendPacket()

void ns3::LoraPeriodicSender::SendPacket ( void  )

Send a packet using the LoraNetDevice's Send method.

Definition at line 108 of file lora-periodic-sender.cc.

References m_basePktSize, m_interval, m_mac, m_pktSizeRV, and m_sendEvent.

Referenced by StartApplication().

+ Here is the caller graph for this function:

◆ SetInitialDelay()

void ns3::LoraPeriodicSender::SetInitialDelay ( Time  delay)

Set the initial delay of this application.

Definition at line 89 of file lora-periodic-sender.cc.

References m_initialDelay.

◆ SetInterval()

void ns3::LoraPeriodicSender::SetInterval ( Time  interval)

Set the sending interval.

Parameters
intervalthe interval between two packet sendings

Definition at line 75 of file lora-periodic-sender.cc.

References m_interval.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

◆ SetPacketSize()

void ns3::LoraPeriodicSender::SetPacketSize ( uint8_t  size)

Set packet size.

Definition at line 102 of file lora-periodic-sender.cc.

References m_basePktSize.

◆ SetPacketSizeRandomVariable()

void ns3::LoraPeriodicSender::SetPacketSizeRandomVariable ( Ptr< RandomVariableStream >  rv)

Set if using randomness in the packet size.

Definition at line 96 of file lora-periodic-sender.cc.

References m_pktSizeRV.

◆ StartApplication()

void ns3::LoraPeriodicSender::StartApplication ( void  )

Start the application by scheduling the first SendPacket event.

Definition at line 132 of file lora-periodic-sender.cc.

References m_initialDelay, m_mac, m_sendEvent, and SendPacket().

+ Here is the call graph for this function:

◆ StopApplication()

void ns3::LoraPeriodicSender::StopApplication ( void  )

Stop the application.

Definition at line 162 of file lora-periodic-sender.cc.

References m_sendEvent.

Member Data Documentation

◆ m_basePktSize

uint8_t ns3::LoraPeriodicSender::m_basePktSize
private

The packet size.

Definition at line 109 of file lora-periodic-sender.h.

Referenced by SendPacket(), and SetPacketSize().

◆ m_initialDelay

Time ns3::LoraPeriodicSender::m_initialDelay
private

The initial delay of this application.

Definition at line 94 of file lora-periodic-sender.h.

Referenced by SetInitialDelay(), and StartApplication().

◆ m_interval

Time ns3::LoraPeriodicSender::m_interval
private

The interval between to consecutive send events.

Definition at line 89 of file lora-periodic-sender.h.

Referenced by GetInterval(), SendPacket(), and SetInterval().

◆ m_mac

Ptr<LorawanMac> ns3::LoraPeriodicSender::m_mac
private

The MAC layer of this node.

Definition at line 104 of file lora-periodic-sender.h.

Referenced by SendPacket(), and StartApplication().

◆ m_pktSizeRV

Ptr<RandomVariableStream> ns3::LoraPeriodicSender::m_pktSizeRV
private

The random variable that adds bytes to the packet size.

Definition at line 114 of file lora-periodic-sender.h.

Referenced by SendPacket(), and SetPacketSizeRandomVariable().

◆ m_sendEvent

EventId ns3::LoraPeriodicSender::m_sendEvent
private

The sending event scheduled as next.

Definition at line 99 of file lora-periodic-sender.h.

Referenced by SendPacket(), StartApplication(), and StopApplication().


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