A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ThreeGppColocatedSpatialConsistencyTestCase Class Reference

Test case for the inter-UE (drop-based) spatial consistency of TR 38.901 Sec. More...

Inheritance diagram for ThreeGppColocatedSpatialConsistencyTestCase:
Collaboration diagram for ThreeGppColocatedSpatialConsistencyTestCase:

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ ThreeGppColocatedSpatialConsistencyTestCase()

ThreeGppColocatedSpatialConsistencyTestCase::ThreeGppColocatedSpatialConsistencyTestCase ( )

Definition at line 1394 of file three-gpp-propagation-loss-model-test-suite.cc.

References ns3::TestCase::TestCase().

Here is the call graph for this function:

Member Function Documentation

◆ ComputeColocatedLosses()

ThreeGppColocatedSpatialConsistencyTestCase::ColocatedLosses ThreeGppColocatedSpatialConsistencyTestCase::ComputeColocatedLosses ( const std::string & scenario,
bool interUeSpatialConsistency,
const Vector & position,
double frequency,
double o2iThreshold )
private

Compute the losses perceived by two co-located terminals.

Parameters
scenarioKey of the scenario to test.
interUeSpatialConsistencyValue for the InterUeSpatialConsistency attribute.
positionThe common terminal position.
frequencyThe centre frequency in Hz.
o2iThresholdValue for the O2iThreshold attribute.
Returns
The losses and the channel condition comparisons.

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateNodeAt()

Ptr< MobilityModel > ThreeGppColocatedSpatialConsistencyTestCase::CreateNodeAt ( const Vector & pos,
bool site )
private

Create a node with an aggregated constant-position mobility model.

Parameters
posThe node position.
siteWhether to install the net device identifying a site.
Returns
The mobility model of the new node.

Definition at line 1401 of file three-gpp-propagation-loss-model-test-suite.cc.

References ns3::CreateObject().

Referenced by ComputeColocatedLosses().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DoRun()

void ThreeGppColocatedSpatialConsistencyTestCase::DoRun ( )
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().

Here is the call graph for this function:

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