Wiselib
Public Types | Public Member Functions
wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P > Class Template Reference

Attribute cluster head decision module. More...

#include <attr_chd.h>

List of all members.

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 ()

Detailed Description

template<typename OsModel_P, typename Radio_P>
class wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >

Attribute cluster head decision module.


Member Typedef Documentation

template<typename OsModel_P, typename Radio_P>
typedef Radio::block_data_t wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::block_data_t
template<typename OsModel_P, typename Radio_P>
typedef delegate1<int, int*> wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::chd_delegate_t
template<typename OsModel_P, typename Radio_P>
typedef int wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::cluster_id_t
template<typename OsModel_P, typename Radio_P>
typedef int wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::cluster_level_t
template<typename OsModel_P, typename Radio_P>
typedef OsModel::Debug wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::Debug
template<typename OsModel_P, typename Radio_P>
typedef Radio::node_id_t wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::node_id_t
template<typename OsModel_P, typename Radio_P>
typedef OsModel_P wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::OsModel
template<typename OsModel_P, typename Radio_P>
typedef Radio_P wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::Radio
template<typename OsModel_P, typename Radio_P>
typedef Radio::size_t wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::size_t

Constructor & Destructor Documentation

template<typename OsModel_P, typename Radio_P>
wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::AtributeClusterHeadDecision ( ) [inline]
template<typename OsModel_P, typename Radio_P>
wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::~AtributeClusterHeadDecision ( ) [inline]

Member Function Documentation

template<typename OsModel_P, typename Radio_P>
bool wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::calculate_head ( ) [inline]
template<typename OsModel_P, typename Radio_P>
AttributeClusterMsg<OsModel, Radio> wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::get_attribute_payload ( ) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::init ( Radio radio,
Debug debug 
) [inline]
template<typename OsModel_P, typename Radio_P>
bool wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::is_cluster_head ( void  ) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::receive ( node_id_t  from,
size_t  len,
block_data_t mess 
) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::reset ( ) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::AtributeClusterHeadDecision< OsModel_P, Radio_P >::set_attribute ( int  theta) [inline]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines