22 #include <ns3/simulator.h>
26 #include <ns3/buildings-helper.h>
27 #include <ns3/string.h>
28 #include <ns3/double.h>
29 #include <ns3/building.h>
31 #include <ns3/constant-position-mobility-model.h>
32 #include <ns3/mobility-building-info.h>
53 :
TestSuite (
"buildings-pathloss-test", SYSTEM)
140 :
TestCase (
"LOSS calculation: " + name),
142 m_mobilityModelIndex1 (m1),
143 m_mobilityModelIndex2 (m2),
162 building1->SetBoundaries (
Box (-3000, -1, -4000, 4000.0, 0.0, 12));
165 building1->SetNFloors (3);
172 propagationLossModel->SetAttribute (
"Environment",
EnumValue (
m_env));
175 propagationLossModel->SetAttribute (
"ShadowSigmaOutdoor",
DoubleValue (0.0));
176 propagationLossModel->SetAttribute (
"ShadowSigmaIndoor",
DoubleValue (0.0));
177 propagationLossModel->SetAttribute (
"ShadowSigmaExtWalls",
DoubleValue (0.0));
179 double loss = propagationLossModel->GetLoss (mma, mmb);
204 double henbHeight = 10.0;
211 mm = CreateObject<ConstantPositionMobilityModel> ();
216 mm = CreateObject<ConstantPositionMobilityModel> ();
221 mm = CreateObject<ConstantPositionMobilityModel> ();
226 mm = CreateObject<ConstantPositionMobilityModel> ();
231 mm = CreateObject<ConstantPositionMobilityModel> ();
236 mm = CreateObject<ConstantPositionMobilityModel> ();
241 mm = CreateObject<ConstantPositionMobilityModel> ();
246 mm = CreateObject<ConstantPositionMobilityModel> ();
251 mm = CreateObject<ConstantPositionMobilityModel> ();
256 mm = CreateObject<ConstantPositionMobilityModel> ();
261 mm = CreateObject<ConstantPositionMobilityModel> ();
BuildingsPathlossTestCase(double freq, uint16_t m1, uint16_t m2, EnvironmentType env, CitySize city, double refValue, std::string name)
TestCase.
smart pointer class similar to boost::intrusive_ptr
#define NS_LOG_FUNCTION(parameters)
virtual ~BuildingsPathlossTestCase()
EnvironmentType
The type of propagation environment.
uint16_t m_mobilityModelIndex1
#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...
NS_LOG_COMPONENT_DEFINE("BuildingsPathlossTest")
Ptr< MobilityModel > CreateMobilityModel(uint16_t index)
uint16_t m_mobilityModelIndex2
static void MakeConsistent(Ptr< MobilityModel > bmm)
Make the given mobility model consistent, by determining whether its position falls inside any of the...
hold variables of type 'enum'
static BuildingsPathlossTestSuite buildingsPathlossTestSuite
void AggregateObject(Ptr< Object > other)
static void Destroy(void)
Every event scheduled by the Simulator::insertAtDestroy method is invoked.
BuildingsPathlossTestSuite()
Test 1.1 BuildingsPathlossModel Pathloss compound test.
void AddTestCase(TestCase *testCase) NS_DEPRECATED
Add an individual child TestCase case to this TestCase.
void SetPosition(const Vector &position)
CitySize
The size of the city in which propagation takes place.
Test 1.1 pathloss calculation.
Hold a floating point type.
void LogComponentEnable(char const *name, enum LogLevel level)
virtual void DoRun(void)
Implementation to actually run this TestCase.