![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <Layer2.hpp>


Public Member Functions | |
| void | addAssociationInfoProvider (const std::string &id, dll::services::control::AssociationInfo *provider) |
| const AssociationInfoContainer & | getAssociationInfoProvider (const std::string &id) const |
| wns::service::dll::UnicastAddress | getDLLAddress () const |
| Access to the DLL Address. | |
| wns::ldk::fun::FUN * | getFUN () 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::Interface * | getNode () const |
| Deliver pointer to the Node this component belongs to. | |
| virtual StationManager * | getStationManager () |
| 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 &) | |
| Layer2 & | operator= (const Layer2 &) |
Protected Attributes | |
| wns::service::dll::UnicastAddress | address |
| This station's MAC Address. | |
| ContextAgent | agent |
| AssociationInfoRegistry | air |
| wns::pyconfig::View | config |
| dll::UpperConvergence * | dllUpperConvergence |
| wns::ldk::fun::Main * | fun |
| 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. | |
| StationManager * | stationManager |
| 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... | |
Definition at line 113 of file Layer2.hpp.
| Layer2::Layer2 | ( | wns::node::Interface * | _node, | |
| const wns::pyconfig::View & | _config, | |||
| StationManager * | sm | |||
| ) |
Definition at line 48 of file Layer2.cpp.
| Layer2::~Layer2 | ( | ) | [virtual] |
| dll::Layer2::Layer2 | ( | const Layer2 & | ) | [protected] |
| void Layer2::addAssociationInfoProvider | ( | const std::string & | id, | |
| dll::services::control::AssociationInfo * | provider | |||
| ) | [virtual] |
| 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] |
| wns::service::dll::UnicastAddress Layer2::getDLLAddress | ( | ) | const [virtual] |
| wns::ldk::fun::FUN* dll::Layer2::getFUN | ( | ) | const [inline, virtual] |
| Layer2::StationIDType Layer2::getID | ( | ) | const [virtual] |
| std::string Layer2::getName | ( | ) | const [virtual] |
| virtual wns::node::Interface* dll::Layer2::getNode | ( | ) | const [inline, virtual] |
| StationManager * Layer2::getStationManager | ( | ) | [virtual] |
| Layer2::StationType Layer2::getStationType | ( | ) | const [virtual] |
| void dll::Layer2::setContext | ( | const std::string & | key, | |
| int | value | |||
| ) | [inline, virtual] |
| void dll::Layer2::updateContext | ( | const std::string & | key, | |
| int | value | |||
| ) | [inline, virtual] |
Definition at line 191 of file Layer2.hpp.
ContextAgent dll::Layer2::agent [protected] |
Definition at line 254 of file Layer2.hpp.
AssociationInfoRegistry dll::Layer2::air [protected] |
Definition at line 210 of file Layer2.hpp.
wns::pyconfig::View dll::Layer2::config [protected] |
Definition at line 180 of file Layer2.hpp.
dll::UpperConvergence* dll::Layer2::dllUpperConvergence [protected] |
Definition at line 177 of file Layer2.hpp.
wns::ldk::fun::Main* dll::Layer2::fun [protected] |
Definition at line 179 of file Layer2.hpp.
wns::logger::Logger dll::Layer2::logger [protected] |
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)
Definition at line 207 of file Layer2.hpp.
StationIDType dll::Layer2::stationID [protected] |
Definition at line 186 of file Layer2.hpp.
StationManager* dll::Layer2::stationManager [protected] |
Definition at line 183 of file Layer2.hpp.
StationType dll::Layer2::type [protected] |
Definition at line 188 of file Layer2.hpp.
1.5.5