27 #include "../model/satellite-channel-estimation-error-container.h"
28 #include "../utils/satellite-env-variables.h"
30 #include "ns3/boolean.h"
31 #include "ns3/config.h"
34 #include "ns3/singleton.h"
51 virtual void DoRun(
void);
55 : TestCase(
"Test FWD link SINR channel estimation error.")
67 Singleton<SatEnvVariables>::Get()->DoInitialize();
68 Singleton<SatEnvVariables>::Get()->SetOutputVariables(
"test-sat-channel-estimation-error",
72 Ptr<SatChannelEstimationErrorContainer> ceError =
73 Create<SatFwdLinkChannelEstimationErrorContainer>();
75 for (
double in = -20.0; in < 20.0; in += 0.1)
77 double out = ceError->AddError(in);
79 std::cout <<
"SINR in: " << in <<
", SINR out: " << out << std::endl;
82 Singleton<SatEnvVariables>::Get()->DoDispose();
96 virtual void DoRun(
void);
100 : TestCase(
"Test RTN link SINR channel estimation error.")
112 Singleton<SatEnvVariables>::Get()->DoInitialize();
113 Singleton<SatEnvVariables>::Get()->SetOutputVariables(
"test-sat-channel-estimation-error",
117 Ptr<SatChannelEstimationErrorContainer> ceError =
118 Create<SatFwdLinkChannelEstimationErrorContainer>();
120 for (uint32_t wf = 3; wf <= 23; ++wf)
122 std::cout <<
"--- WF: " << wf << std::endl;
123 for (
double in = -20.0; in < 20.0; in += 0.1)
125 double out = ceError->AddError(in);
127 std::cout <<
"SINR in: " << in <<
", SINR out: " << out << std::endl;
130 Singleton<SatEnvVariables>::Get()->DoDispose();
144 : TestSuite(
"sat-channel-estimation-error-test", Type::UNIT)
Test suite for satellite channel estimation error.
SatChannelEstimationErrorTestSuite()
Test case for FWD link channel estimation error.
SatFwdChannelEstimationErrorTestCase()
virtual ~SatFwdChannelEstimationErrorTestCase()
Test case for RTN link channel estimation error.
SatRtnChannelEstimationErrorTestCase()
virtual ~SatRtnChannelEstimationErrorTestCase()
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.
static SatChannelEstimationErrorTestSuite satChannelEstimationErrorTestSuite