Wiselib
|
MaxMinD cluster head decision module. More...
#include <maxmind_chd.h>
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 () |
MaxMinD cluster head decision module.
typedef delegate1<void, node_id_t*> wiselib::MaxmindClusterHeadDecision< OsModel_P >::chd_delegate_t |
typedef int wiselib::MaxmindClusterHeadDecision< OsModel_P >::cluster_id_t |
typedef OsModel::Debug wiselib::MaxmindClusterHeadDecision< OsModel_P >::Debug |
typedef Radio::node_id_t wiselib::MaxmindClusterHeadDecision< OsModel_P >::node_id_t |
typedef OsModel_P wiselib::MaxmindClusterHeadDecision< OsModel_P >::OsModel |
typedef OsModel::Radio wiselib::MaxmindClusterHeadDecision< OsModel_P >::Radio |
wiselib::MaxmindClusterHeadDecision< OsModel_P >::MaxmindClusterHeadDecision | ( | ) | [inline] |
wiselib::MaxmindClusterHeadDecision< OsModel_P >::~MaxmindClusterHeadDecision | ( | ) | [inline] |
bool wiselib::MaxmindClusterHeadDecision< OsModel_P >::calculate_head | ( | ) | [inline] |
cluster_id_t wiselib::MaxmindClusterHeadDecision< OsModel_P >::cluster_id | ( | void | ) | [inline] |
void wiselib::MaxmindClusterHeadDecision< OsModel_P >::enable | ( | void | ) | [inline] |
void wiselib::MaxmindClusterHeadDecision< OsModel_P >::init | ( | Radio & | radio, |
Debug & | debug | ||
) | [inline] |
bool wiselib::MaxmindClusterHeadDecision< OsModel_P >::is_cluster_head | ( | void | ) | [inline] |
node_id_t wiselib::MaxmindClusterHeadDecision< OsModel_P >::parent | ( | void | ) | [inline] |
int wiselib::MaxmindClusterHeadDecision< OsModel_P >::reg_sender_callback | ( | T * | obj_pnt | ) | [inline] |
int wiselib::MaxmindClusterHeadDecision< OsModel_P >::reg_winner_callback | ( | T * | obj_pnt | ) | [inline] |
void wiselib::MaxmindClusterHeadDecision< OsModel_P >::set_id | ( | node_id_t | id | ) | [inline] |
void wiselib::MaxmindClusterHeadDecision< OsModel_P >::set_theta | ( | int | theta | ) | [inline] |
void wiselib::MaxmindClusterHeadDecision< OsModel_P >::unreg_sender_callback | ( | int | idx | ) | [inline] |
void wiselib::MaxmindClusterHeadDecision< OsModel_P >::unreg_winner_callback | ( | int | idx | ) | [inline] |