User Manual, Developers Guide and API Documentation

dll::services::control::Association Class Reference

Control Plane Service to handle associations.

#include <services/control/Association.hpp>

Inheritance diagram for dll::services::control::Association:

Inheritance graph
[legend]
Collaboration diagram for dll::services::control::Association:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Association (wns::ldk::ControlServiceRegistry *csr, const wns::pyconfig::View &config)
virtual ~Association ()
Association handling


void associate (dll::ILayer2 *slave, dll::ILayer2 *master)
 set association between source and a "master station" -- ILayer2* version
void associate (wns::service::dll::UnicastAddress slave, wns::service::dll::UnicastAddress master)
 set association between source and a "master station" -- address version
void releaseClient (wns::service::dll::UnicastAddress slave)
 release association of a slave station -- address version
void releaseClient (dll::ILayer2 *)
 release association of a slave station -- ILayer2* version
void releaseFromMaster ()
 release association to my "master station"
Methods to query about associations between dll::ILayer2 Instances


std::vector
< wns::service::dll::UnicastAddress
getAssociated ()
 return all my slave associations (i.e., all stations associated to me, may be 0..many)
wns::service::dll::UnicastAddress getAssociation ()
 return this stations association (master station)
bool hasAssociated (const wns::service::dll::UnicastAddress &slave) const
 does this master station have the associated client
bool hasAssociation ()
 does this station have an association (master station) ?

Private Member Functions

void registerAssociation (wns::service::dll::UnicastAddress slave, wns::service::dll::UnicastAddress master)
 add an association from a slave station to this

Private Attributes

wns::ldk::ControlServiceRegistrycsr_
wns::logger::Logger logger_
 list of observers to notify when association changes.
wns::service::dll::UnicastAddress masterStation_
 The station we are associated to.
std::string serviceName_
 The name this service is registered with.
std::list
< wns::service::dll::UnicastAddress
slaveStations_
 vector of all stations that are associated to us.
dll::StationManagerstationManager_
 Access to station manager for DLL->ILayer2*.


Detailed Description

Definition at line 90 of file Association.hpp.


Constructor & Destructor Documentation

Association::Association ( wns::ldk::ControlServiceRegistry csr,
const wns::pyconfig::View config 
)

Definition at line 41 of file Association.cpp.

virtual dll::services::control::Association::~Association (  )  [inline, virtual]

Definition at line 96 of file Association.hpp.


Member Function Documentation

void Association::associate ( dll::ILayer2 slave,
dll::ILayer2 master 
)

Definition at line 129 of file Association.cpp.

void Association::associate ( wns::service::dll::UnicastAddress  slave,
wns::service::dll::UnicastAddress  master 
)

Definition at line 109 of file Association.cpp.

std::vector< wns::service::dll::UnicastAddress > Association::getAssociated (  ) 

Definition at line 97 of file Association.cpp.

wns::service::dll::UnicastAddress Association::getAssociation (  ) 

Definition at line 53 of file Association.cpp.

bool Association::hasAssociated ( const wns::service::dll::UnicastAddress slave  )  const

Definition at line 66 of file Association.cpp.

bool Association::hasAssociation (  ) 

Definition at line 60 of file Association.cpp.

void Association::registerAssociation ( wns::service::dll::UnicastAddress  slave,
wns::service::dll::UnicastAddress  master 
) [private]

Definition at line 82 of file Association.cpp.

void Association::releaseClient ( wns::service::dll::UnicastAddress  slave  ) 

Definition at line 146 of file Association.cpp.

void Association::releaseClient ( dll::ILayer2 slave  ) 

Definition at line 156 of file Association.cpp.

void Association::releaseFromMaster (  ) 

Definition at line 136 of file Association.cpp.


Member Data Documentation

Definition at line 140 of file Association.hpp.

Logger for debug output

Definition at line 154 of file Association.hpp.

Definition at line 146 of file Association.hpp.

Definition at line 143 of file Association.hpp.

Definition at line 148 of file Association.hpp.

Definition at line 157 of file Association.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