Wiselib
Public Types | Public Member Functions | Protected Member Functions
wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P > Class Template Reference

MaxMinD clustering core component. More...

#include <maxmind.h>

Inherits wiselib::ClusteringBase< OsModel_P >.

List of all members.

Public Types

typedef OsModel_P OsModel
typedef HeadDecision_P HeadDecision_t
typedef JoinDecision_P JoinDecision_t
typedef Iterator_P Iterator_t
typedef OsModel::Radio Radio
typedef OsModel::Timer Timer
typedef OsModel::Debug Debug
typedef MaxmindCore< OsModel_P,
HeadDecision_P, JoinDecision_P,
Iterator_P > 
self_t
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< void, int > cluster_delegate_t
enum  ReturnValues
typedef vector_static< OsModel,
cluster_delegate_t, 5 > 
CallbackVector
typedef CallbackVector::iterator CallbackVectorIterator

Public Member Functions

 MaxmindCore ()
 ~MaxmindCore ()
void init (Radio &radio, Timer &timer, Debug &debug)
bool is_cluster_head ()
void set_iterator (Iterator_t &it)
void set_join_decision (JoinDecision_t &jd)
void set_cluster_head_decision (HeadDecision_t &chd)
void set_maxhops (int maxhops)
node_id_t parent (void)
cluster_id_t cluster_id (void)
cluster_id_t node_type (void)
int hops ()
void winner (node_id_t *mem_pos)
void sender (node_id_t *mem_pos)
void present ()
void enable (void)
void disable (void)
void timer_expired (void *data)
void find_head ()
void convergecast (void *data)
void receive_next (int num)
int mess_flood ()
int mess_inform ()
int mess_convergecast ()
int mess_rejoin ()
int reg_state_changed_callback (T *obj_pnt)
int unreg_state_changed_callback (int idx)
void state_changed (int event)

Protected Member Functions

void receive (node_id_t receiver, size_t len, block_data_t *data)

Detailed Description

template<typename OsModel_P, typename HeadDecision_P, typename JoinDecision_P, typename Iterator_P>
class wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >

MaxMinD clustering core component.


Member Typedef Documentation

template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
typedef Radio::block_data_t wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::block_data_t
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
typedef delegate1<void, int> wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::cluster_delegate_t
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
typedef int wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::cluster_id_t
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
typedef int wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::cluster_level_t
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
typedef OsModel::Debug wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::Debug
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
typedef HeadDecision_P wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::HeadDecision_t
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
typedef Iterator_P wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::Iterator_t
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
typedef JoinDecision_P wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::JoinDecision_t
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
typedef Radio::node_id_t wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::node_id_t
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
typedef OsModel_P wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::OsModel
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
typedef OsModel::Radio wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::Radio
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
typedef MaxmindCore<OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P> wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::self_t
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
typedef Radio::size_t wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::size_t
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
typedef OsModel::Timer wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::Timer

Member Enumeration Documentation


Constructor & Destructor Documentation

template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::MaxmindCore ( ) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::~MaxmindCore ( ) [inline]

Member Function Documentation

template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
cluster_id_t wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::cluster_id ( void  ) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::convergecast ( void *  data)
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::disable ( void  )
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::enable ( void  )
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::find_head ( )
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
int wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::hops ( void  ) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::init ( Radio radio,
Timer timer,
Debug debug 
) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
bool wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::is_cluster_head ( ) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
int wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::mess_convergecast ( ) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
int wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::mess_flood ( ) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
int wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::mess_inform ( ) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
int wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::mess_rejoin ( ) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
cluster_id_t wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::node_type ( void  ) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
node_id_t wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::parent ( void  ) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::present ( ) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::receive ( node_id_t  receiver,
size_t  len,
block_data_t data 
) [protected]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::receive_next ( int  num)
int wiselib::ClusteringBase< OsModel_P, 5 >::reg_state_changed_callback ( T *  obj_pnt) [inline, inherited]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::sender ( node_id_t mem_pos) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::set_cluster_head_decision ( HeadDecision_t chd) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::set_iterator ( Iterator_t it) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::set_join_decision ( JoinDecision_t jd) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::set_maxhops ( int  maxhops) [inline]
void wiselib::ClusteringBase< OsModel_P, 5 >::state_changed ( int  event) [inline, inherited]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::timer_expired ( void *  data)
int wiselib::ClusteringBase< OsModel_P, 5 >::unreg_state_changed_callback ( int  idx) [inline, inherited]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::winner ( node_id_t mem_pos) [inline]

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