User Manual, Developers Guide and API Documentation

glue::convergence::Upper< COMMAND > Class Template Reference

Used by IP for broadcast or unicast transmission. More...

#include <convergence/Upper.hpp>

Inheritance diagram for glue::convergence::Upper< COMMAND >:

Inheritance graph
[legend]
Collaboration diagram for glue::convergence::Upper< COMMAND >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef COMMAND Command

Public Member Functions

virtual
wns::service::dll::UnicastAddress 
getMACAddress () const
virtual void registerFlowHandler (wns::service::dll::FlowHandler *)
virtual void registerHandler (wns::service::dll::protocolNumber protocol, wns::service::dll::Handler *dh)
virtual void registerIRuleControl (wns::service::dll::IRuleControl *)
virtual void sendData (const typename Command::Address &targetMACAddress, const wns::osi::PDUPtr &sdu, wns::service::dll::protocolNumber protocol, int)
virtual void setMACAddress (const wns::service::dll::UnicastAddress &sourceMACAddress)
 Upper (wns::ldk::fun::FUN *fun, const wns::pyconfig::View &config)

Protected Attributes

wns::logger::Logger logger_
wns::service::dll::UnicastAddress sourceMACAddress_

Private Types

typedef
wns::container::Registry
< wns::service::dll::protocolNumber,
wns::service::dll::Handler * > 
DataHandlerRegistry
 Needed for demultiplexing of upper layer protocols.

Private Member Functions

virtual bool doIsAccepting (const wns::ldk::CompoundPtr &compound) const
virtual void doOnData (const wns::ldk::CompoundPtr &compound)
virtual void doSendData (const wns::ldk::CompoundPtr &compound)
virtual void doWakeup ()

Private Attributes

DataHandlerRegistry dataHandlerRegistry_
 Registry for datahandlers. Each datahandler is select by the protocol number.


Detailed Description

template<class COMMAND>
class glue::convergence::Upper< COMMAND >

This class can be configured to be either a broadcast or unicast unit and implements the methods which are equal for both.

Definition at line 107 of file Upper.hpp.


Member Typedef Documentation

template<class COMMAND>
typedef COMMAND glue::convergence::Upper< COMMAND >::Command

Definition at line 119 of file Upper.hpp.

Definition at line 189 of file Upper.hpp.


Constructor & Destructor Documentation

template<class COMMAND>
glue::convergence::Upper< COMMAND >::Upper ( wns::ldk::fun::FUN fun,
const wns::pyconfig::View config 
) [inline]

Definition at line 121 of file Upper.hpp.


Member Function Documentation

template<class COMMAND>
virtual bool glue::convergence::Upper< COMMAND >::doIsAccepting ( const wns::ldk::CompoundPtr compound  )  const [inline, private, virtual]

Definition at line 235 of file Upper.hpp.

template<class COMMAND>
virtual void glue::convergence::Upper< COMMAND >::doOnData ( const wns::ldk::CompoundPtr compound  )  [inline, private, virtual]

Definition at line 192 of file Upper.hpp.

template<class COMMAND>
virtual void glue::convergence::Upper< COMMAND >::doSendData ( const wns::ldk::CompoundPtr compound  )  [inline, private, virtual]

Definition at line 227 of file Upper.hpp.

template<class COMMAND>
virtual void glue::convergence::Upper< COMMAND >::doWakeup (  )  [inline, private, virtual]

Definition at line 241 of file Upper.hpp.

template<class COMMAND>
virtual wns::service::dll::UnicastAddress glue::convergence::Upper< COMMAND >::getMACAddress (  )  const [inline, virtual]

template<class COMMAND>
virtual void glue::convergence::Upper< COMMAND >::registerFlowHandler ( wns::service::dll::FlowHandler  )  [inline, virtual]

Implements wns::service::dll::Notification.

Definition at line 135 of file Upper.hpp.

template<class COMMAND>
virtual void glue::convergence::Upper< COMMAND >::registerHandler ( wns::service::dll::protocolNumber  protocol,
wns::service::dll::Handler dh 
) [inline, virtual]

Implements wns::service::dll::Notification.

Definition at line 141 of file Upper.hpp.

template<class COMMAND>
virtual void glue::convergence::Upper< COMMAND >::registerIRuleControl ( wns::service::dll::IRuleControl  )  [inline, virtual]

Implements wns::service::dll::Notification.

Definition at line 138 of file Upper.hpp.

template<class COMMAND>
virtual void glue::convergence::Upper< COMMAND >::sendData ( const typename Command::Address &  targetMACAddress,
const wns::osi::PDUPtr sdu,
wns::service::dll::protocolNumber  protocol,
int   
) [inline, virtual]

Definition at line 158 of file Upper.hpp.

template<class COMMAND>
virtual void glue::convergence::Upper< COMMAND >::setMACAddress ( const wns::service::dll::UnicastAddress sourceMACAddress  )  [inline, virtual]

Definition at line 152 of file Upper.hpp.


Member Data Documentation

template<class COMMAND>
DataHandlerRegistry glue::convergence::Upper< COMMAND >::dataHandlerRegistry_ [private]

Definition at line 250 of file Upper.hpp.

template<class COMMAND>
wns::logger::Logger glue::convergence::Upper< COMMAND >::logger_ [protected]

Definition at line 182 of file Upper.hpp.

template<class COMMAND>
wns::service::dll::UnicastAddress glue::convergence::Upper< COMMAND >::sourceMACAddress_ [protected]

Definition at line 183 of file Upper.hpp.


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

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