User Manual, Developers Guide and API Documentation

dll::Layer2 Class Reference

The DLL Component Base Class. More...

#include <Layer2.hpp>

Inheritance diagram for dll::Layer2:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

void addAssociationInfoProvider (const std::string &id, dll::services::control::AssociationInfo *provider)
const AssociationInfoContainergetAssociationInfoProvider (const std::string &id) const
wns::service::dll::UnicastAddress getDLLAddress () const
 Access to the DLL Address.
wns::ldk::fun::FUNgetFUN () const
 Access the internal FUN.
StationIDType getID () const
 Access to the internal ID.
virtual std::string getName () const
 Access the Station Name. This method is deprecated - it is recommended to use the node's getName() instead.
virtual wns::node::InterfacegetNode () const
 Deliver pointer to the Node this component belongs to.
virtual StationManagergetStationManager ()
 Access to the StationManager.
StationType getStationType () const
 Access the stationType.
 Layer2 (wns::node::Interface *, const wns::pyconfig::View &, StationManager *sm)
 Constructor.
void setContext (const std::string &key, int value)
void updateContext (const std::string &key, int value)
virtual ~Layer2 ()
 Destructor.

Protected Member Functions

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

Protected Attributes

wns::service::dll::UnicastAddress address
 This station's MAC Address.
ContextAgent agent
AssociationInfoRegistry air
wns::pyconfig::View config
dll::UpperConvergencedllUpperConvergence
wns::ldk::fun::Mainfun
wns::logger::Logger logger
unsigned long int ring
 Distance measure from the associated BS to be used as probe instance id.
StationIDType stationID
 Internal ID of this Station.
StationManagerstationManager
StationType type
 Identifies this station as AP,FRS,UT,...

Classes

class  ContextAgent
 ContextAgent concentrates context information from Members of the Layer2 or its internal FUN. More...


Detailed Description

Inherited by the WinProSt and WiMAC Data Link Layers. This class is mainly the container for the Functional Unit Network (FUN).

Definition at line 113 of file Layer2.hpp.


Constructor & Destructor Documentation

Layer2::Layer2 ( wns::node::Interface _node,
const wns::pyconfig::View _config,
StationManager sm 
)

Definition at line 48 of file Layer2.cpp.

Layer2::~Layer2 (  )  [virtual]

Reimplemented in lte::main::Layer2, and wifimac::Layer2.

Definition at line 137 of file Layer2.cpp.

dll::Layer2::Layer2 ( const Layer2  )  [protected]


Member Function Documentation

void Layer2::addAssociationInfoProvider ( const std::string &  id,
dll::services::control::AssociationInfo provider 
) [virtual]

Implements dll::ILayer2.

Definition at line 177 of file Layer2.cpp.

void Layer2::doStartup (  )  [protected, virtual]

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

Reimplemented in lte::main::Layer2, wifimac::Layer2, and wimemac::Component.

Definition at line 65 of file Layer2.cpp.

const Layer2::AssociationInfoContainer & Layer2::getAssociationInfoProvider ( const std::string &  id  )  const [virtual]

Implements dll::ILayer2.

Definition at line 191 of file Layer2.cpp.

wns::service::dll::UnicastAddress Layer2::getDLLAddress (  )  const [virtual]

Implements dll::ILayer2.

Definition at line 152 of file Layer2.cpp.

wns::ldk::fun::FUN* dll::Layer2::getFUN (  )  const [inline, virtual]

Implements dll::ILayer2.

Definition at line 139 of file Layer2.hpp.

Layer2::StationIDType Layer2::getID (  )  const [virtual]

Implements dll::ILayer2.

Definition at line 146 of file Layer2.cpp.

std::string Layer2::getName (  )  const [virtual]

Reimplemented from wns::node::component::Component.

Definition at line 159 of file Layer2.cpp.

virtual wns::node::Interface* dll::Layer2::getNode (  )  const [inline, virtual]

Reimplemented from wns::node::component::Component.

Definition at line 151 of file Layer2.hpp.

StationManager * Layer2::getStationManager (  )  [virtual]

Implements dll::ILayer2.

Definition at line 171 of file Layer2.cpp.

Layer2::StationType Layer2::getStationType (  )  const [virtual]

Implements dll::ILayer2.

Definition at line 165 of file Layer2.cpp.

Layer2& dll::Layer2::operator= ( const Layer2  )  [protected]

void dll::Layer2::setContext ( const std::string &  key,
int  value 
) [inline, virtual]

Implements dll::ILayer2.

Definition at line 166 of file Layer2.hpp.

void dll::Layer2::updateContext ( const std::string &  key,
int  value 
) [inline, virtual]

Implements dll::ILayer2.

Definition at line 160 of file Layer2.hpp.


Member Data Documentation

Definition at line 191 of file Layer2.hpp.

Definition at line 254 of file Layer2.hpp.

Definition at line 210 of file Layer2.hpp.

Definition at line 180 of file Layer2.hpp.

Definition at line 177 of file Layer2.hpp.

Definition at line 179 of file Layer2.hpp.

Definition at line 181 of file Layer2.hpp.

unsigned long int dll::Layer2::ring [protected]

For a AP, ring is always 0 For a FRS, ring is always the ring of the next station in uplink + 2 For a UT, ring is always the ring of the RAP + 1

AP(1) <--> FRS(3) <--> FRS(5) <--> UT(6) ^ ^ ^ | | | v v v UT(2) UT(4) UT(6)

Todo:
should use Enum.

Definition at line 207 of file Layer2.hpp.

Definition at line 186 of file Layer2.hpp.

Definition at line 183 of file Layer2.hpp.

Definition at line 188 of file Layer2.hpp.


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

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