User Manual, Developers Guide and API Documentation

wifimac::Layer2 Class Reference

Basis component of the WiFiMAC. More...

#include <Layer2.hpp>

Inheritance diagram for wifimac::Layer2:

Inheritance graph
[legend]
Collaboration diagram for wifimac::Layer2:

Collaboration graph
[legend]

List of all members.

Public Member Functions

bool isTransceiverMAC (wns::service::dll::UnicastAddress address)
 Queries the registered transceiver list.
 Layer2 (wns::node::Interface *, const wns::pyconfig::View &)
virtual void onNodeCreated ()
 Called by the parent node after all components of the parent node have been created.
virtual void onShutdown ()
 Called by the parent node after simulation end event occured.
virtual void onWorldCreated ()
 Called by the parent node after all nodes have been setup and all components have executed onNodeCreated().
void registerManager (wifimac::lowerMAC::Manager *manager, wns::service::dll::UnicastAddress address)
 Registration of transceiver management entity.
virtual ~Layer2 ()
 Destructor.

Private Types

typedef
wns::container::Registry
< wns::service::dll::UnicastAddress,
wifimac::lowerMAC::Manager * > 
ManagerRegistry

Private Member Functions

virtual void doStartup ()
 Virtual backend of startup().
 Layer2 (const Layer2 &)
Layer2operator= (const Layer2 &)

Private Attributes

wns::logger::Logger logger_
 Logging.
ManagerRegistry managers_
 Holds all management entities.


Detailed Description

Allows multiple transceivers, each consisting of a lower MAC, a convergence and a OFDM-based radio.

Each transceiver must contain the FU wifimac::lowerMAC::Manager. This FU registers when onFUNCreated() is called at the Layer2, together with its unique MAC-address of type wns::service::dll::UnicastAddress. Furthermore, this manager hides the multi-transceiver structure from all other FUs from its transceivers and provides methods to get the appropriate MAC address and to build frames emerging from this transceiver.

Definition at line 62 of file Layer2.hpp.


Member Typedef Documentation

Definition at line 66 of file Layer2.hpp.


Constructor & Destructor Documentation

wifimac::Layer2::Layer2 ( wns::node::Interface ,
const wns::pyconfig::View  
)

virtual wifimac::Layer2::~Layer2 (  )  [inline, virtual]

Reimplemented from dll::Layer2.

Definition at line 69 of file Layer2.hpp.

wifimac::Layer2::Layer2 ( const Layer2  )  [private]


Member Function Documentation

virtual void wifimac::Layer2::doStartup (  )  [private, virtual]

Reimplemented from dll::Layer2.

bool wifimac::Layer2::isTransceiverMAC ( wns::service::dll::UnicastAddress  address  ) 

virtual void wifimac::Layer2::onNodeCreated (  )  [virtual]

Note:
Intra-Node dependencies like connecting components within the node to each other must be handled here. It is forbidden to try to resolve dependencies to other nodes here. Not all nodes have been setup yet.

Implements wns::node::component::Interface.

virtual void wifimac::Layer2::onShutdown (  )  [virtual]

virtual void wifimac::Layer2::onWorldCreated (  )  [virtual]

Note:
Resolve Inter-Node dependencies here. There are no restrictions on what you do here.

Implements wns::node::component::Interface.

Layer2& wifimac::Layer2::operator= ( const Layer2  )  [private]

void wifimac::Layer2::registerManager ( wifimac::lowerMAC::Manager manager,
wns::service::dll::UnicastAddress  address 
)


Member Data Documentation

Definition at line 92 of file Layer2.hpp.

Definition at line 95 of file Layer2.hpp.


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

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