#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< LorawanMacGateway > | GetGatewayMac (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< LorawanMacGateway > | m_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... | |
Definition at line 35 of file lora-gateway-status.h.
| ns3::LoraGatewayStatus::LoraGatewayStatus | ( | ) |
Definition at line 43 of file lora-gateway-status.cc.
| ns3::LoraGatewayStatus::LoraGatewayStatus | ( | Address | address, |
| Ptr< NetDevice > | netDevice, | ||
| Ptr< LorawanMacGateway > | gwMac | ||
| ) |
Definition at line 53 of file lora-gateway-status.cc.
|
virtual |
Definition at line 48 of file lora-gateway-status.cc.
| 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.
| 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.
| 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.
|
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 99 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 73 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 87 of file lora-gateway-status.cc.
References m_netDevice.
| void ns3::LoraGatewayStatus::SetNextTransmissionTime | ( | Time | nextTransmissionTime | ) |
Definition at line 133 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 GetAddress(), and SetAddress().
|
private |
The Mac layer of the gateway.
Definition at line 94 of file lora-gateway-status.h.
Referenced by 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 GetNetDevice(), and SetNetDevice().
|
private |
This gateway's next transmission time.
Definition at line 96 of file lora-gateway-status.h.
Referenced by IsAvailableForTransmission(), and SetNextTransmissionTime().