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),
179 double loss = propagationLossModel->
GetLoss (mma, mmb);
185 Simulator::Destroy ();
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> ();
271 BuildingsHelper::MakeConsistent (mm);
smart pointer class similar to boost::intrusive_ptr
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
uint16_t m_mobilityModelIndex1
EnvironmentType
The type of propagation environment.
virtual double GetLoss(Ptr< MobilityModel > a, Ptr< MobilityModel > b) const
BuildingsPathlossTestSuite()
Test 1.1 BuildingsPathlossModel Pathloss compound test.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
Ptr< MobilityModel > CreateMobilityModel(uint16_t index)
hold variables of type 'enum'
void SetNFloors(uint16_t nfloors)
virtual ~BuildingsPathlossTestCase()
Test 1.1 pathloss calculation.
BuildingsPathlossTestCase(double freq, uint16_t m1, uint16_t m2, EnvironmentType env, CitySize city, double refValue, std::string name)
TestCase.
void AggregateObject(Ptr< Object > other)
#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...
void SetExtWallsType(Building::ExtWallsType_t t)
void AddTestCase(TestCase *testCase) NS_DEPRECATED
Add an individual child TestCase case to this TestCase.
void SetPosition(const Vector &position)
static BuildingsPathlossTestSuite buildingsPathlossTestSuite
CitySize
The size of the city in which propagation takes place.
virtual void DoRun(void)
Implementation to actually run this TestCase.
uint16_t m_mobilityModelIndex2
Hold a floating point type.
void SetAttribute(std::string name, const AttributeValue &value)
void SetBoundaries(Box box)
Set the boundaries of the building.
void LogComponentEnable(char const *name, enum LogLevel level)
Enable the logging output associated with that log component.
void SetBuildingType(Building::BuildingType_t t)