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

Secured HDL Clustering. More...

#include <securehdlclustering.h>

List of all members.

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 uint8_t cluster_level_t
typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Timer_P Timer
typedef SecureHdlClustering
< OsModel_P, Radio_P, Timer_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 SecureHdlMessage
< OsModel, Radio
SHdlMessage
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 set_sink (bool sink)
void set_chain (HKCelement_t *input, uint8_t size)
void set_chain_element (const HKCelement_t &input)
Construction / Destruction
 SecureHdlClustering ()
 ~SecureHdlClustering ()

Protected Member Functions

void receive (node_id_t from, size_t len, block_data_t *data)
void timer_expired (void *)

Detailed Description

template<typename OsModel_P, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
class wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >

Secured HDL Clustering.


Member Typedef Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef Radio::block_data_t wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::block_data_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef delegate1<void, int> wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::cluster_delegate_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef int wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::cluster_id_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef uint8_t wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::cluster_level_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef Radio::node_id_t wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::node_id_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef OsModel_P wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::OsModel
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef Radio_P wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::Radio
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef SecureHdlClustering<OsModel_P, Radio_P, Timer_P> wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::self_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef SecureHdlMessage<OsModel, Radio> wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::SHdlMessage
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef Radio::size_t wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::size_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef Timer_P wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::Timer

Member Enumeration Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
enum wiselib::SecureHdlClustering::ClusterIds
Enumerator:
UNKNOWN_CLUSTER_HEAD 
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
enum wiselib::SecureHdlClustering::EventIds
Enumerator:
CLUSTER_HEAD_CHANGED 
NODE_JOINED 
NODE_LEFT 

Constructor & Destructor Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::SecureHdlClustering ( ) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::~SecureHdlClustering ( ) [inline]

Member Function Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
cluster_id_t wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::cluster_id ( cluster_level_t  ) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
cluster_level_t wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::cluster_level ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P >
void wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::disable ( void  )
template<typename OsModel_P , typename Radio_P , typename Timer_P >
void wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::enable ( void  )
template<typename OsModel_P , typename Radio_P , typename Timer_P >
void wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::receive ( node_id_t  from,
size_t  len,
block_data_t data 
) [protected]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
template<class T , void(T::*)(int) TMethod>
int wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::reg_changed_callback ( T *  obj_pnt) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
void wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::set_chain ( HKCelement_t input,
uint8_t  size 
) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
void wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::set_chain_element ( const HKCelement_t input) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
void wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::set_sink ( bool  sink) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P >
void wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::timer_expired ( void *  data) [protected]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
void wiselib::SecureHdlClustering< OsModel_P, Radio_P, Timer_P >::unreg_changed_callback ( int  idx) [inline]

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