|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
21 #include "ns3/simulator.h"
24 #include "ns3/lte-rlc-header.h"
25 #include "ns3/lte-rlc-um.h"
39 :
TestSuite (
"lte-rlc-um-transmitter", SYSTEM)
79 Packet::EnablePrinting ();
84 txPdcp = CreateObject<LteTestPdcp> ();
87 txRlc = CreateObject<LteRlcUm> ();
92 txMac = CreateObject<LteTestMac> ();
147 Simulator::Destroy ();
189 Simulator::Destroy ();
224 Simulator::Destroy ();
298 Simulator::Destroy ();
virtual ~LteRlcUmTransmitterTestCase()
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Test 4.1.1.2 Segmentation (One SDU => n PDUs)
void SetLteMacSapUser(LteMacSapUser *s)
Set the MAC SAP user.
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
Test case used by LteRlcUmTransmitterOneSduTestCase to create topology and to implement functionaliti...
virtual ~LteRlcUmTransmitterReportBufferStatusTestCase()
LteRlcUmTransmitterTestCase()
virtual void DoRun(void)
Implementation to actually run this TestCase.
LteRlcUmTransmitterSegmentationTestCase()
Ptr< LteRlc > txRlc
the RLC
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Test 4.1.1.4 Report Buffer Status (test primitive parameters)
virtual void DoRun(void)
Implementation to actually run this TestCase.
virtual ~LteRlcUmTransmitterConcatenationTestCase()
virtual ~LteRlcUmTransmitterSegmentationTestCase()
virtual void DoRun(void)
Implementation to actually run this TestCase.
Test 4.1.1.3 Concatenation (n SDUs => One PDU)
void SendData(Time time, std::string dataToSend)
Send data function.
void SetRnti(uint16_t rnti)
LteMacSapUser * GetLteMacSapUser()
TestSuite 4.1.1 for RLC UM: Only transmitter part.
LteRlcUmTransmitterReportBufferStatusTestCase()
LteMacSapProvider * GetLteMacSapProvider(void)
Get the MAC SAP provider.
void DoCheckDataReceived(std::string shouldReceived, std::string assertMsg)
Check data received function.
void SetLteMacSapProvider(LteMacSapProvider *s)
void SetRlcHeaderType(uint8_t rlcHeaderType)
Set RLC header type.
static LteRlcUmTransmitterTestSuite lteRlcUmTransmitterTestSuite
virtual ~LteRlcUmTransmitterOneSduTestCase()
Simulation virtual time values and global simulation resolution.
void CheckDataReceived(Time time, std::string shouldReceived, std::string assertMsg)
Check data received function.
void SendTxOpportunity(Time time, uint32_t bytes)
Send transmit opportunity function.
void SetLteRlcSapUser(LteRlcSapUser *s)
LteRlcUmTransmitterConcatenationTestCase()
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not.
Test 4.1.1.1 One SDU, One PDU.
LteRlcUmTransmitterOneSduTestCase()
LteRlcSapUser * GetLteRlcSapUser(void)
Get the RLC SAP user.
virtual void DoRun(void)
Implementation to actually run this TestCase.
Ptr< LteTestPdcp > txPdcp
the transmit PDCP
void SetLcId(uint8_t lcId)
Time Seconds(double value)
Construct a Time in the indicated unit.
LteRlcSapProvider * GetLteRlcSapProvider()
LteRlcUmTransmitterTestSuite()
TestSuite 4.1.1 RLC UM: Only transmitter.
virtual void DoRun(void)
Implementation to actually run this TestCase.
std::string GetDataReceived(void)
Get data received function.
void SetLteRlcSapProvider(LteRlcSapProvider *s)
Set the RLC SAP provider.
Ptr< LteTestMac > txMac
the MAC