Wiselib
|
Attribute cluster head decision module. More...
#include <attr_chd.h>
Public Types | |
typedef OsModel_P | OsModel |
typedef Radio_P | Radio |
typedef OsModel::Debug | Debug |
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 | |
AtributeClusterHeadDecision () | |
~AtributeClusterHeadDecision () | |
void | init (Radio &radio, Debug &debug) |
void | set_attribute (int theta) |
bool | is_cluster_head (void) |
void | reset () |
bool | calculate_head () |
void | receive (node_id_t from, size_t len, block_data_t *mess) |
AttributeClusterMsg< OsModel, Radio > | get_attribute_payload () |
Attribute cluster head decision module.
typedef Radio::block_data_t wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::block_data_t |
typedef delegate1<int, int*> wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::chd_delegate_t |
typedef int wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::cluster_id_t |
typedef int wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::cluster_level_t |
typedef OsModel::Debug wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::Debug |
typedef Radio::node_id_t wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::node_id_t |
typedef OsModel_P wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::OsModel |
typedef Radio_P wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::Radio |
typedef Radio::size_t wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::size_t |
wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::AtributeClusterHeadDecision | ( | ) | [inline] |
wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::~AtributeClusterHeadDecision | ( | ) | [inline] |
bool wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::calculate_head | ( | ) | [inline] |
AttributeClusterMsg<OsModel, Radio> wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::get_attribute_payload | ( | ) | [inline] |
void wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::init | ( | Radio & | radio, |
Debug & | debug | ||
) | [inline] |
bool wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::is_cluster_head | ( | void | ) | [inline] |
void wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::receive | ( | node_id_t | from, |
size_t | len, | ||
block_data_t * | mess | ||
) | [inline] |
void wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::reset | ( | ) | [inline] |
void wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::set_attribute | ( | int | theta | ) | [inline] |