Wiselib
|
LEACH cluster head decision module. More...
#include <leach_chd.h>
Public Types | |
typedef OsModel_P | OsModel |
typedef OsModel::Radio | Radio |
typedef OsModel::Debug | Debug |
typedef OsModel::Rand | Rand |
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 delegate1< int, int * > | chd_delegate_t |
Public Member Functions | |
LeachClusterHeadDecision () | |
~LeachClusterHeadDecision () | |
void | init (Radio &radio, Debug &debug) |
void | set_id (node_id_t id) |
void | set_probability (int prob) |
bool | is_cluster_head (void) |
void | enable () |
void | disable () |
bool | calculate_head () |
LEACH cluster head decision module.
typedef Radio::block_data_t wiselib::LeachClusterHeadDecision< OsModel_P >::block_data_t |
typedef delegate1<int, int*> wiselib::LeachClusterHeadDecision< OsModel_P >::chd_delegate_t |
typedef int wiselib::LeachClusterHeadDecision< OsModel_P >::cluster_id_t |
typedef int wiselib::LeachClusterHeadDecision< OsModel_P >::cluster_level_t |
typedef OsModel::Debug wiselib::LeachClusterHeadDecision< OsModel_P >::Debug |
typedef Radio::node_id_t wiselib::LeachClusterHeadDecision< OsModel_P >::node_id_t |
typedef OsModel_P wiselib::LeachClusterHeadDecision< OsModel_P >::OsModel |
typedef OsModel::Radio wiselib::LeachClusterHeadDecision< OsModel_P >::Radio |
typedef OsModel::Rand wiselib::LeachClusterHeadDecision< OsModel_P >::Rand |
typedef Radio::size_t wiselib::LeachClusterHeadDecision< OsModel_P >::size_t |
wiselib::LeachClusterHeadDecision< OsModel_P >::LeachClusterHeadDecision | ( | ) | [inline] |
wiselib::LeachClusterHeadDecision< OsModel_P >::~LeachClusterHeadDecision | ( | ) | [inline] |
bool wiselib::LeachClusterHeadDecision< OsModel_P >::calculate_head | ( | ) | [inline] |
void wiselib::LeachClusterHeadDecision< OsModel_P >::disable | ( | void | ) | [inline] |
void wiselib::LeachClusterHeadDecision< OsModel_P >::enable | ( | void | ) | [inline] |
void wiselib::LeachClusterHeadDecision< OsModel_P >::init | ( | Radio & | radio, |
Debug & | debug | ||
) | [inline] |
bool wiselib::LeachClusterHeadDecision< OsModel_P >::is_cluster_head | ( | void | ) | [inline] |
void wiselib::LeachClusterHeadDecision< OsModel_P >::set_id | ( | node_id_t | id | ) | [inline] |
void wiselib::LeachClusterHeadDecision< OsModel_P >::set_probability | ( | int | prob | ) | [inline] |