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

#include <testreliable.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 int cluster_level_t
typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Debug_P Debug
typedef Timer_P Timer
typedef Timer::millis_t millis_t
typedef testreliable< OsModel,
Radio, Timer, Debug
self_type
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)
void set_loss_rate (double theta)
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 receiver, size_t len, block_data_t *data)
int get_sum ()
int get_duplicates ()
void timer_elapsed (void *node)
void init (Radio &radio, Timer &timer, Debug &debug)
Construction / Destruction
 testreliable ()
 ~testreliable ()

template<typename OsModel_P, typename Radio_P, typename Timer_P, typename Debug_P>
class wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >


Member Typedef Documentation

template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Radio::block_data_t wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::block_data_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef delegate1<void, int> wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::cluster_delegate_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef int wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::cluster_id_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef int wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::cluster_level_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Debug_P wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::Debug
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Timer::millis_t wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::millis_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Radio::node_id_t wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::node_id_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef OsModel_P wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::OsModel
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Radio_P wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::Radio
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef testreliable<OsModel, Radio, Timer, Debug> wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::self_type
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Radio::size_t wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::size_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Timer_P wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::Timer

Member Enumeration Documentation

template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
enum wiselib::testreliable::ClusterIds
Enumerator:
UNKNOWN_CLUSTER_HEAD 
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
enum wiselib::testreliable::EventIds
Enumerator:
CLUSTER_HEAD_CHANGED 
NODE_JOINED 
NODE_LEFT 

Constructor & Destructor Documentation

template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::testreliable ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::~testreliable ( ) [inline]

Member Function Documentation

template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
cluster_id_t wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::cluster_id ( cluster_level_t  ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
cluster_level_t wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::cluster_level ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::disable ( void  )
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::enable ( void  )
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
int wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::get_duplicates ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
int wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::get_sum ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::init ( Radio radio,
Timer timer,
Debug debug 
) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::receive ( node_id_t  receiver,
size_t  len,
block_data_t data 
)
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
template<class T , void(T::*)(int) TMethod>
int wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::reg_changed_callback ( T *  obj_pnt) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::set_loss_rate ( double  theta) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_P >::timer_elapsed ( void *  node) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::testreliable< OsModel_P, Radio_P, Timer_P, Debug_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