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

Secured DFS Clustering. More...

#include <securedfsclustering.h>

List of all members.

Public Types

enum  EventIds { CLUSTER_HEAD_CHANGED = 0, NODE_JOINED = 1, NODE_LEFT = 2 }
enum  ClusterIds { UNKNOWN_CLUSTER_HEAD = 0 }
typedef int cluster_id_t
typedef int cluster_level_t
typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Timer_P Timer
typedef SecureDfsClustering
< OsModel_P, Radio_P > 
self_t
typedef Radio::node_id_t node_id_t
typedef Radio::size_t size_t
typedef Radio::block_data_t block_data_t
typedef SecureDFSMessage
< OsModel, Radio
Message
typedef delegate1< void, int > cluster_delegate_t

Public Member Functions

void enable ()
void disable ()
cluster_id_t cluster_id (cluster_level_t)
cluster_level_t cluster_level ()
template<class T , void(T::*)(int) TMethod>
int reg_changed_callback (T *obj_pnt)
void unreg_changed_callback (int idx)
void set_cluster_head (bool cluster_head)
bool cluster_head ()
node_id_t parent ()
int * group_key_x ()
int * group_key_y ()
Construction / Destruction
 SecureDfsClustering ()
 :137: err
 ~SecureDfsClustering ()

Protected Member Functions

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

Detailed Description

template<typename OsModel_P, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
class wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >

Secured DFS Clustering.


Member Typedef Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef Radio::block_data_t wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::block_data_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef delegate1<void, int> wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::cluster_delegate_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef int wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::cluster_id_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef int wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::cluster_level_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef SecureDFSMessage<OsModel, Radio> wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::Message
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef Radio::node_id_t wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::node_id_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef OsModel_P wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::OsModel
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef Radio_P wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::Radio
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef SecureDfsClustering<OsModel_P, Radio_P> wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::self_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef Radio::size_t wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::size_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef Timer_P wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::Timer

Member Enumeration Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
enum wiselib::SecureDfsClustering::ClusterIds
Enumerator:
UNKNOWN_CLUSTER_HEAD 
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
enum wiselib::SecureDfsClustering::EventIds
Enumerator:
CLUSTER_HEAD_CHANGED 
NODE_JOINED 
NODE_LEFT 

Constructor & Destructor Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::SecureDfsClustering ( ) [inline]

:137: err

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::~SecureDfsClustering ( ) [inline]

Member Function Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
bool wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::cluster_head ( ) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
cluster_id_t wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::cluster_id ( cluster_level_t  ) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
cluster_level_t wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::cluster_level ( ) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
void wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::disable ( )
template<typename OsModel_P , typename Radio_P , typename Timer_P >
void wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::discover_neighbors ( void  ) [protected]
template<typename OsModel_P , typename Radio_P , typename Timer_P >
void wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::enable ( void  )
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
int* wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::group_key_x ( ) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
int* wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::group_key_y ( ) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
node_id_t wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::parent ( void  ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P >
void wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::receive ( node_id_t  from,
size_t  len,
block_data_t data 
) [protected]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
template<class T , void(T::*)(int) TMethod>
int wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::reg_changed_callback ( T *  obj_pnt) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
void wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::set_cluster_head ( bool  cluster_head) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P >
void wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_P >::timer_expired ( void *  data) [protected]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
void wiselib::SecureDfsClustering< OsModel_P, Radio_P, Timer_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