A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
Spectrum Models tests
+ Collaboration diagram for Spectrum Models tests:

Classes

class  ArrayResponseTest
 Test case for the TwoRaySpectrumPropagationLossModel class. More...
 
struct  CheckLongTermUpdateParams
 A structure that holds the parameters for the function CheckLongTermUpdate. More...
 
class  FtrFadingModelAverageTest
 Test case for the TwoRaySpectrumPropagationLossModel class. More...
 
class  OverallGainAverageTest
 Test case for the TwoRaySpectrumPropagationLossModel class. 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  ThreeGppCalcLongTermMultiPortTest
 Test case that test the correct use of the multi-port antennas in spectrum. 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  ThreeGppMimoPolarizationTest
 This test tests that the channel matrix is correctly generated when dual-polarized antennas are being used at TX and RX. 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  TwoRaySplmTestSuite
 Test suite for the TwoRaySpectrumPropagationLossModel 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.
 
#define NS_TEST_ASSERT_MSG_SPECTRUM_VALUE_EQ_TOL(actual, expected, tol, msg)
 Test if two SpectrumValue instances are equal within a given tolerance.
 

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 113 of file spectrum-test.h.