A Discrete-Event Network Simulator
API
ThreeGppCalcLongTermMultiPortTest Class Reference

Test case that test the correct use of the multi-port antennas in spectrum. More...

+ Inheritance diagram for ThreeGppCalcLongTermMultiPortTest:
+ Collaboration diagram for ThreeGppCalcLongTermMultiPortTest:

Public Member Functions

 ThreeGppCalcLongTermMultiPortTest ()
 Constructor. More...
 
 ~ThreeGppCalcLongTermMultiPortTest () override
 Destructor. More...
 
- Public Member Functions inherited from ns3::TestCase
 TestCase (const TestCase &)=delete
 
virtual ~TestCase ()
 Destructor. More...
 
std::string GetName () const
 
TestCaseoperator= (const TestCase &)=delete
 

Private Member Functions

void DoRun () override
 Build the test scenario. More...
 

Additional Inherited Members

- Public Types inherited from ns3::TestCase
enum  TestDuration { QUICK = 1 , EXTENSIVE = 2 , TAKES_FOREVER = 3 }
 How long the test takes to execute. More...
 
- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
 Constructor. More...
 
void AddTestCase (TestCase *testCase, TestDuration duration=QUICK)
 Add an individual child TestCase to this test suite. More...
 
TestCaseGetParent () const
 Get the parent of this TestCase. More...
 
bool IsStatusFailure () const
 Check if any tests failed. More...
 
bool IsStatusSuccess () const
 Check if all tests passed. More...
 
void SetDataDir (std::string directory)
 Set the data directory where reference trace files can be found. More...
 
void ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line)
 Log the failure of this TestCase. More...
 
bool MustAssertOnFailure () const
 Check if this run should assert on failure. More...
 
bool MustContinueOnFailure () const
 Check if this run should continue on failure. More...
 
std::string CreateDataDirFilename (std::string filename)
 Construct the full path to a file in the data directory. More...
 
std::string CreateTempDirFilename (std::string filename)
 Construct the full path to a file in a temporary directory. More...
 

Detailed Description

Test case that test the correct use of the multi-port antennas in spectrum.

The test does the following: 1) Generates a time domain channel matrix of a fixed size (num gNB elements = 32 (4x8), num UE elements = 16 (4x4), num Clusters). This matrix is called channelMatrixM0. 2) Divides gNB antenna and UE antenna into ports using a fixed element to port mapping (gNB: 1 vertical port, 4 horizontal ports, UE: 1 vertical port, 2 horizontal ports). Using the channelMatrixM0, it generates port to port long term channel matrix using the both gNB and UE having beams directed towards the other. The resulting long term matrix dimensions are gNBports = 4, UE ports = 2, num Clusters. This channel matrix is called matrixA. 3) Constructs a single port to single port long term channel matrix using the initial time domain channel matrix (channelMatrixM0) and beams from gNB and UE towards each other. Single port mapping means gNB: 1 vertical port, 1 horizontal port, UE: 1 vertical port, 1 horizontal port. Matrix dimensions are: gNBports = 1, UE ports = 1, num Clusters. This long term channel matrix is called matrixB. 4) Creates a single port to single port long term channel matrix between two virtual gNB and UE antenna by using matrixA and beam facing each other. Matrix dimension of the resulting matrix are gNBports = 1, UE ports = 1, num Clusters. This long term channel matrix is called matrixC. 5) Checks that matrixB and matrixC are identical.

Definition at line 783 of file three-gpp-channel-test-suite.cc.

Constructor & Destructor Documentation

◆ ThreeGppCalcLongTermMultiPortTest()

ThreeGppCalcLongTermMultiPortTest::ThreeGppCalcLongTermMultiPortTest ( )

Constructor.

Definition at line 803 of file three-gpp-channel-test-suite.cc.

◆ ~ThreeGppCalcLongTermMultiPortTest()

ThreeGppCalcLongTermMultiPortTest::~ThreeGppCalcLongTermMultiPortTest ( )
override

Destructor.

Definition at line 809 of file three-gpp-channel-test-suite.cc.

Member Function Documentation

◆ DoRun()

void ThreeGppCalcLongTermMultiPortTest::DoRun ( void  )
overrideprivatevirtual

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