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

Probabilistic cluster head decision module. More...

#include <prob_chd.h>

List of all members.

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

Detailed Description

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

Probabilistic cluster head decision module.


Member Typedef Documentation

template<typename OsModel_P , typename Radio_P >
typedef OsModel::Debug wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::Debug
template<typename OsModel_P , typename Radio_P >
typedef OsModel_P wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::OsModel
template<typename OsModel_P , typename Radio_P >
typedef Radio_P wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::Radio
template<typename OsModel_P , typename Radio_P >
typedef OsModel::Rand wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::Rand

Constructor & Destructor Documentation

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

Member Function Documentation

template<typename OsModel_P , typename Radio_P >
bool wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::calculate_head ( ) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::init ( Radio radio,
Debug debug,
Rand rand 
) [inline]
template<typename OsModel_P , typename Radio_P >
bool wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::is_cluster_head ( void  ) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_P >::reset ( ) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::ProbabilisticClusterHeadDecision< OsModel_P, Radio_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