16#include "ns3/boolean.h"
17#include "ns3/double.h"
19#include "ns3/ff-mac-scheduler.h"
21#include "ns3/lte-chunk-processor.h"
22#include "ns3/lte-enb-net-device.h"
23#include "ns3/lte-enb-phy.h"
24#include "ns3/lte-helper.h"
25#include "ns3/lte-spectrum-value-helper.h"
26#include "ns3/lte-ue-net-device.h"
27#include "ns3/lte-ue-phy.h"
28#include "ns3/mobility-helper.h"
29#include "ns3/pointer.h"
30#include "ns3/simulator.h"
31#include "ns3/spectrum-value.h"
32#include "ns3/string.h"
53 TestCase::Duration::QUICK);
59 TestCase::Duration::QUICK);
65 TestCase::Duration::QUICK);
71 TestCase::Duration::QUICK);
81 TestCase::Duration::QUICK);
90 TestCase::Duration::QUICK);
99 TestCase::Duration::QUICK);
108 TestCase::Duration::QUICK);
152 lteHelper->SetFfrAlgorithmType(
"ns3::LteFrHardAlgorithm");
154 lteHelper->SetAttribute(
"PathlossModel",
StringValue(
"ns3::FriisSpectrumPropagationLossModel"));
179 mobility.SetMobilityModel(
"ns3::ConstantPositionMobilityModel");
187 lteHelper->SetSchedulerType(
"ns3::PfFfMacScheduler");
257 "Wrong SINR in DL! (eNB1 --> UE1)");
273 "Wrong SINR in DL! (eNB2 --> UE2)");
327 lteHelper->SetFfrAlgorithmType(
"ns3::LteFrStrictAlgorithm");
329 lteHelper->SetFfrAlgorithmAttribute(
"CenterPowerOffset",
331 lteHelper->SetFfrAlgorithmAttribute(
"EdgePowerOffset",
334 lteHelper->SetAttribute(
"PathlossModel",
StringValue(
"ns3::FriisSpectrumPropagationLossModel"));
364 mobility.SetMobilityModel(
"ns3::ConstantPositionMobilityModel");
372 lteHelper->SetSchedulerType(
"ns3::PfFfMacScheduler");
444 "Wrong SINR in DL! (eNB1 --> UE1)");
451 "Wrong SINR in DL! (eNB2 --> UE2)");
461 "Wrong SINR in DL! (eNB1 --> UE1)");
477 "Wrong SINR in DL! (eNB2 --> UE2)");
Test suite for the interference test when using different frequency reuse algorithms....
LteInterferenceFrTestSuite()
TestSuite.
Lte interference test when using hard frequency reuse algorithm.
double m_expectedDlSinrDb
expected DL SINR in dB
void DoRun() override
Implementation to actually run this TestCase.
double m_d2
distance between UE and other ENB
double m_d1
distance between UE and ENB
LteInterferenceHardFrTestCase(std::string name, double d1, double d2, double dlSinr, double ulSinr)
Constructor.
~LteInterferenceHardFrTestCase() override
Lte interference test when using strict frequency reuse algorithm.
double m_d1
distance between UE and ENB
uint32_t m_rspqThreshold
RSPQ threshold.
void DoRun() override
Implementation to actually run this TestCase.
double m_commonDlSinrDb
expected common DL SINR in dB
double m_edgeDlSinrDb
expected edge DL SINR in dB
LteInterferenceStrictFrTestCase(std::string name, double d1, double d2, double commonDlSinr, double commonUlSinr, double edgeDlSinr, double edgeUlSinr, uint32_t rspqThreshold)
Constructor.
double m_d2
distance between UE and other ENB
~LteInterferenceStrictFrTestCase() override
AttributeValue implementation for Boolean.
This class can be used to hold variables of floating point type such as 'double' or 'float'.
Hold variables of type enum.
This class contains the specification of EPS Bearers.
@ GBR_CONV_VOICE
GBR Conversational Voice.
The eNodeB device implementation.
The LtePhy models the physical layer of LTE.
A sink to be plugged to the callback of LteChunkProcessor allowing to save and later retrieve the lat...
void ReportValue(const SpectrumValue &value)
function to be plugged to LteChunkProcessor::AddCallback ()
The LteUeNetDevice class implements the UE net device.
Helper class used to assign positions and mobility models to nodes.
holds a vector of ns3::NetDevice pointers
void Add(NetDeviceContainer other)
Append the contents of another NetDeviceContainer to the end of this container.
keep track of a set of node pointers.
void Create(uint32_t n)
Create n nodes and append pointers to them to the end of this NodeContainer.
Ptr< T > GetObject() const
Get a pointer to the requested aggregated Object.
Smart pointer class similar to boost::intrusive_ptr.
static void Destroy()
Execute the events scheduled with ScheduleDestroy().
static void Run()
Run the simulation.
static void Stop()
Tell the Simulator the calling event should be the last one executed.
Hold variables of type string.
void AddTestCase(TestCase *testCase, Duration duration=Duration::QUICK)
Add an individual child TestCase to this test suite.
std::string GetName() const
Hold an unsigned integer type.
void Reset()
Reset the initial value of every attribute as well as the value of every global to what they were bef...
void SetDefault(std::string name, const AttributeValue &value)
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
static LteInterferenceFrTestSuite LteInterferenceFrTestSuite
Static variable for test initialization.
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
#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...
Time Seconds(double value)
Construct a Time in the indicated unit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Callback< R, Args... > MakeCallback(R(T::*memPtr)(Args...), OBJ objPtr)
Build Callbacks for class method members which take varying numbers of arguments and potentially retu...