26 #include "ns3/lte-spectrum-value-helper.h" 58 virtual void DoRun (
void);
76 double f = LteSpectrumValueHelper::GetCarrierFrequency (
m_earfcn);
102 virtual void DoRun (
void);
117 double f = LteSpectrumValueHelper::GetDownlinkCarrierFrequency (
m_earfcn);
143 virtual void DoRun (
void);
154 double f = LteSpectrumValueHelper::GetUplinkCarrierFrequency (
m_earfcn);
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
virtual ~LteEarfcnTestCase()
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
virtual void DoRun(void)
Implementation to actually run this TestCase.
uint32_t m_earfcn
the EARFCN
LteEarfcnUlTestCase(const char *str, uint32_t earfcn, double f)
Constructor.
LteEarfcnTestCase(const char *str, uint32_t earfcn, double f)
Constructor.
Test suite for testing correct conversion of frequencies in the downlink and the uplink, and general EARFCN frequencies.
static LteEarfcnTestSuite g_lteEarfcnTestSuite
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
Test case that is testing if the frequency is properly generated from provided EARFCN frequency...
#define NS_TEST_ASSERT_MSG_EQ_TOL(actual, limit, tol, msg)
Test that actual and expected (limit) values are equal to plus or minus some tolerance and report and...
double f(double x, void *params)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Test case that is testing if the downlink frequency is properly converted from provided downlink EARF...
Test case that is testing if the uplink frequency is properly converted from provided uplink EARFCN f...
virtual void DoRun(void)
Implementation to actually run this TestCase.
virtual void DoRun(void)
Implementation to actually run this TestCase.
LteEarfcnDlTestCase(const char *str, uint32_t earfcn, double f)
Constructor.