LEFT | RIGHT |
(no file at all) | |
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) | 3 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 bool IsOutdoor (void); | 65 bool IsOutdoor (void); |
66 | 66 |
67 /**· | 67 /**· |
68 * Mark this MobilityBuildingInfo instance as indoor | 68 * Mark this MobilityBuildingInfo instance as indoor |
69 *· | 69 *· |
70 * \param building the building into which the MobilityBuildingInfo instance i
s located | 70 * \param building the building into which the MobilityBuildingInfo instance i
s located |
71 * \param nfloor the floor number 1...nFloors at which the MobilityBuildingIn
fo instance is located | 71 * \param nfloor the floor number 1...nFloors at which the MobilityBuildingIn
fo instance is located |
72 * \param nroomx the X room number 1...nRoomsX at which the MobilityBuildingI
nfo instance is located | 72 * \param nroomx the X room number 1...nRoomsX at which the MobilityBuildingI
nfo instance is located |
73 * \param nroomy the Y room number 1...nRoomsY at which the MobilityBuildingI
nfo instance is located | 73 * \param nroomy the Y room number 1...nRoomsY at which the MobilityBuildingI
nfo instance is located |
74 */ | 74 */ |
75 void SetIndoor (Ptr<Building> building, uint8_t nfloor, uint8_t nroomx, uint8_
t nroomy); | 75 void SetIndoor (Ptr<Building> building, uint16_t nfloor, uint16_t nroomx, uint
16_t nroomy); |
76 | 76 |
77 | 77 |
78 void SetIndoor (uint8_t nfloor, uint8_t nroomx, uint8_t nroomy); | 78 void SetIndoor (uint16_t nfloor, uint16_t nroomx, uint16_t nroomy); |
79 | 79 |
80 /**· | 80 /**· |
81 * Mark this MobilityBuildingInfo instance as outdoor | 81 * Mark this MobilityBuildingInfo instance as outdoor |
82 *· | 82 *· |
83 */ | 83 */ |
84 void SetOutdoor (); | 84 void SetOutdoor (); |
85 | 85 |
86 /**· | 86 /**· |
87 *· | 87 *· |
88 * \return· | 88 * \return· |
89 */ | 89 */ |
90 uint8_t GetFloorNumber (void); | 90 uint16_t GetFloorNumber (void); |
91 | 91 |
92 /**· | 92 /**· |
93 *· | 93 *· |
94 * \return· | 94 * \return· |
95 */ | 95 */ |
96 uint8_t GetRoomNumberX (void); | 96 uint16_t GetRoomNumberX (void); |
97 | 97 |
98 /**· | 98 /**· |
99 *· | 99 *· |
100 * \return· | 100 * \return· |
101 */ | 101 */ |
102 uint8_t GetRoomNumberY (void); | 102 uint16_t GetRoomNumberY (void); |
103 | 103 |
104 /**· | 104 /**· |
105 *· | 105 *· |
106 * \return· | 106 * \return· |
107 */ | 107 */ |
108 Ptr<Building> GetBuilding (); | 108 Ptr<Building> GetBuilding (); |
109 | 109 |
110 | 110 |
111 | 111 |
112 private: | 112 private: |
113 | 113 |
114 Ptr<Building> m_myBuilding; | 114 Ptr<Building> m_myBuilding; |
115 bool m_indoor; | 115 bool m_indoor; |
116 uint8_t m_nFloor; | 116 uint16_t m_nFloor; |
117 uint8_t m_roomX; | 117 uint16_t m_roomX; |
118 uint8_t m_roomY; | 118 uint16_t m_roomY; |
119 | 119 |
120 }; | 120 }; |
121 | 121 |
122 | 122 |
123 | 123 |
124 } // namespace ns3 | 124 } // namespace ns3 |
125 | 125 |
126 | 126 |
127 #endif // MOBILITY_BUILDING_INFO_H | 127 #endif // MOBILITY_BUILDING_INFO_H |
LEFT | RIGHT |