Wiselib
Public Types | Public Member Functions
wiselib::MaxmindClusterHeadDecision< OsModel_P > Class Template Reference

MaxMinD cluster head decision module. More...

#include <maxmind_chd.h>

List of all members.

Public Types

typedef OsModel_P OsModel
typedef OsModel::Radio Radio
typedef OsModel::Debug Debug
typedef int cluster_id_t
typedef Radio::node_id_t node_id_t
typedef delegate1< void,
node_id_t * > 
chd_delegate_t

Public Member Functions

 MaxmindClusterHeadDecision ()
 ~MaxmindClusterHeadDecision ()
void init (Radio &radio, Debug &debug)
bool calculate_head ()
bool is_cluster_head (void)
cluster_id_t cluster_id ()
node_id_t parent ()
void set_theta (int theta)
void set_id (node_id_t id)
template<class T , void(T::*)(node_id_t *) TMethod>
int reg_winner_callback (T *obj_pnt)
void unreg_winner_callback (int idx)
template<class T , void(T::*)(node_id_t *) TMethod>
int reg_sender_callback (T *obj_pnt)
void unreg_sender_callback (int idx)
void enable ()

Detailed Description

template<typename OsModel_P>
class wiselib::MaxmindClusterHeadDecision< OsModel_P >

MaxMinD cluster head decision module.


Member Typedef Documentation

template<typename OsModel_P >
typedef delegate1<void, node_id_t*> wiselib::MaxmindClusterHeadDecision< OsModel_P >::chd_delegate_t
template<typename OsModel_P >
typedef int wiselib::MaxmindClusterHeadDecision< OsModel_P >::cluster_id_t
template<typename OsModel_P >
typedef OsModel::Debug wiselib::MaxmindClusterHeadDecision< OsModel_P >::Debug
template<typename OsModel_P >
typedef Radio::node_id_t wiselib::MaxmindClusterHeadDecision< OsModel_P >::node_id_t
template<typename OsModel_P >
typedef OsModel_P wiselib::MaxmindClusterHeadDecision< OsModel_P >::OsModel
template<typename OsModel_P >
typedef OsModel::Radio wiselib::MaxmindClusterHeadDecision< OsModel_P >::Radio

Constructor & Destructor Documentation

template<typename OsModel_P >
wiselib::MaxmindClusterHeadDecision< OsModel_P >::MaxmindClusterHeadDecision ( ) [inline]
template<typename OsModel_P >
wiselib::MaxmindClusterHeadDecision< OsModel_P >::~MaxmindClusterHeadDecision ( ) [inline]

Member Function Documentation

template<typename OsModel_P >
bool wiselib::MaxmindClusterHeadDecision< OsModel_P >::calculate_head ( ) [inline]
template<typename OsModel_P >
cluster_id_t wiselib::MaxmindClusterHeadDecision< OsModel_P >::cluster_id ( void  ) [inline]
template<typename OsModel_P >
void wiselib::MaxmindClusterHeadDecision< OsModel_P >::enable ( void  ) [inline]
template<typename OsModel_P >
void wiselib::MaxmindClusterHeadDecision< OsModel_P >::init ( Radio radio,
Debug debug 
) [inline]
template<typename OsModel_P >
bool wiselib::MaxmindClusterHeadDecision< OsModel_P >::is_cluster_head ( void  ) [inline]
template<typename OsModel_P >
node_id_t wiselib::MaxmindClusterHeadDecision< OsModel_P >::parent ( void  ) [inline]
template<typename OsModel_P >
template<class T , void(T::*)(node_id_t *) TMethod>
int wiselib::MaxmindClusterHeadDecision< OsModel_P >::reg_sender_callback ( T *  obj_pnt) [inline]
template<typename OsModel_P >
template<class T , void(T::*)(node_id_t *) TMethod>
int wiselib::MaxmindClusterHeadDecision< OsModel_P >::reg_winner_callback ( T *  obj_pnt) [inline]
template<typename OsModel_P >
void wiselib::MaxmindClusterHeadDecision< OsModel_P >::set_id ( node_id_t  id) [inline]
template<typename OsModel_P >
void wiselib::MaxmindClusterHeadDecision< OsModel_P >::set_theta ( int  theta) [inline]
template<typename OsModel_P >
void wiselib::MaxmindClusterHeadDecision< OsModel_P >::unreg_sender_callback ( int  idx) [inline]
template<typename OsModel_P >
void wiselib::MaxmindClusterHeadDecision< OsModel_P >::unreg_winner_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