Test case that test the correct use of the multi-port antennas in spectrum. More...
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 |
TestCase & | operator= (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... | |
TestCase * | GetParent () 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... | |
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.
ThreeGppCalcLongTermMultiPortTest::ThreeGppCalcLongTermMultiPortTest | ( | ) |
Constructor.
Definition at line 803 of file three-gpp-channel-test-suite.cc.
|
override |
Destructor.
Definition at line 809 of file three-gpp-channel-test-suite.cc.
|
overrideprivatevirtual |
Build the test scenario.
Implements ns3::TestCase.
Definition at line 814 of file three-gpp-channel-test-suite.cc.
References ns3::Node::AddDevice(), ns3::Object::AggregateObject(), ns3::NodeContainer::Create(), ns3::NodeContainer::Get(), ns3::PhasedArrayModel::GetBeamformingVector(), ns3::MobilityModel::GetPosition(), nodes, NS_TEST_ASSERT_MSG_EQ, ns3::PhasedArrayModel::SetBeamformingVector(), and ns3::MobilityModel::SetPosition().