21 #ifndef MOBILITY_BUILDING_INFO_H 22 #define MOBILITY_BUILDING_INFO_H 26 #include <ns3/simple-ref-count.h> 28 #include <ns3/object.h> 31 #include <ns3/building.h> 32 #include <ns3/constant-velocity-helper.h> 33 #include <ns3/mobility-model.h> 105 void SetIndoor (uint8_t nfloor, uint8_t nroomx, uint8_t nroomy);
170 #endif // MOBILITY_BUILDING_INFO_H Smart pointer class similar to boost::intrusive_ptr.
void SetOutdoor()
Mark this MobilityBuildingInfo instance as outdoor.
uint8_t m_nFloor
The floor number at which the MobilityBuildingInfo instance is located.
uint8_t m_roomY
The room number along y-axis at which the MobilityBuildingInfo instance is located.
uint8_t m_roomX
The room number along x-axis at which the MobilityBuildingInfo instance is located.
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 SetIndoor(Ptr< Building > building, uint8_t nfloor, uint8_t nroomx, uint8_t nroomy)
Mark this MobilityBuildingInfo instance as indoor.
Vector m_cachedPosition
The node position cached after making its mobility model consistent.
Ptr< Building > m_myBuilding
Building.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual void DoInitialize()
Initialize() implementation.
NS_DEPRECATED_3_31 bool IsOutdoor(void)
Is outdoor function.
static TypeId GetTypeId(void)
Get the type ID.
Ptr< Building > GetBuilding()
Get the building in which the MobilityBuildingInfo instance is located.
#define NS_DEPRECATED_3_31
Tag for things deprecated in version ns-3.31.
mobility buildings information (to be used by mobility models)
A base class which provides memory management and object aggregation.
void MakeConsistent(Ptr< MobilityModel > mm)
Make the given mobility model consistent, by determining whether its position falls inside any of the...
bool m_indoor
Node position (indoor/outdoor) ?
a unique identifier for an interface.
uint8_t GetRoomNumberY(void)
Get the room number along y-axis at which the MobilityBuildingInfo instance is located.