User Manual, Developers Guide and API Documentation

wimac::StationManager Class Reference

The StationManager is an information database for all DLLs in the simulator. More...

#include <StationManager.hpp>

Collaboration diagram for wimac::StationManager:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void registerStation (StationID id, wns::service::dll::UnicastAddress adr, Component *layer)
 Register a station (Layer2) after its creation.
Lookup methods


wns::node::InterfacegetNodeByID (StationID) const
ComponentgetStationByID (StationID) const
ComponentgetStationByMAC (wns::service::dll::UnicastAddress mac) const
ComponentgetStationByNode (wns::node::Interface *) const

Private Types

typedef
wns::container::Registry
< StationID, Component * > 
LayerLookup
typedef
wns::container::Registry
< wns::service::dll::UnicastAddress,
Component * > 
MACAdrLookup
typedef
wns::container::Registry
< wns::node::Interface
*, Component * > 
NodeLookup

Private Attributes

LayerLookup layerLookup
MACAdrLookup macAdrLookup
NodeLookup nodeLookup


Detailed Description

Todo:
On the long run, we should get rid of the stationIDs here and only work on wns::service::dll::Address

Definition at line 59 of file StationManager.hpp.


Member Typedef Documentation

Definition at line 61 of file StationManager.hpp.

Definition at line 63 of file StationManager.hpp.

Definition at line 62 of file StationManager.hpp.


Member Function Documentation

wns::node::Interface* wimac::StationManager::getNodeByID ( StationID   )  const

Component* wimac::StationManager::getStationByID ( StationID   )  const

Component* wimac::StationManager::getStationByMAC ( wns::service::dll::UnicastAddress  mac  )  const

Component* wimac::StationManager::getStationByNode ( wns::node::Interface  )  const

void wimac::StationManager::registerStation ( StationID  id,
wns::service::dll::UnicastAddress  adr,
Component layer 
)


Member Data Documentation

Definition at line 83 of file StationManager.hpp.

Definition at line 82 of file StationManager.hpp.

Definition at line 84 of file StationManager.hpp.


The documentation for this class was generated from the following file:

Generated on Sat May 26 03:32:45 2012 for openWNS by  doxygen 1.5.5