|
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-am.h"
39 :
TestSuite (
"lte-rlc-am-transmitter", SYSTEM)
76 Packet::EnablePrinting ();
81 txPdcp = CreateObject<LteTestPdcp> ();
84 txRlc = CreateObject<LteRlcAm> ();
89 txMac = CreateObject<LteTestMac> ();
142 Simulator::Stop (
Seconds (0.3));
144 Simulator::Destroy ();
185 Simulator::Stop (
Seconds (0.6));
187 Simulator::Destroy ();
222 Simulator::Stop (
Seconds (0.4));
224 Simulator::Destroy ();
301 Simulator::Destroy ();
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
virtual void DoRun(void)
Implementation to actually run this TestCase.
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.
virtual ~LteRlcAmTransmitterConcatenationTestCase()
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual void DoRun(void)
Implementation to actually run this TestCase.
Test 4.1.1.2 Test the correct functionality of the Segmentation.
Ptr< LteTestPdcp > txPdcp
the transmit PDCP
LteRlcAmTransmitterSegmentationTestCase()
virtual void DoRun(void)
Implementation to actually run this TestCase.
virtual ~LteRlcAmTransmitterTestCase()
Test case used by LteRlcAmTransmitterOneSduTestCase to create topology and to implement functionaliti...
Test 4.1.1.1 Test that SDU transmitted at PDCP corresponds to PDU received by MAC.
void SendData(Time time, std::string dataToSend)
Send data function.
void SetRnti(uint16_t rnti)
LteRlcAmTransmitterTestCase()
LteRlcAmTransmitterConcatenationTestCase()
LteMacSapUser * GetLteMacSapUser()
TestSuite 4.1.1 RLC AM: Only transmitter functionality.
Test 4.1.1.4 Test checks functionality of Report Buffer Status by testing primitive parameters.
static LteRlcAmTransmitterTestSuite lteRlcAmTransmitterTestSuite
virtual void DoRun(void)
Implementation to actually run this TestCase.
Ptr< LteTestMac > txMac
the MAC
void CheckDataReceived(Time time, std::string shouldReceived, std::string assertMsg)
Check data received function.
LteMacSapProvider * GetLteMacSapProvider(void)
Get the MAC SAP provider.
Test 4.1.1.3 Test that concatenation functionality works properly.
virtual ~LteRlcAmTransmitterOneSduTestCase()
void SetLteMacSapProvider(LteMacSapProvider *s)
void SetRlcHeaderType(uint8_t rlcHeaderType)
Set RLC header type.
LteRlcAmTransmitterReportBufferStatusTestCase()
Simulation virtual time values and global simulation resolution.
void SendTxOpportunity(Time time, uint32_t bytes)
Send transmit opportunity function.
void SetLteRlcSapUser(LteRlcSapUser *s)
#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.
LteRlcAmTransmitterOneSduTestCase()
LteRlcSapUser * GetLteRlcSapUser(void)
Get the RLC SAP user.
void DoCheckDataReceived(std::string shouldReceived, std::string assertMsg)
Check data received function.
void SetLcId(uint8_t lcId)
Time Seconds(double value)
Construct a Time in the indicated unit.
LteRlcSapProvider * GetLteRlcSapProvider()
virtual ~LteRlcAmTransmitterSegmentationTestCase()
LteRlcAmTransmitterTestSuite()
TestSuite 4.1.1 RLC AM: Only transmitter.
virtual void DoRun(void)
Implementation to actually run this TestCase.
std::string GetDataReceived(void)
Get data received function.
Ptr< LteRlc > txRlc
the RLC
virtual ~LteRlcAmTransmitterReportBufferStatusTestCase()
void SetLteRlcSapProvider(LteRlcSapProvider *s)
Set the RLC SAP provider.