![]() |
5G-LENA nr-v4.0
The 5G/NR module for the ns-3 simulator
|
This class implements a testing RRC entity. More...
#include "nr-test-entities.h"
Public Member Functions | |
void | DoDispose () override |
std::string | GetDataReceived () |
Get data received function. | |
NrPdcpSapUser * | GetNrPdcpSapUser () |
Get the PDCP SAP user. | |
uint32_t | GetRxBytes () |
Get the receive bytes. | |
Time | GetRxLastTime () |
Get the last receive time. | |
uint32_t | GetRxPdus () |
Get the receive PDUs. | |
uint32_t | GetTxBytes () |
Get the transmit bytes. | |
Time | GetTxLastTime () |
Get the last transmit time. | |
uint32_t | GetTxPdus () |
Get the transmit PDUs. | |
void | SendData (Time at, std::string dataToSend) |
Send data function. | |
void | SetArrivalTime (Time arrivalTime) |
Set the arrival time. | |
void | SetDevice (Ptr< NetDevice > device) |
Set the device. | |
void | SetNrPdcpSapProvider (NrPdcpSapProvider *s) |
Set the PDCP SAP provider. | |
void | SetPduSize (uint32_t pduSize) |
Set the PDU size. | |
void | Start () |
Start function. | |
void | Stop () |
Stop function. | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. | |
Friends | |
class | NrPdcpSpecificNrPdcpSapUser< NrTestRrc > |
allow NrPdcpSpecificNrPdcpSapUser<NrTestRrc> class friend access | |
This class implements a testing RRC entity.
Definition at line 28 of file nr-test-entities.h.
ns3::NrTestRrc::NrTestRrc | ( | ) |
Definition at line 33 of file nr-test-entities.cc.
|
override |
Definition at line 48 of file nr-test-entities.cc.
|
override |
Definition at line 54 of file nr-test-entities.cc.
std::string ns3::NrTestRrc::GetDataReceived | ( | ) |
Get data received function.
Definition at line 79 of file nr-test-entities.cc.
NrPdcpSapUser * ns3::NrTestRrc::GetNrPdcpSapUser | ( | ) |
Get the PDCP SAP user.
Definition at line 73 of file nr-test-entities.cc.
uint32_t ns3::NrTestRrc::GetRxBytes | ( | ) |
Get the receive bytes.
Definition at line 108 of file nr-test-entities.cc.
Time ns3::NrTestRrc::GetRxLastTime | ( | ) |
Get the last receive time.
Definition at line 122 of file nr-test-entities.cc.
uint32_t ns3::NrTestRrc::GetRxPdus | ( | ) |
Get the receive PDUs.
Definition at line 101 of file nr-test-entities.cc.
uint32_t ns3::NrTestRrc::GetTxBytes | ( | ) |
Get the transmit bytes.
Definition at line 94 of file nr-test-entities.cc.
Time ns3::NrTestRrc::GetTxLastTime | ( | ) |
Get the last transmit time.
Definition at line 115 of file nr-test-entities.cc.
uint32_t ns3::NrTestRrc::GetTxPdus | ( | ) |
Get the transmit PDUs.
Definition at line 87 of file nr-test-entities.cc.
|
static |
void ns3::NrTestRrc::SendData | ( | Time | at, |
std::string | dataToSend | ||
) |
Send data function.
at | the time to send |
dataToSend | the data to send |
Definition at line 224 of file nr-test-entities.cc.
References ns3::NrPdcpSapProvider::TransmitPdcpSduParameters::lcid, ns3::NrPdcpSapProvider::TransmitPdcpSduParameters::pdcpSdu, ns3::NrPdcpSapProvider::TransmitPdcpSduParameters::rnti, and ns3::NrPdcpSapProvider::TransmitPdcpSdu().
void ns3::NrTestRrc::SetArrivalTime | ( | Time | arrivalTime | ) |
Set the arrival time.
arrivalTime | the arrival time |
Definition at line 129 of file nr-test-entities.cc.
void ns3::NrTestRrc::SetDevice | ( | Ptr< NetDevice > | device | ) |
void ns3::NrTestRrc::SetNrPdcpSapProvider | ( | NrPdcpSapProvider * | s | ) |
Set the PDCP SAP provider.
s | a pointer to the PDCP SAP provider |
Definition at line 67 of file nr-test-entities.cc.
void ns3::NrTestRrc::SetPduSize | ( | uint32_t | pduSize | ) |
Set the PDU size.
pduSize | the PDU size |
Definition at line 136 of file nr-test-entities.cc.
void ns3::NrTestRrc::Start | ( | ) |
Start function.
START
Definition at line 174 of file nr-test-entities.cc.
References ns3::NrPdcpSapProvider::TransmitPdcpSduParameters::lcid, ns3::NrPdcpSapProvider::TransmitPdcpSduParameters::pdcpSdu, ns3::NrPdcpSapProvider::TransmitPdcpSduParameters::rnti, Start(), and ns3::NrPdcpSapProvider::TransmitPdcpSdu().
Referenced by Start().
void ns3::NrTestRrc::Stop | ( | ) |
Stop function.
Definition at line 217 of file nr-test-entities.cc.
|
friend |
allow NrPdcpSpecificNrPdcpSapUser<NrTestRrc> class friend access
Definition at line 1 of file nr-test-entities.h.