Wiselib
|
HDL clustering algorithm. More...
#include <hdlclustering.h>
Public Types | |
enum | EventIds { CLUSTER_HEAD_CHANGED = 0, NODE_JOINED = 1, NODE_LEFT = 2 } |
enum | ClusterIds { UNKNOWN_CLUSTER_HEAD = 0 } |
typedef int | cluster_id_t |
typedef int | cluster_level_t |
typedef OsModel_P | OsModel |
typedef Radio_P | Radio |
typedef HdlClustering < OsModel_P, Radio_P > | self_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 |
Public Member Functions | |
void | enable (void) |
void | disable (void) |
cluster_id_t | cluster_id (cluster_level_t) |
cluster_level_t | cluster_level () |
template<class T , void(T::*)(int) TMethod> | |
int | reg_changed_callback (T *obj_pnt) |
void | unreg_changed_callback (int idx) |
void | receive (node_id_t from, size_t len, block_data_t *data) |
void | set_sink (bool sink) |
Construction / Destruction | |
HdlClustering () | |
~HdlClustering () |
HDL clustering algorithm.
typedef Radio::block_data_t wiselib::HdlClustering< OsModel_P, Radio_P >::block_data_t |
typedef delegate1<void, int> wiselib::HdlClustering< OsModel_P, Radio_P >::cluster_delegate_t |
typedef int wiselib::HdlClustering< OsModel_P, Radio_P >::cluster_id_t |
typedef int wiselib::HdlClustering< OsModel_P, Radio_P >::cluster_level_t |
typedef Radio::node_id_t wiselib::HdlClustering< OsModel_P, Radio_P >::node_id_t |
typedef OsModel_P wiselib::HdlClustering< OsModel_P, Radio_P >::OsModel |
typedef Radio_P wiselib::HdlClustering< OsModel_P, Radio_P >::Radio |
typedef HdlClustering<OsModel_P, Radio_P> wiselib::HdlClustering< OsModel_P, Radio_P >::self_t |
typedef Radio::size_t wiselib::HdlClustering< OsModel_P, Radio_P >::size_t |
enum wiselib::HdlClustering::ClusterIds |
enum wiselib::HdlClustering::EventIds |
wiselib::HdlClustering< OsModel_P, Radio_P >::HdlClustering | ( | ) | [inline] |
wiselib::HdlClustering< OsModel_P, Radio_P >::~HdlClustering | ( | ) | [inline] |
cluster_id_t wiselib::HdlClustering< OsModel_P, Radio_P >::cluster_id | ( | cluster_level_t | ) | [inline] |
cluster_level_t wiselib::HdlClustering< OsModel_P, Radio_P >::cluster_level | ( | ) | [inline] |
void wiselib::HdlClustering< OsModel_P, Radio_P >::disable | ( | void | ) | [inline] |
void wiselib::HdlClustering< OsModel_P, Radio_P >::enable | ( | void | ) | [inline] |
void wiselib::HdlClustering< OsModel_P, Radio_P >::receive | ( | node_id_t | from, |
size_t | len, | ||
block_data_t * | data | ||
) | [inline] |
int wiselib::HdlClustering< OsModel_P, Radio_P >::reg_changed_callback | ( | T * | obj_pnt | ) | [inline] |
void wiselib::HdlClustering< OsModel_P, Radio_P >::set_sink | ( | bool | sink | ) | [inline] |
void wiselib::HdlClustering< OsModel_P, Radio_P >::unreg_changed_callback | ( | int | idx | ) | [inline] |