ns3::LoraGatewayStatus Class Reference

#include "lora-gateway-status.h"

+ Inheritance diagram for ns3::LoraGatewayStatus:
+ Collaboration diagram for ns3::LoraGatewayStatus:

Public Member Functions

 LoraGatewayStatus ()
 
 LoraGatewayStatus (Address address, Ptr< NetDevice > netDevice, Ptr< LorawanMacGateway > gwMac)
 
virtual ~LoraGatewayStatus ()
 
Address GetAddress ()
 Get this gateway's P2P link address. More...
 
Ptr< LorawanMacGatewayGetGatewayMac (void)
 Get a pointer to this gateway's MAC instance. More...
 
Ptr< NetDevice > GetNetDevice ()
 Get the NetDevice through which it's possible to contact this gateway from the server. More...
 
bool IsAvailableForTransmission (double frequency)
 Set a pointer to this gateway's MAC instance. More...
 
void SetAddress (Address address)
 Set this gateway's P2P link address. More...
 
void SetNetDevice (Ptr< NetDevice > netDevice)
 Set the NetDevice through which it's possible to contact this gateway from the server. More...
 
void SetNextTransmissionTime (Time nextTransmissionTime)
 

Static Public Member Functions

static TypeId GetTypeId (void)
 

Private Attributes

Address m_address
 The Address of the P2PNetDevice of this gateway // TODO useless ??? Remove ! More...
 
Ptr< LorawanMacGatewaym_gatewayMac
 The Mac layer of the gateway. More...
 
Ptr< NetDevice > m_netDevice
 The NetDevice through which to reach this gateway from the server. More...
 
Time m_nextTransmissionTime
 This gateway's next transmission time. More...
 

Detailed Description

Definition at line 35 of file lora-gateway-status.h.

Constructor & Destructor Documentation

◆ LoraGatewayStatus() [1/2]

ns3::LoraGatewayStatus::LoraGatewayStatus ( )

Definition at line 43 of file lora-gateway-status.cc.

◆ LoraGatewayStatus() [2/2]

ns3::LoraGatewayStatus::LoraGatewayStatus ( Address  address,
Ptr< NetDevice >  netDevice,
Ptr< LorawanMacGateway gwMac 
)

Definition at line 53 of file lora-gateway-status.cc.

◆ ~LoraGatewayStatus()

ns3::LoraGatewayStatus::~LoraGatewayStatus ( )
virtual

Definition at line 48 of file lora-gateway-status.cc.

Member Function Documentation

◆ GetAddress()

Address ns3::LoraGatewayStatus::GetAddress ( void  )

Get this gateway's P2P link address.

Definition at line 65 of file lora-gateway-status.cc.

References m_address.

◆ GetGatewayMac()

Ptr< LorawanMacGateway > ns3::LoraGatewayStatus::GetGatewayMac ( void  )

Get a pointer to this gateway's MAC instance.

Definition at line 93 of file lora-gateway-status.cc.

References m_gatewayMac.

◆ GetNetDevice()

Ptr< NetDevice > ns3::LoraGatewayStatus::GetNetDevice ( )

Get the NetDevice through which it's possible to contact this gateway from the server.

Definition at line 81 of file lora-gateway-status.cc.

References m_netDevice.

◆ GetTypeId()

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

Definition at line 37 of file lora-gateway-status.cc.

◆ IsAvailableForTransmission()

bool ns3::LoraGatewayStatus::IsAvailableForTransmission ( double  frequency)

Set a pointer to this gateway's MAC instance.

Query whether or not this gateway is available for immediate transmission on this frequency.

Parameters
frequencyThe frequency at which the gateway's availability should be queried.
Returns
True if the gateway's available, false otherwise.

Definition at line 99 of file lora-gateway-status.cc.

References m_gatewayMac, and m_nextTransmissionTime.

◆ SetAddress()

void ns3::LoraGatewayStatus::SetAddress ( Address  address)

Set this gateway's P2P link address.

Definition at line 73 of file lora-gateway-status.cc.

References m_address.

◆ SetNetDevice()

void ns3::LoraGatewayStatus::SetNetDevice ( Ptr< NetDevice >  netDevice)

Set the NetDevice through which it's possible to contact this gateway from the server.

Definition at line 87 of file lora-gateway-status.cc.

References m_netDevice.

◆ SetNextTransmissionTime()

void ns3::LoraGatewayStatus::SetNextTransmissionTime ( Time  nextTransmissionTime)

Definition at line 133 of file lora-gateway-status.cc.

References m_nextTransmissionTime.

Member Data Documentation

◆ m_address

Address ns3::LoraGatewayStatus::m_address
private

The Address of the P2PNetDevice of this gateway // TODO useless ??? Remove !

Definition at line 89 of file lora-gateway-status.h.

Referenced by GetAddress(), and SetAddress().

◆ m_gatewayMac

Ptr<LorawanMacGateway> ns3::LoraGatewayStatus::m_gatewayMac
private

The Mac layer of the gateway.

Definition at line 94 of file lora-gateway-status.h.

Referenced by GetGatewayMac(), and IsAvailableForTransmission().

◆ m_netDevice

Ptr<NetDevice> ns3::LoraGatewayStatus::m_netDevice
private

The NetDevice through which to reach this gateway from the server.

Definition at line 92 of file lora-gateway-status.h.

Referenced by GetNetDevice(), and SetNetDevice().

◆ m_nextTransmissionTime

Time ns3::LoraGatewayStatus::m_nextTransmissionTime
private

This gateway's next transmission time.

Definition at line 96 of file lora-gateway-status.h.

Referenced by IsAvailableForTransmission(), and SetNextTransmissionTime().


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