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

Moca clustering core component. More...

#include <moca.h>

Inherits wiselib::ClusteringBase< OsModel_P >.

List of all members.

Public Types

typedef OsModel_P OsModel
typedef OsModel::Radio Radio
typedef OsModel::Timer Timer
typedef OsModel::Debug Debug
typedef OsModel::Rand Rand
typedef HeadDecision_P HeadDecision_t
typedef JoinDecision_P JoinDecision_t
typedef Iterator_P Iterator_t
typedef MocaCore< OsModel_P,
HeadDecision_P, JoinDecision_P,
Iterator_P > 
self_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 node_id_t cluster_id_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

 MocaCore ()
 ~MocaCore ()
void init (Radio &radio, Timer &timer, Debug &debug)
void set_iterator (Iterator_t &it)
void set_join_decision (JoinDecision_t &jd)
void set_cluster_head_decision (HeadDecision_t &chd)
void set_probability (int prob)
void set_maxhops (int maxhops)
node_id_t parent (cluster_id_t cluster_id=0)
cluster_id_t cluster_id (size_t cluster_no=0)
size_t hops (cluster_id_t cluster_id=0)
void present_neighbors ()
int node_type ()
void enable ()
void disable ()
void find_head ()
void receive_next (int num)
void timer_expired (void *)
void reply_to_head (void *)
int mess_join ()
int mess_join_request ()
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::MocaCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >

Moca 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::MocaCore< 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::MocaCore< 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 node_id_t wiselib::MocaCore< 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::MocaCore< 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::MocaCore< 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::MocaCore< 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::MocaCore< 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::MocaCore< 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::MocaCore< 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::MocaCore< 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::MocaCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::Radio
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
typedef OsModel::Rand wiselib::MocaCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::Rand
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
typedef MocaCore<OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P > wiselib::MocaCore< 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::MocaCore< 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::MocaCore< 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::MocaCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::MocaCore ( ) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
wiselib::MocaCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::~MocaCore ( ) [inline]

Member Function Documentation

template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
cluster_id_t wiselib::MocaCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::cluster_id ( size_t  cluster_no = 0) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MocaCore< 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::MocaCore< 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::MocaCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::find_head ( void  )
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
size_t wiselib::MocaCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::hops ( cluster_id_t  cluster_id = 0) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MocaCore< 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 >
int wiselib::MocaCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::mess_join ( ) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
int wiselib::MocaCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::mess_join_request ( ) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
int wiselib::MocaCore< 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::MocaCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::parent ( cluster_id_t  cluster_id = 0) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MocaCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::present_neighbors ( ) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MocaCore< 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::MocaCore< 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::MocaCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::reply_to_head ( void *  d)
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MocaCore< 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::MocaCore< 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::MocaCore< 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::MocaCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::set_maxhops ( int  maxhops) [inline]
template<typename OsModel_P , typename HeadDecision_P , typename JoinDecision_P , typename Iterator_P >
void wiselib::MocaCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::set_probability ( int  prob) [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::MocaCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >::timer_expired ( void *  d)
int wiselib::ClusteringBase< OsModel_P, 5 >::unreg_state_changed_callback ( int  idx) [inline, inherited]

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