equal
deleted
inserted
replaced
27 #include "ns3/simulator.h" |
27 #include "ns3/simulator.h" |
28 |
28 |
29 NS_LOG_COMPONENT_DEFINE ("RraaWifiManager"); |
29 NS_LOG_COMPONENT_DEFINE ("RraaWifiManager"); |
30 |
30 |
31 namespace ns3 { |
31 namespace ns3 { |
|
32 |
|
33 NS_OBJECT_ENSURE_REGISTERED(RraaWifiManager); |
32 |
34 |
33 RraaWifiRemoteStation::RraaWifiRemoteStation (Ptr<RraaWifiManager> stations) |
35 RraaWifiRemoteStation::RraaWifiRemoteStation (Ptr<RraaWifiManager> stations) |
34 : m_stations (stations) |
36 : m_stations (stations) |
35 { |
37 { |
36 m_initialized = false; |
38 m_initialized = false; |
186 |
188 |
187 |
189 |
188 TypeId |
190 TypeId |
189 RraaWifiManager::GetTypeId (void) |
191 RraaWifiManager::GetTypeId (void) |
190 { |
192 { |
191 static TypeId tid = TypeId ("RraaWifiManager") |
193 static TypeId tid = TypeId ("ns3::RraaWifiManager") |
192 .SetParent<WifiRemoteStationManager> () |
194 .SetParent<WifiRemoteStationManager> () |
193 .AddConstructor<RraaWifiManager> () |
195 .AddConstructor<RraaWifiManager> () |
194 .AddAttribute ("Basic", |
196 .AddAttribute ("Basic", |
195 "If true the RRAA-BASIC algorithm will be used, otherwise the RRAA wil be used", |
197 "If true the RRAA-BASIC algorithm will be used, otherwise the RRAA wil be used", |
196 BooleanValue (false), |
198 BooleanValue (false), |