22 #include <ns3/simulator.h> 23 #include <ns3/position-allocator.h> 24 #include <ns3/mobility-building-info.h> 25 #include <ns3/pointer.h> 27 #include <ns3/assert.h> 40 .SetGroupName (
"Buildings")
58 : m_myBuilding (building)
93 NS_ASSERT (m_roomX <= building->GetNRoomsX ());
95 NS_ASSERT (m_roomY <= building->GetNRoomsY ());
97 NS_ASSERT (m_nFloor <= building->GetNFloors ());
113 NS_ASSERT (m_roomX <= m_myBuilding->GetNRoomsX ());
115 NS_ASSERT (m_roomY <= m_myBuilding->GetNRoomsY ());
117 NS_ASSERT (m_nFloor <= m_myBuilding->GetNFloors ());
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 "...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
NS_ASSERT_MSG(false, "Ipv4AddressGenerator::MaskToIndex(): Impossible")
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
void SetOutdoor()
Mark this MobilityBuildingInfo instance as outdoor.
uint8_t GetFloorNumber(void)
uint8_t GetRoomNumberX(void)
void SetIndoor(Ptr< Building > building, uint8_t nfloor, uint8_t nroomx, uint8_t nroomy)
Mark this MobilityBuildingInfo instance as indoor.
Ptr< Building > m_myBuilding
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static TypeId GetTypeId(void)
Ptr< Building > GetBuilding()
mobility buildings information (to be used by mobility models)
A base class which provides memory management and object aggregation.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
uint8_t GetRoomNumberY(void)