25 #include <ns3/mobility-building-info.h> 26 #include <ns3/constant-position-mobility-model.h> 27 #include <ns3/building.h> 28 #include <ns3/buildings-helper.h> 29 #include <ns3/mobility-helper.h> 30 #include <ns3/simulator.h> 98 virtual void DoRun (
void);
107 std::ostringstream oss;
108 oss <<
"pos=" << pib.
pos;
111 oss <<
", bid=" << pib.
bid 114 <<
", fn=" << pib.
fn;
125 :
TestCase (BuildNameString (pib, bd)),
136 mobility.SetMobilityModel (
"ns3::ConstantPositionMobilityModel");
166 Simulator::Destroy ();
198 Vector vp1 (1.5, 1.5, 0.5);
208 Vector vp2 (1.5, 0.5, 0.5);
214 Vector vp3 (1.5, 2.5, 0.5);
220 Vector vp4 (1.5, 1.5, 5);
226 Vector vp5 (2.5, 1.6, 3.5);
236 Vector vp6 (0.9999, 1.5, 1.5);
242 Vector vp7 (3.0001, 1.5, 2.5);
248 Vector vp8 (1.001, 1.001, -0.01);
254 Vector vp9 (1.5, 1.5, 4.001);
274 Vector vq1 (-0.7, -1.1, 1.2);
284 Vector vq2 (0.2, 0.3, 0.2);
294 Vector vq3 (0.6, -1.75, 1.5);
300 Vector vq4 (-1.01, 0.3, 1.99);
306 Vector vq5 (-0.8, 0.7, 0.01);
312 Vector vq6 (0.2, 0.3, -0.2);
318 Vector vq7 (0.2, 0.3, 2.001);
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 "...
BuildingsHelperTestSuite()
void SetNRoomsY(uint16_t nroomy)
static BuildingsHelperTestSuite buildingsHelperAntennaTestSuiteInstance
virtual void DoRun(void)
Implementation to actually run this TestCase.
void AggregateObject(Ptr< Object > other)
Aggregate two Objects together.
Mobility model for which the current position does not change once it has been set and until it is se...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
uint8_t GetFloorNumber(void)
Get the floor number at which the MobilityBuildingInfo instance is located.
uint8_t GetRoomNumberX(void)
Get the room number along x-axis at which the MobilityBuildingInfo instance is located.
bool IsIndoor(void)
Is indoor method.
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
void SetNFloors(uint16_t nfloors)
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
keep track of a set of node pointers.
void SetPosition(const Vector &position)
NS_LOG_LOGIC("Net device "<< nd<< " is not bridged")
data to construct a Building object.
Helper class used to assign positions and mobility models to nodes.
Ptr< Building > GetBuilding()
Get the building in which the MobilityBuildingInfo instance is located.
static std::string BuildNameString(PositionInBuilding pib, BuildingData bd)
void SetNRoomsX(uint16_t nroomx)
BuildingsHelperOneTestCase(PositionInBuilding pib, BuildingData bd)
void SetBoundaries(Box box)
Set the boundaries of the building.
uint8_t GetRoomNumberY(void)
Get the room number along y-axis at which the MobilityBuildingInfo instance is located.