23 #include <ns3/tv-spectrum-transmitter-helper.h>
55 virtual void DoRun (
void);
56 static std::string
Name (uint32_t maxNumTransmitters);
63 std::ostringstream oss;
64 oss <<
"Max Number of Transmitters = " << maxNumTransmitters;
70 m_maxNumTransmitters (maxNumTransmitters)
88 for (
int i = 0; i < 30; i ++)
97 for (
int i = 0; i < 30; i ++)
109 for (
int i = 0; i < 30; i ++)
130 :
TestSuite (
"tv-helper-distribution", UNIT)
132 NS_LOG_INFO (
"creating TvHelperDistributionTestSuite");
133 for (uint32_t maxNumTransmitters = 3; maxNumTransmitters <= 203; maxNumTransmitters+= 10)
virtual void DoRun(void)
Implementation to actually run this TestCase.
virtual ~TvHelperDistributionTestCase()
TvHelperDistributionTestCase(uint32_t maxNumTransmitters)
static std::string Name(uint32_t maxNumTransmitters)
uint32_t m_maxNumTransmitters
TvHelperDistributionTestSuite()
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
Helper class which uses TvSpectrumTransmitter class to create customizable TV transmitter(s) that tra...
int GetRandomNumTransmitters(Density density, uint32_t numChannels)
Randomly generates the number of TV transmitters to be created based on given density and number of p...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
#define NS_TEST_ASSERT_MSG_LT(actual, limit, msg)
Test that an actual value is less than a limit and report and abort if not.
#define NS_TEST_ASSERT_MSG_GT(actual, limit, msg)
Test that an actual value is greater than a limit and report and abort if not.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static std::string Name(std::string str, uint32_t totalStreamSize, uint32_t sourceWriteSize, uint32_t serverReadSize, uint32_t serverWriteSize, uint32_t sourceReadSize, bool useIpv6)
static TvHelperDistributionTestSuite g_TvHelperDistributionTestSuite