Wiselib
Public Types | Public Member Functions
wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P > Class Template Reference

DSR routing implementation of Routing Concept. More...

#include <dsr_routing.h>

Inherits wiselib::RoutingBase< OsModel_P, Radio_P >.

List of all members.

Public Types

enum  ErrorCodes { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC, ERR_NOTIMPL = OsModel::ERR_NOTIMPL, ERR_BUSY = OsModel::ERR_BUSY }
enum  SpecialNodeIds { BROADCAST_ADDRESS = Radio_P::BROADCAST_ADDRESS, NULL_NODE_ID = Radio_P::NULL_NODE_ID }
enum  Restrictions { MAX_MESSAGE_LENGTH = Radio_P::MAX_MESSAGE_LENGTH }
typedef OsModel_P OsModel
typedef Radio_P Radio
typedef OsModel::Timer Timer
typedef OsModel::Debug Debug
typedef RoutingTable_P RoutingTable
typedef RoutingTable::iterator RoutingTableIterator
typedef RoutingTable::mapped_type RoutingTableValue
typedef RoutingTable::value_type RoutingTableEntry
typedef RoutingTableValue::Path Path
typedef Path::iterator PathIterator
typedef DsrRouting< OsModel,
RoutingTable, Radio
self_type
typedef self_typeself_pointer_t
typedef Radio::node_id_t node_id_t
typedef Radio::size_t size_t
typedef Radio::block_data_t block_data_t
typedef Radio::message_id_t message_id_t
typedef Timer::millis_t millis_t
typedef
DsrRouteDiscoveryMessage
< OsModel, Radio, Path
RouteDiscoveryMessage
typedef DsrRoutingMessage
< OsModel, Radio, Path
RoutingMessage
enum  ReturnValues
typedef delegate3< void,
node_id_t, size_t,
block_data_t * > 
radio_delegate_t
typedef vector_static< OsModel,
radio_delegate_t,
MAX_RECEIVERS > 
CallbackVector
typedef CallbackVector::iterator CallbackVectorIterator

Public Member Functions

int init (Radio &radio, Timer &timer, Debug &debug)
int init ()
int destruct ()
int reg_recv_callback (T *obj_pnt)
int unreg_recv_callback (int idx)
void notify_receivers (node_id_t from, size_t len, block_data_t *data)
Construction / Destruction
 DsrRouting ()
 ~DsrRouting ()
Routing Control
int enable_radio (void)
int disable_radio (void)
Methods called by Timer
void timer_elapsed (void *userdata)
Radio Concept
int send (node_id_t receiver, size_t len, block_data_t *data)
void receive (node_id_t from, size_t len, block_data_t *data)
Radio::node_id_t id ()

Detailed Description

template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
class wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >

DSR routing implementation of Routing Concept.

DSR routing implementation of Routing Concept ...


Member Typedef Documentation

template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef Radio::block_data_t wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::block_data_t
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef OsModel::Debug wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::Debug
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef Radio::message_id_t wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::message_id_t
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef Timer::millis_t wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::millis_t
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef Radio::node_id_t wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::node_id_t
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef OsModel_P wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::OsModel
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef RoutingTableValue::Path wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::Path
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef Path::iterator wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::PathIterator
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef Radio_P wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::Radio
typedef delegate3<void, node_id_t, size_t, block_data_t*> wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::radio_delegate_t [inherited]
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef DsrRouteDiscoveryMessage<OsModel, Radio, Path> wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::RouteDiscoveryMessage
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef DsrRoutingMessage<OsModel, Radio, Path> wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::RoutingMessage
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef RoutingTable_P wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::RoutingTable
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef RoutingTable::value_type wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::RoutingTableEntry
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef RoutingTable::iterator wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::RoutingTableIterator
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef RoutingTable::mapped_type wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::RoutingTableValue
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef self_type* wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::self_pointer_t
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef DsrRouting<OsModel, RoutingTable, Radio> wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::self_type
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef Radio::size_t wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::size_t
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
typedef OsModel::Timer wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::Timer

Member Enumeration Documentation

template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
enum wiselib::DsrRouting::ErrorCodes
Enumerator:
SUCCESS 
ERR_UNSPEC 
ERR_NOTIMPL 
ERR_BUSY 
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
enum wiselib::DsrRouting::Restrictions
Enumerator:
MAX_MESSAGE_LENGTH 

Maximal number of bytes in payload.

template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
enum wiselib::DsrRouting::SpecialNodeIds
Enumerator:
BROADCAST_ADDRESS 

All nodes in communication range.

NULL_NODE_ID 

Unknown/No node id.


Constructor & Destructor Documentation

template<typename OsModel_P , typename RoutingTable_P , typename Radio_P >
wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::DsrRouting ( )
template<typename OsModel_P , typename RoutingTable_P , typename Radio_P >
wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::~DsrRouting ( )

Member Function Documentation

template<typename OsModel_P , typename RoutingTable_P , typename Radio_P >
int wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::destruct ( void  ) [inline]
template<typename OsModel_P , typename RoutingTable_P , typename Radio_P >
int wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::disable_radio ( void  )
template<typename OsModel_P , typename RoutingTable_P , typename Radio_P >
int wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::enable_radio ( void  )
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
Radio::node_id_t wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::id ( ) [inline]
template<typename OsModel_P , typename RoutingTable_P , typename Radio_P >
int wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::init ( void  ) [inline]
template<typename OsModel_P, typename RoutingTable_P, typename Radio_P = typename OsModel_P::Radio>
int wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::init ( Radio radio,
Timer timer,
Debug debug 
) [inline]
void wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::notify_receivers ( node_id_t  from,
size_t  len,
block_data_t data 
) [inline, inherited]
template<typename OsModel_P , typename RoutingTable_P , typename Radio_P >
void wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::receive ( node_id_t  from,
size_t  len,
block_data_t data 
)
int wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::reg_recv_callback ( T *  obj_pnt) [inline, inherited]
template<typename OsModel_P , typename RoutingTable_P , typename Radio_P >
int wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::send ( node_id_t  receiver,
size_t  len,
block_data_t data 
)
template<typename OsModel_P , typename RoutingTable_P , typename Radio_P >
void wiselib::DsrRouting< OsModel_P, RoutingTable_P, Radio_P >::timer_elapsed ( void *  userdata)
int wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::unreg_recv_callback ( int  idx) [inline, inherited]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines