Test case for the inter-UE (drop-based) spatial consistency of TR 38.901 Sec. More...
Classes | |
| struct | ColocatedLosses |
| Result of ComputeColocatedLosses(). More... | |
Public Member Functions | |
| ThreeGppColocatedSpatialConsistencyTestCase () | |
| Public Member Functions inherited from ns3::TestCase | |
| TestCase (const TestCase &)=delete | |
| Caller graph was not generated because of its size. | |
| virtual | ~TestCase () |
| Destructor. | |
| std::string | GetName () const |
| TestCase & | operator= (const TestCase &)=delete |
Private Member Functions | |
| ColocatedLosses | ComputeColocatedLosses (const std::string &scenario, bool interUeSpatialConsistency, const Vector &position, double frequency, double o2iThreshold) |
| Compute the losses perceived by two co-located terminals. | |
| Ptr< MobilityModel > | CreateNodeAt (const Vector &pos, bool site) |
| Create a node with an aggregated constant-position mobility model. | |
| void | DoRun () override |
| Implementation to actually run this TestCase. | |
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... | |
| 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. | |
| TestCase * | GetParent () 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. | |
Test case for the inter-UE (drop-based) spatial consistency of TR 38.901 Sec.
7.6.3. With the InterUeSpatialConsistency attribute of the channel condition model enabled, two co-located terminals served by the same site sample the LOS/NLOS-state, indoor-state, building-type, shadow-fading and O2I penetration random fields at the same position and must therefore obtain the same channel condition and the same total loss, and a terminal must obtain the same indoor state towards different sites. Without it, the per-link draws are independent and co-located terminals obtain different shadowing realizations. The terminals are created before the sites, so the site of each link is only identified by its net device type, see the SiteNetDeviceTypes attribute of ChannelConditionModel.
Definition at line 1350 of file three-gpp-propagation-loss-model-test-suite.cc.
| ThreeGppColocatedSpatialConsistencyTestCase::ThreeGppColocatedSpatialConsistencyTestCase | ( | ) |
Definition at line 1394 of file three-gpp-propagation-loss-model-test-suite.cc.
References ns3::TestCase::TestCase().
|
private |
Compute the losses perceived by two co-located terminals.
| scenario | Key of the scenario to test. |
| interUeSpatialConsistency | Value for the InterUeSpatialConsistency attribute. |
| position | The common terminal position. |
| frequency | The centre frequency in Hz. |
| o2iThreshold | Value for the O2iThreshold attribute. |
Definition at line 1417 of file three-gpp-propagation-loss-model-test-suite.cc.
References CreateNodeAt(), ns3::CreateObject(), and NS_ABORT_MSG_UNLESS.
Referenced by DoRun().
|
private |
Create a node with an aggregated constant-position mobility model.
| pos | The node position. |
| site | Whether to install the net device identifying a site. |
Definition at line 1401 of file three-gpp-propagation-loss-model-test-suite.cc.
References ns3::CreateObject().
Referenced by ComputeColocatedLosses().
|
overrideprivatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 1478 of file three-gpp-propagation-loss-model-test-suite.cc.
References ComputeColocatedLosses(), ns3::Simulator::Destroy(), NS_TEST_ASSERT_MSG_EQ, NS_TEST_ASSERT_MSG_EQ_TOL, r, ns3::RngSeedManager::SetRun(), and ns3::RngSeedManager::SetSeed().