A Discrete-Event Network Simulator
API
Spectrum Models tests
+ Collaboration diagram for Spectrum Models tests:

Classes

struct  CheckLongTermUpdateParams
 A structure that holds the parameters for the function CheckLongTermUpdate. More...
 
class  SpectrumConverterTestSuite
 Spectrum Converter TestSuite. More...
 
class  SpectrumIdealPhyTestCase
 Ideal Spectrum PHY Test. More...
 
class  SpectrumIdealPhyTestSuite
 Ideal Spectrum PHY TestSuite. More...
 
class  SpectrumInterferenceTestCase
 Spectrum Interference Test. More...
 
class  SpectrumInterferenceTestSuite
 Spectrum Interference TestSuite. More...
 
class  SpectrumValueTestCase
 Spectrum Value Test. More...
 
class  SpectrumValueTestSuite
 Spectrum Value TestSuite. More...
 
class  ThreeGppChannelMatrixComputationTest
 Test case for the ThreeGppChannelModel class. More...
 
class  ThreeGppChannelMatrixUpdateTest
 Test case for the ThreeGppChannelModel class. More...
 
class  ThreeGppChannelTestSuite
 Test suite for the ThreeGppChannelModel class. More...
 
class  ThreeGppSpectrumPropagationLossModelTest
 Test case for the ThreeGppSpectrumPropagationLossModelTest class. More...
 
class  TvHelperDistributionTestCase
 This test verifies the accuracy of the private GetRandomNumTransmitters()
method in the TvSpectrumTransmitterHelper class. More...
 
class  TvHelperDistributionTestSuite
 Test suite for the TvSpectrumTransmitterHelper class. More...
 
class  TvSpectrumTransmitterTestCase
 This test verifies the accuracy of the spectrum/PSD model in the TvSpectrumTransmitter class. More...
 
class  TvSpectrumTransmitterTestSuite
 Test suite for the TvSpectrumTransmitter class. More...
 
class  WaveformGeneratorTestCase
 Waveform generator Test. More...
 
class  WaveformGeneratorTestSuite
 Waveform generator TestSuite. More...
 

Macros

#define NS_TEST_ASSERT_MSG_SPECTRUM_MODEL_EQ_TOL(actual, expected, tol, msg)
 Test if two SpectrumModel instances are equal within a given tolerance. More...
 
#define NS_TEST_ASSERT_MSG_SPECTRUM_VALUE_EQ_TOL(actual, expected, tol, msg)
 Test if two SpectrumValue instances are equal within a given tolerance. More...
 

Detailed Description

Macro Definition Documentation

◆ NS_TEST_ASSERT_MSG_SPECTRUM_MODEL_EQ_TOL

#define NS_TEST_ASSERT_MSG_SPECTRUM_MODEL_EQ_TOL (   actual,
  expected,
  tol,
  msg 
)

Test if two SpectrumModel instances are equal within a given tolerance.

This test compares component-by-component the two SpectrumModel instances; if any pair of components differs by more than the given tolerance, the test fails.

Parameters
actualthe actual value obtained by the simulator
expectedthe expected value obtained by off-line calculations
tolthe tolerance
msgthe message to print if the test fails

Definition at line 48 of file spectrum-test.h.

◆ NS_TEST_ASSERT_MSG_SPECTRUM_VALUE_EQ_TOL

#define NS_TEST_ASSERT_MSG_SPECTRUM_VALUE_EQ_TOL (   actual,
  expected,
  tol,
  msg 
)

Test if two SpectrumValue instances are equal within a given tolerance.

This test compares component-by-component the two SpectrumValue instances; if any pair of components differs by more than the given tolerance, the test fails.

Parameters
actualthe actual value obtained by the simulator
expectedthe expected value obtained by off-line calculations
tolthe tolerance
msgthe message to print if the test fails

Definition at line 107 of file spectrum-test.h.