Wiselib
Classes | Public Types | Public Member Functions | Static Public Member Functions
wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P > Class Template Reference

K-neigh symmetric topology control implementation of Topology ConceptK-neigh symmetric topology control implementation of Topology Concept. More...

#include <xtc_topology_control.h>

Inherits wiselib::TopologyBase< OsModel_P >.

List of all members.

Classes

struct  Neighbor

Public Types

typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Timer_P Timer
typedef XTCProtocol< OsModel_P,
MAX_NODES, Radio_P, Timer_P > 
self_type
typedef Radio::node_id_t node_id_t
typedef Radio::size_t size_t
typedef Radio::block_data_t block_data_t
typedef Radio::ExtendedData ExtendedData
typedef Timer::millis_t millis_t
typedef vector_static< OsModel,
Neighbor, MAX_NODES > 
Order
typedef vector_static< OsModel,
node_id_t, MAX_NODES > 
Neighbors
typedef Neighbors VOrders [MAX_NODES]
typedef delegate0< void > topology_delegate_t

Public Member Functions

Neighborstopology ()
void set_delta (millis_t const delta=s_delta_def)
millis_t delta () const
void init (Radio &radio, Timer &timer)
void destruct ()
template<class T , void(T::*)() TMethod>
void reg_listener_callback (T *obj_pnt)
template<void(*)() TMethod>
void reg_listener_callback ()
void unreg_listener_callback (void)
void notify_listeners ()
Construction / Destruction
 XTCProtocol ()
Routing Control
void enable ()
void disable ()
Methods called by Timer
void timer0 (void *const userdata)
void timer1 (void *const userdata)
void timer2 (void *const userdata)
void timer3 (void *const userdata)
Methods called by RadioModel
void receive (node_id_t from, size_t len, block_data_t *data, ExtendedData const &ext)

Static Public Member Functions

static void set_default_delta (millis_t const delta=DELTA_DEF)
static millis_t default_delta ()

Detailed Description

template<class OsModel_P, typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
class wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >

K-neigh symmetric topology control implementation of Topology Concept

K-neigh symmetric topology control implementation of Topology Concept.


Member Typedef Documentation

template<class OsModel_P , typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
typedef Radio::block_data_t wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::block_data_t
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
typedef Radio::ExtendedData wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::ExtendedData
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
typedef Timer::millis_t wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::millis_t
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
typedef vector_static<OsModel,node_id_t,MAX_NODES> wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::Neighbors
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
typedef Radio::node_id_t wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::node_id_t
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
typedef vector_static<OsModel,Neighbor,MAX_NODES> wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::Order
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
typedef OsModel_P wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::OsModel
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
typedef Radio_P wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::Radio
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
typedef XTCProtocol<OsModel_P, MAX_NODES, Radio_P, Timer_P> wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::self_type
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
typedef Radio::size_t wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::size_t
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
typedef Timer_P wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::Timer
template<typename OsModel_P >
typedef delegate0<void> wiselib::TopologyBase< OsModel_P >::topology_delegate_t [inherited]
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
typedef Neighbors wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::VOrders[MAX_NODES]

Constructor & Destructor Documentation

template<class OsModel_P , typename OsModel_P::size_t MAX_NODES, class Radio_P , class Timer_P >
wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::XTCProtocol ( )

Member Function Documentation

template<class OsModel_P , typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
static millis_t wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::default_delta ( ) [inline, static]
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
millis_t wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::delta ( ) const [inline]
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
void wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::destruct ( void  ) [inline]
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES, class Radio_P , class Timer_P >
void wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::disable ( void  )
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES, class Radio_P , class Timer_P >
void wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::enable ( void  )
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
void wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::init ( Radio radio,
Timer timer 
) [inline]
template<typename OsModel_P >
void wiselib::TopologyBase< OsModel_P >::notify_listeners ( ) [inline, inherited]
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES, class Radio_P , class Timer_P >
void wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::receive ( node_id_t  from,
size_t  len,
block_data_t data,
ExtendedData const &  ext 
)
template<typename OsModel_P >
template<void(*)() TMethod>
void wiselib::TopologyBase< OsModel_P >::reg_listener_callback ( ) [inline, inherited]
template<typename OsModel_P >
template<class T , void(T::*)() TMethod>
void wiselib::TopologyBase< OsModel_P >::reg_listener_callback ( T *  obj_pnt) [inline, inherited]
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
static void wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::set_default_delta ( millis_t const  delta = DELTA_DEF) [inline, static]
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES = 32, class Radio_P = typename OsModel_P::Radio, class Timer_P = typename OsModel_P::Timer>
void wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::set_delta ( millis_t const  delta = s_delta_def) [inline]
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES, class Radio_P , class Timer_P >
void wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::timer0 ( void *const  userdata)
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES, class Radio_P , class Timer_P >
void wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::timer1 ( void *const  userdata)
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES, class Radio_P , class Timer_P >
void wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::timer2 ( void *const  userdata)
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES, class Radio_P , class Timer_P >
void wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::timer3 ( void *const  userdata)
template<class OsModel_P , typename OsModel_P::size_t MAX_NODES, class Radio_P , class Timer_P >
XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::Neighbors & wiselib::XTCProtocol< OsModel_P, MAX_NODES, Radio_P, Timer_P >::topology ( )
template<typename OsModel_P >
void wiselib::TopologyBase< OsModel_P >::unreg_listener_callback ( void  ) [inline, inherited]

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