Fading test case is checking if the pathloss between macro and UE is equal to the theoretical value when using the Okumura Hata Model (150 < freq < 1500 MHz). More...
#include "lte-test-fading.h"
Public Member Functions | |
LteFadingTestCase (Ptr< BuildingsMobilityModel > m1, Ptr< BuildingsMobilityModel > m2, double refValue, std::string name) | |
Lte Fading Test Case function. More... | |
virtual | ~LteFadingTestCase () |
![]() | |
virtual | ~TestCase () |
Destructor. More... | |
std::string | GetName (void) const |
Private Member Functions | |
virtual void | DoRun (void) |
Implementation to actually run this TestCase. More... | |
void | GetFadingSample () |
Private Attributes | |
Ptr< TraceFadingLossModel > | m_fadingModule |
fading loss model More... | |
std::vector< SpectrumValue > | m_fadingSamples |
fading samples More... | |
double | m_lossRef |
loss reference More... | |
Ptr< BuildingsMobilityModel > | m_node1 |
building mobility model #1 More... | |
Ptr< BuildingsMobilityModel > | m_node2 |
building mobility model #2 More... | |
Additional Inherited Members | |
![]() | |
enum | TestDuration { QUICK = 1, EXTENSIVE = 2, TAKES_FOREVER = 3 } |
How long the test takes to execute. More... | |
![]() | |
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 TestCsse. More... | |
bool | IsStatusFailure (void) const |
Check if any tests failed. More... | |
bool | IsStatusSuccess (void) 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 (void) const |
Check if this run should assert on failure. More... | |
bool | MustContinueOnFailure (void) 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... | |
Fading test case is checking if the pathloss between macro and UE is equal to the theoretical value when using the Okumura Hata Model (150 < freq < 1500 MHz).
Definition at line 59 of file lte-test-fading.h.
LteFadingTestCase::LteFadingTestCase | ( | Ptr< BuildingsMobilityModel > | m1, |
Ptr< BuildingsMobilityModel > | m2, | ||
double | refValue, | ||
std::string | name | ||
) |
Lte Fading Test Case function.
TestCase.
m1 | building mobility model #1 |
m2 | building modility model #2 |
refValue | reference value |
name | the reference name |
Definition at line 130 of file lte-test-fading.cc.
|
virtual |
Definition at line 138 of file lte-test-fading.cc.
|
privatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
TX signal #1: Power Spectral Density (W/Hz) of the signal = [0 0] dBm and BW = [20 22] MHz
Implements ns3::TestCase.
Definition at line 143 of file lte-test-fading.cc.
References GetFadingSample(), ns3::TestCase::GetName(), ns3::LOG_LEVEL_ALL, ns3::LogComponentEnable(), m_fadingModule, m_fadingSamples, m_lossRef, m_node1, m_node2, NS_LOG_INFO, ns3::Seconds(), and ns3::ObjectBase::SetAttribute().
|
private |
TX signal #1: Power Spectral Density (W/Hz) of the signal = [0 0] dBm and BW = [20 22] MHz
Definition at line 258 of file lte-test-fading.cc.
References ns3::SpectrumPropagationLossModel::CalcRxPowerSpectralDensity(), ns3::BandInfo::fc, ns3::BandInfo::fh, ns3::BandInfo::fl, m_fadingModule, m_fadingSamples, m_node1, and m_node2.
Referenced by DoRun().
|
private |
fading loss model
Definition at line 79 of file lte-test-fading.h.
Referenced by DoRun(), and GetFadingSample().
|
private |
fading samples
Definition at line 81 of file lte-test-fading.h.
Referenced by DoRun(), and GetFadingSample().
|
private |
|
private |
building mobility model #1
Definition at line 77 of file lte-test-fading.h.
Referenced by DoRun(), and GetFadingSample().
|
private |
building mobility model #2
Definition at line 78 of file lte-test-fading.h.
Referenced by DoRun(), and GetFadingSample().