Wiselib
Public Types | Public Member Functions
wiselib::LeachClusterHeadDecision< OsModel_P > Class Template Reference

LEACH cluster head decision module. More...

#include <leach_chd.h>

List of all members.

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

Detailed Description

template<typename OsModel_P>
class wiselib::LeachClusterHeadDecision< OsModel_P >

LEACH cluster head decision module.


Member Typedef Documentation

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

Constructor & Destructor Documentation

template<typename OsModel_P >
wiselib::LeachClusterHeadDecision< OsModel_P >::LeachClusterHeadDecision ( ) [inline]
template<typename OsModel_P >
wiselib::LeachClusterHeadDecision< OsModel_P >::~LeachClusterHeadDecision ( ) [inline]

Member Function Documentation

template<typename OsModel_P >
bool wiselib::LeachClusterHeadDecision< OsModel_P >::calculate_head ( ) [inline]
template<typename OsModel_P >
void wiselib::LeachClusterHeadDecision< OsModel_P >::disable ( void  ) [inline]
template<typename OsModel_P >
void wiselib::LeachClusterHeadDecision< OsModel_P >::enable ( void  ) [inline]
template<typename OsModel_P >
void wiselib::LeachClusterHeadDecision< OsModel_P >::init ( Radio radio,
Debug debug 
) [inline]
template<typename OsModel_P >
bool wiselib::LeachClusterHeadDecision< OsModel_P >::is_cluster_head ( void  ) [inline]
template<typename OsModel_P >
void wiselib::LeachClusterHeadDecision< OsModel_P >::set_id ( node_id_t  id) [inline]
template<typename OsModel_P >
void wiselib::LeachClusterHeadDecision< OsModel_P >::set_probability ( int  prob) [inline]

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