Wiselib
|
Probabilistic cluster head decision module. More...
#include <prob_chd.h>
Public Types | |
typedef OsModel_P | OsModel |
typedef Radio_P | Radio |
typedef OsModel::Debug | Debug |
typedef OsModel::Rand | Rand |
Public Member Functions | |
ProbabilisticClusterHeadDecision () | |
~ProbabilisticClusterHeadDecision () | |
void | init (Radio &radio, Debug &debug, Rand &rand) |
void | set_probability (int prob) |
bool | is_cluster_head (void) |
void | reset () |
bool | calculate_head () |
Probabilistic cluster head decision module.
typedef OsModel::Debug wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::Debug |
typedef OsModel_P wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::OsModel |
typedef Radio_P wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::Radio |
typedef OsModel::Rand wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::Rand |
wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::ProbabilisticClusterHeadDecision | ( | ) | [inline] |
wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::~ProbabilisticClusterHeadDecision | ( | ) | [inline] |
bool wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::calculate_head | ( | ) | [inline] |
void wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::init | ( | Radio & | radio, |
Debug & | debug, | ||
Rand & | rand | ||
) | [inline] |
bool wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::is_cluster_head | ( | void | ) | [inline] |
void wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::reset | ( | ) | [inline] |
void wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::set_probability | ( | int | prob | ) | [inline] |