5G-LENA nr-v4.0
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
ns3::NrTestRrc Class Reference

This class implements a testing RRC entity. More...

#include "nr-test-entities.h"

+ Inheritance diagram for ns3::NrTestRrc:
+ Collaboration diagram for ns3::NrTestRrc:

Public Member Functions

void DoDispose () override
 
std::string GetDataReceived ()
 Get data received function.
 
NrPdcpSapUserGetNrPdcpSapUser ()
 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
 

Detailed Description

This class implements a testing RRC entity.

Definition at line 28 of file nr-test-entities.h.

Constructor & Destructor Documentation

◆ NrTestRrc()

ns3::NrTestRrc::NrTestRrc ( )

Definition at line 33 of file nr-test-entities.cc.

◆ ~NrTestRrc()

ns3::NrTestRrc::~NrTestRrc ( )
override

Definition at line 48 of file nr-test-entities.cc.

Member Function Documentation

◆ DoDispose()

void ns3::NrTestRrc::DoDispose ( )
override

Definition at line 54 of file nr-test-entities.cc.

◆ GetDataReceived()

std::string ns3::NrTestRrc::GetDataReceived ( )

Get data received function.

Returns
the received data string

Definition at line 79 of file nr-test-entities.cc.

◆ GetNrPdcpSapUser()

NrPdcpSapUser * ns3::NrTestRrc::GetNrPdcpSapUser ( )

Get the PDCP SAP user.

Returns
a pointer to the SAP user of the RLC

Definition at line 73 of file nr-test-entities.cc.

◆ GetRxBytes()

uint32_t ns3::NrTestRrc::GetRxBytes ( )

Get the receive bytes.

Returns
the number of bytes received

Definition at line 108 of file nr-test-entities.cc.

◆ GetRxLastTime()

Time ns3::NrTestRrc::GetRxLastTime ( )

Get the last receive time.

Returns
the time of the last receive

Definition at line 122 of file nr-test-entities.cc.

◆ GetRxPdus()

uint32_t ns3::NrTestRrc::GetRxPdus ( )

Get the receive PDUs.

Returns
the number of receive PDUS

Definition at line 101 of file nr-test-entities.cc.

◆ GetTxBytes()

uint32_t ns3::NrTestRrc::GetTxBytes ( )

Get the transmit bytes.

Returns
the number of bytes transmitted

Definition at line 94 of file nr-test-entities.cc.

◆ GetTxLastTime()

Time ns3::NrTestRrc::GetTxLastTime ( )

Get the last transmit time.

Returns
the time of the last transmit

Definition at line 115 of file nr-test-entities.cc.

◆ GetTxPdus()

uint32_t ns3::NrTestRrc::GetTxPdus ( )

Get the transmit PDUs.

Returns
the number of transmit PDUS

Definition at line 87 of file nr-test-entities.cc.

◆ GetTypeId()

TypeId ns3::NrTestRrc::GetTypeId ( )
static

Get the type ID.

Returns
the object TypeId

Definition at line 26 of file nr-test-entities.cc.

◆ SendData()

void ns3::NrTestRrc::SendData ( Time  at,
std::string  dataToSend 
)

Send data function.

Parameters
atthe time to send
dataToSendthe 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().

+ Here is the call graph for this function:

◆ SetArrivalTime()

void ns3::NrTestRrc::SetArrivalTime ( Time  arrivalTime)

Set the arrival time.

Parameters
arrivalTimethe arrival time

Definition at line 129 of file nr-test-entities.cc.

◆ SetDevice()

void ns3::NrTestRrc::SetDevice ( Ptr< NetDevice >  device)

Set the device.

Parameters
devicethe device

Definition at line 61 of file nr-test-entities.cc.

◆ SetNrPdcpSapProvider()

void ns3::NrTestRrc::SetNrPdcpSapProvider ( NrPdcpSapProvider s)

Set the PDCP SAP provider.

Parameters
sa pointer to the PDCP SAP provider

Definition at line 67 of file nr-test-entities.cc.

◆ SetPduSize()

void ns3::NrTestRrc::SetPduSize ( uint32_t  pduSize)

Set the PDU size.

Parameters
pduSizethe PDU size

Definition at line 136 of file nr-test-entities.cc.

◆ Start()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Stop()

void ns3::NrTestRrc::Stop ( )

Stop function.

Definition at line 217 of file nr-test-entities.cc.

Friends And Related Symbol Documentation

◆ NrPdcpSpecificNrPdcpSapUser< NrTestRrc >

friend class NrPdcpSpecificNrPdcpSapUser< NrTestRrc >
friend

allow NrPdcpSpecificNrPdcpSapUser<NrTestRrc> class friend access

Definition at line 1 of file nr-test-entities.h.


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