#include "lora-gateway-status.h"
Public Member Functions | |
| LoraGatewayStatus () | |
| LoraGatewayStatus (Address address, Ptr< NetDevice > netDevice, Ptr< LorawanMacGateway > gwMac) | |
| virtual | ~LoraGatewayStatus () |
| Address | GetAddress () |
| Get this gateway's P2P link address. | |
| Ptr< LorawanMacGateway > | GetGatewayMac (void) |
| Get a pointer to this gateway's MAC instance. | |
| Ptr< NetDevice > | GetNetDevice () |
| Get the NetDevice through which it's possible to contact this gateway from the server. | |
| bool | IsAvailableForTransmission (double frequency) |
| Set a pointer to this gateway's MAC instance. | |
| void | SetAddress (Address address) |
| Set this gateway's P2P link address. | |
| void | SetNetDevice (Ptr< NetDevice > netDevice) |
| Set the NetDevice through which it's possible to contact this gateway from the server. | |
| 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 ? | |
| Ptr< LorawanMacGateway > | m_gatewayMac |
| The Mac layer of the gateway. | |
| Ptr< NetDevice > | m_netDevice |
| The NetDevice through which to reach this gateway from the server. | |
| Time | m_nextTransmissionTime |
| This gateway's next transmission time. | |
Definition at line 35 of file lora-gateway-status.h.
| ns3::LoraGatewayStatus::LoraGatewayStatus | ( | ) |
Definition at line 44 of file lora-gateway-status.cc.
| ns3::LoraGatewayStatus::LoraGatewayStatus | ( | Address | address, |
| Ptr< NetDevice > | netDevice, | ||
| Ptr< LorawanMacGateway > | gwMac ) |
Definition at line 54 of file lora-gateway-status.cc.
References m_address, m_gatewayMac, m_netDevice, and m_nextTransmissionTime.
|
virtual |
Definition at line 49 of file lora-gateway-status.cc.
| Address ns3::LoraGatewayStatus::GetAddress | ( | ) |
Get this gateway's P2P link address.
Definition at line 66 of file lora-gateway-status.cc.
References m_address.
| Ptr< LorawanMacGateway > ns3::LoraGatewayStatus::GetGatewayMac | ( | void | ) |
Get a pointer to this gateway's MAC instance.
Definition at line 94 of file lora-gateway-status.cc.
References m_gatewayMac.
| Ptr< NetDevice > ns3::LoraGatewayStatus::GetNetDevice | ( | ) |
Get the NetDevice through which it's possible to contact this gateway from the server.
Definition at line 82 of file lora-gateway-status.cc.
References m_netDevice.
|
static |
Definition at line 37 of file lora-gateway-status.cc.
| 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.
| frequency | The frequency at which the gateway's availability should be queried. |
Definition at line 100 of file lora-gateway-status.cc.
References m_gatewayMac, and m_nextTransmissionTime.
| void ns3::LoraGatewayStatus::SetAddress | ( | Address | address | ) |
Set this gateway's P2P link address.
Definition at line 74 of file lora-gateway-status.cc.
References m_address.
| 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 88 of file lora-gateway-status.cc.
References m_netDevice.
| void ns3::LoraGatewayStatus::SetNextTransmissionTime | ( | Time | nextTransmissionTime | ) |
Definition at line 134 of file lora-gateway-status.cc.
References m_nextTransmissionTime.
|
private |
The Address of the P2PNetDevice of this gateway // TODO useless ?
?? Remove !
Definition at line 89 of file lora-gateway-status.h.
Referenced by LoraGatewayStatus(), GetAddress(), and SetAddress().
|
private |
The Mac layer of the gateway.
Definition at line 94 of file lora-gateway-status.h.
Referenced by LoraGatewayStatus(), GetGatewayMac(), and IsAvailableForTransmission().
|
private |
The NetDevice through which to reach this gateway from the server.
Definition at line 92 of file lora-gateway-status.h.
Referenced by LoraGatewayStatus(), GetNetDevice(), and SetNetDevice().
|
private |
This gateway's next transmission time.
Definition at line 96 of file lora-gateway-status.h.
Referenced by LoraGatewayStatus(), IsAvailableForTransmission(), and SetNextTransmissionTime().