A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
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.
 
 ~ThreeGppCalcLongTermMultiPortTest () override
 Destructor.
 
- Public Member Functions inherited from ns3::TestCase
 TestCase (const TestCase &)=delete
 
virtual ~TestCase ()
 Destructor.
 
std::string GetName () const
 
TestCaseoperator= (const TestCase &)=delete
 

Private Member Functions

void DoRun () override
 Build the test scenario.
 

Additional Inherited Members

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

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 1011 of file three-gpp-channel-test-suite.cc.

Constructor & Destructor Documentation

◆ ThreeGppCalcLongTermMultiPortTest()

ThreeGppCalcLongTermMultiPortTest::ThreeGppCalcLongTermMultiPortTest ( )

Constructor.

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

◆ ~ThreeGppCalcLongTermMultiPortTest()

ThreeGppCalcLongTermMultiPortTest::~ThreeGppCalcLongTermMultiPortTest ( )
override

Destructor.

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

Member Function Documentation

◆ DoRun()

void ThreeGppCalcLongTermMultiPortTest::DoRun ( )
overrideprivatevirtual

Build the test scenario.

Implements ns3::TestCase.

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

References ns3::Node::AddDevice(), ns3::Object::AggregateObject(), ns3::NodeContainer::Create(), ns3::Simulator::Destroy(), ns3::NodeContainer::Get(), nodes, NS_TEST_ASSERT_MSG_EQ, and ns3::Simulator::Run().

+ Here is the call graph for this function:

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