Wiselib
Public Types | Public Member Functions | Protected Member Functions
wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P > Class Template Reference

DFS Clustering. More...

#include <dfsclustering.h>

List of all members.

Public Types

typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Timer_P Timer
typedef Debug_P Debug
typedef DfsClustering
< OsModel_P, Radio_P, Timer_P,
Debug_P > 
self_t
typedef int cluster_id_t
typedef int cluster_level_t
typedef Radio::node_id_t node_id_t
typedef Radio::size_t size_t
typedef Radio::block_data_t block_data_t
typedef wiselib::vector_static
< OsModel, node_id_t, 200 > 
vector_t
typedef delegate1< void, int > cluster_delegate_t

Public Member Functions

void set_theta (int theta)
cluster_level_t cluster_level ()
cluster_id_t cluster_id ()
bool cluster_head ()
node_id_t parent ()
size_t hops ()
template<class T , void(T::*)(int) TMethod>
int reg_changed_callback (T *obj_pnt)
void unreg_changed_callback (int idx)
void present_neighbors ()
int mess_join_req ()
int mess_join_deny ()
int mess_resume ()
int mess_neighbor_discovery ()
int mess_neighbor_reply ()
void enable (void)
void disable (void)
 DfsClustering ()
 ~DfsClustering ()
void init (Radio &radio, Timer &timer, Debug &debug)

Protected Member Functions

void discover_neighbors ()
void timer_expired (void *)
void receive (node_id_t receiver, size_t len, block_data_t *data)

Detailed Description

template<typename OsModel_P, typename Radio_P, typename Timer_P, typename Debug_P>
class wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >

DFS Clustering.


Member Typedef Documentation

template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Radio::block_data_t wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::block_data_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef delegate1<void, int> wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::cluster_delegate_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef int wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::cluster_id_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef int wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::cluster_level_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Debug_P wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::Debug
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Radio::node_id_t wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::node_id_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef OsModel_P wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::OsModel
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Radio_P wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::Radio
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef DfsClustering<OsModel_P, Radio_P, Timer_P, Debug_P> wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::self_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Radio::size_t wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::size_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Timer_P wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::Timer
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef wiselib::vector_static<OsModel, node_id_t, 200 > wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::vector_t

Constructor & Destructor Documentation

template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::DfsClustering ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::~DfsClustering ( ) [inline]

Member Function Documentation

template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
bool wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::cluster_head ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
cluster_id_t wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::cluster_id ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
cluster_level_t wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::cluster_level ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::disable ( void  )
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::discover_neighbors ( void  ) [protected]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::enable ( void  )
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
size_t wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::hops ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::init ( Radio radio,
Timer timer,
Debug debug 
) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
int wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::mess_join_deny ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
int wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::mess_join_req ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
int wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::mess_neighbor_discovery ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
int wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::mess_neighbor_reply ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
int wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::mess_resume ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
node_id_t wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::parent ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::present_neighbors ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::receive ( node_id_t  receiver,
size_t  len,
block_data_t data 
) [protected]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<class T , void(T::*)(int) TMethod>
int wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::reg_changed_callback ( T *  obj_pnt) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::set_theta ( int  theta) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::timer_expired ( void *  data) [protected]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::DfsClustering< OsModel_P, Radio_P, Timer_P, Debug_P >::unreg_changed_callback ( int  idx) [inline]

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