hold a list of per-remote-station state. More...
#include <wifi-remote-station-manager.h>
Public Types | |
typedef BasicModes::const_iterator | BasicModesIterator |
Public Member Functions | |
WifiRemoteStationManager () | |
virtual | ~WifiRemoteStationManager () |
virtual void | SetupPhy (Ptr< WifiPhy > phy) |
uint32_t | GetMaxSsrc (void) const |
uint32_t | GetMaxSlrc (void) const |
uint32_t | GetRtsCtsThreshold (void) const |
uint32_t | GetFragmentationThreshold (void) const |
void | SetMaxSsrc (uint32_t maxSsrc) |
void | SetMaxSlrc (uint32_t maxSlrc) |
void | SetRtsCtsThreshold (uint32_t threshold) |
void | SetFragmentationThreshold (uint32_t threshold) |
void | Reset (void) |
void | AddBasicMode (WifiMode mode) |
WifiMode | GetDefaultMode (void) const |
uint32_t | GetNBasicModes (void) const |
WifiMode | GetBasicMode (uint32_t i) const |
BasicModesIterator | BeginBasicModes (void) const |
BasicModesIterator | EndBasicModes (void) const |
bool | IsLowLatency (void) const |
WifiRemoteStation * | Lookup (Mac48Address address) |
WifiRemoteStation * | LookupNonUnicast (void) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::WifiRemoteStationManager. | |
Protected Member Functions | |
virtual void | DoDispose (void) |
Private Types | |
typedef std::vector< WifiMode > | BasicModes |
typedef std::vector< std::pair < Mac48Address, WifiRemoteStation * > > | Stations |
Private Member Functions | |
virtual class WifiRemoteStation * | CreateStation (void)=0 |
Private Attributes | |
Stations | m_stations |
WifiMode | m_defaultTxMode |
NonUnicastWifiRemoteStation * | m_nonUnicast |
BasicModes | m_basicModes |
bool | m_isLowLatency |
uint32_t | m_maxSsrc |
uint32_t | m_maxSlrc |
uint32_t | m_rtsCtsThreshold |
uint32_t | m_fragmentationThreshold |
Friends | |
class | WifiRemoteStation |
hold a list of per-remote-station state.
Definition at line 42 of file wifi-remote-station-manager.h.
typedef std::vector<WifiMode> ns3::WifiRemoteStationManager::BasicModes [private] |
Definition at line 45 of file wifi-remote-station-manager.h.
typedef BasicModes::const_iterator ns3::WifiRemoteStationManager::BasicModesIterator |
Definition at line 47 of file wifi-remote-station-manager.h.
typedef std::vector<std::pair<Mac48Address, WifiRemoteStation *> > ns3::WifiRemoteStationManager::Stations [private] |
Definition at line 89 of file wifi-remote-station-manager.h.
ns3::WifiRemoteStationManager::WifiRemoteStationManager | ( | ) |
Definition at line 162 of file wifi-remote-station-manager.cc.
ns3::WifiRemoteStationManager::~WifiRemoteStationManager | ( | ) | [virtual] |
Definition at line 166 of file wifi-remote-station-manager.cc.
void ns3::WifiRemoteStationManager::AddBasicMode | ( | WifiMode | mode | ) |
Definition at line 272 of file wifi-remote-station-manager.cc.
References GetBasicMode(), GetNBasicModes(), and m_basicModes.
WifiRemoteStationManager::BasicModesIterator ns3::WifiRemoteStationManager::BeginBasicModes | ( | void | ) | const |
Definition at line 295 of file wifi-remote-station-manager.cc.
References m_basicModes.
virtual class WifiRemoteStation* ns3::WifiRemoteStationManager::CreateStation | ( | void | ) | [private, pure virtual] |
Implemented in ns3::AarfWifiManager, ns3::AmrrWifiManager, ns3::ArfWifiManager, ns3::ConstantRateWifiManager, ns3::IdealWifiManager, ns3::OnoeWifiManager, and ns3::RraaWifiManager.
Referenced by Lookup().
void ns3::WifiRemoteStationManager::DoDispose | ( | void | ) | [protected, virtual] |
This method is called by Object::Dispose or by the object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.
Reimplemented from ns3::Object.
Definition at line 170 of file wifi-remote-station-manager.cc.
References m_nonUnicast, and m_stations.
WifiRemoteStationManager::BasicModesIterator ns3::WifiRemoteStationManager::EndBasicModes | ( | void | ) | const |
Definition at line 300 of file wifi-remote-station-manager.cc.
References m_basicModes.
WifiMode ns3::WifiRemoteStationManager::GetBasicMode | ( | uint32_t | i | ) | const |
Definition at line 289 of file wifi-remote-station-manager.cc.
References m_basicModes, and NS_ASSERT.
Referenced by AddBasicMode().
WifiMode ns3::WifiRemoteStationManager::GetDefaultMode | ( | void | ) | const |
Definition at line 255 of file wifi-remote-station-manager.cc.
References m_defaultTxMode.
uint32_t ns3::WifiRemoteStationManager::GetFragmentationThreshold | ( | void | ) | const |
Definition at line 202 of file wifi-remote-station-manager.cc.
References m_fragmentationThreshold.
uint32_t ns3::WifiRemoteStationManager::GetMaxSlrc | ( | void | ) | const |
Definition at line 192 of file wifi-remote-station-manager.cc.
References m_maxSlrc.
uint32_t ns3::WifiRemoteStationManager::GetMaxSsrc | ( | void | ) | const |
Definition at line 187 of file wifi-remote-station-manager.cc.
References m_maxSsrc.
uint32_t ns3::WifiRemoteStationManager::GetNBasicModes | ( | void | ) | const |
Definition at line 284 of file wifi-remote-station-manager.cc.
References m_basicModes.
Referenced by AddBasicMode().
uint32_t ns3::WifiRemoteStationManager::GetRtsCtsThreshold | ( | void | ) | const |
Definition at line 197 of file wifi-remote-station-manager.cc.
References m_rtsCtsThreshold.
TypeId ns3::WifiRemoteStationManager::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::WifiRemoteStationManager.
This object is accessible through the following paths with Config::Set and Config::Connect:
Attributes defined for this type:
No TraceSources defined for this type.
Reimplemented from ns3::Object.
Reimplemented in ns3::AarfWifiManager, ns3::AmrrWifiManager, ns3::ArfWifiManager, ns3::ConstantRateWifiManager, ns3::IdealWifiManager, ns3::OnoeWifiManager, and ns3::RraaWifiManager.
Definition at line 125 of file wifi-remote-station-manager.cc.
References ns3::TypeId::AddAttribute(), m_fragmentationThreshold, m_isLowLatency, m_maxSlrc, m_maxSsrc, m_rtsCtsThreshold, and ns3::TypeId::SetParent().
bool ns3::WifiRemoteStationManager::IsLowLatency | ( | void | ) | const |
Definition at line 305 of file wifi-remote-station-manager.cc.
References m_isLowLatency.
WifiRemoteStation * ns3::WifiRemoteStationManager::Lookup | ( | Mac48Address | address | ) |
Definition at line 228 of file wifi-remote-station-manager.cc.
References CreateStation(), ns3::Mac48Address::IsBroadcast(), ns3::Mac48Address::IsMulticast(), m_nonUnicast, m_stations, and ns3::WifiRemoteStation::Reset().
WifiRemoteStation * ns3::WifiRemoteStationManager::LookupNonUnicast | ( | void | ) |
Definition at line 249 of file wifi-remote-station-manager.cc.
References m_nonUnicast.
void ns3::WifiRemoteStationManager::Reset | ( | void | ) |
Definition at line 260 of file wifi-remote-station-manager.cc.
References ns3::WifiMode::IsMandatory(), m_basicModes, m_defaultTxMode, m_stations, and NS_ASSERT.
Referenced by SetupPhy().
void ns3::WifiRemoteStationManager::SetFragmentationThreshold | ( | uint32_t | threshold | ) |
Definition at line 222 of file wifi-remote-station-manager.cc.
References m_fragmentationThreshold.
void ns3::WifiRemoteStationManager::SetMaxSlrc | ( | uint32_t | maxSlrc | ) |
Definition at line 212 of file wifi-remote-station-manager.cc.
References m_maxSlrc.
void ns3::WifiRemoteStationManager::SetMaxSsrc | ( | uint32_t | maxSsrc | ) |
Definition at line 207 of file wifi-remote-station-manager.cc.
References m_maxSsrc.
void ns3::WifiRemoteStationManager::SetRtsCtsThreshold | ( | uint32_t | threshold | ) |
Definition at line 217 of file wifi-remote-station-manager.cc.
References m_rtsCtsThreshold.
Reimplemented in ns3::IdealWifiManager.
Definition at line 180 of file wifi-remote-station-manager.cc.
References m_defaultTxMode, and Reset().
friend class WifiRemoteStation [friend] |
Definition at line 86 of file wifi-remote-station-manager.h.
Definition at line 94 of file wifi-remote-station-manager.h.
Referenced by AddBasicMode(), BeginBasicModes(), EndBasicModes(), GetBasicMode(), GetNBasicModes(), and Reset().
Definition at line 92 of file wifi-remote-station-manager.h.
Referenced by GetDefaultMode(), Reset(), and SetupPhy().
uint32_t ns3::WifiRemoteStationManager::m_fragmentationThreshold [private] |
Definition at line 99 of file wifi-remote-station-manager.h.
Referenced by GetFragmentationThreshold(), GetTypeId(), and SetFragmentationThreshold().
bool ns3::WifiRemoteStationManager::m_isLowLatency [private] |
Definition at line 95 of file wifi-remote-station-manager.h.
Referenced by GetTypeId(), and IsLowLatency().
uint32_t ns3::WifiRemoteStationManager::m_maxSlrc [private] |
Definition at line 97 of file wifi-remote-station-manager.h.
Referenced by GetMaxSlrc(), GetTypeId(), and SetMaxSlrc().
uint32_t ns3::WifiRemoteStationManager::m_maxSsrc [private] |
Definition at line 96 of file wifi-remote-station-manager.h.
Referenced by GetMaxSsrc(), GetTypeId(), and SetMaxSsrc().
Definition at line 93 of file wifi-remote-station-manager.h.
Referenced by DoDispose(), Lookup(), and LookupNonUnicast().
uint32_t ns3::WifiRemoteStationManager::m_rtsCtsThreshold [private] |
Definition at line 98 of file wifi-remote-station-manager.h.
Referenced by GetRtsCtsThreshold(), GetTypeId(), and SetRtsCtsThreshold().
Definition at line 91 of file wifi-remote-station-manager.h.
Referenced by DoDispose(), Lookup(), and Reset().