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

#include <ttl_flooding.h>

Inherits wiselib::RadioBase< OsModel_P, Radio_P::node_id_t, Radio_P::size_t, Radio_P::block_data_t >, and wiselib::RadioBase< OsModel_P, Radio_P::node_id_t, Radio_P::size_t, Radio_P::block_data_t >.

List of all members.

Public Types

enum  ReturnValues { SUCCESS = OsModel::SUCCESS, SUCCESS = OsModel::SUCCESS }
enum  SpecialNodeIds { BROADCAST_ADDRESS = Radio::BROADCAST_ADDRESS, NULL_NODE_ID = Radio::NULL_NODE_ID, BROADCAST_ADDRESS = Radio::BROADCAST_ADDRESS, NULL_NODE_ID = Radio::NULL_NODE_ID }
enum  Restrictions { MAX_MESSAGE_LENGTH = Radio::MAX_MESSAGE_LENGTH, MAX_MESSAGE_LENGTH = Radio::MAX_MESSAGE_LENGTH }
enum  ReturnValues { SUCCESS = OsModel::SUCCESS, SUCCESS = OsModel::SUCCESS }
enum  SpecialNodeIds { BROADCAST_ADDRESS = Radio::BROADCAST_ADDRESS, NULL_NODE_ID = Radio::NULL_NODE_ID, BROADCAST_ADDRESS = Radio::BROADCAST_ADDRESS, NULL_NODE_ID = Radio::NULL_NODE_ID }
enum  Restrictions { MAX_MESSAGE_LENGTH = Radio::MAX_MESSAGE_LENGTH, MAX_MESSAGE_LENGTH = Radio::MAX_MESSAGE_LENGTH }
typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Debug_P Debug
typedef TTLFlooding< OsModel,
Radio, Debug,
SEEN_MESSAGE_SET_SIZE > 
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 Radio::message_id_t message_id_t
typedef wiselib::set_static
< OsModel, node_id_t,
SEEN_MESSAGE_SET_SIZE > 
message_set_t
typedef KeylevelsMessage
< OsModel, Radio
Message
typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Debug_P Debug
typedef TTLFlooding< OsModel,
Radio, Debug,
SEEN_MESSAGE_SET_SIZE > 
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 Radio::message_id_t message_id_t
typedef wiselib::set_static
< OsModel, node_id_t,
SEEN_MESSAGE_SET_SIZE > 
message_set_t
typedef KeylevelsMessage
< OsModel, Radio
Message
typedef delegate3< void,
node_id_t, size_t,
block_data_t * > 
radio_delegate_t
typedef vector_static< OsModel,
radio_delegate_t,
RADIO_BASE_MAX_RECEIVERS > 
CallbackVector
typedef CallbackVector::iterator CallbackVectorIterator

Public Member Functions

int init (Radio &radio, Debug &debug)
void enable_radio ()
void disable_radio ()
void clear ()
void set_ttl (uint8_t new_ttl)
int get_ttl ()
void set_notify_all_on_path (bool notify)
void show_ttl_message (Message *msg, int dir)
void send (node_id_t msg_id, size_t size, block_data_t *data)
void receive (node_id_t from, size_t size, block_data_t *data)
int init (Radio &radio, Debug &debug)
void enable_radio ()
void disable_radio ()
void clear ()
void set_ttl (uint8_t new_ttl)
int get_ttl ()
void set_cluster (node_id_t cluster)
void set_notify_all_on_path (bool notify)
void send (node_id_t msg_id, size_t size, block_data_t *data)
void receive (node_id_t from, size_t size, block_data_t *data)
int reg_recv_callback (T *obj_pnt)
int unreg_recv_callback (int idx)
void notify_receivers (node_id_t from, size_t len, block_data_t *data)

template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
class wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >


Member Typedef Documentation

template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef Radio::block_data_t wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::block_data_t
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef Radio::block_data_t wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::block_data_t
typedef vector_static<OsModel, radio_delegate_t, RADIO_BASE_MAX_RECEIVERS > wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , RADIO_BASE_MAX_RECEIVERS >::CallbackVector [inherited]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef Debug_P wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::Debug
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef Debug_P wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::Debug
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef KeylevelsMessage<OsModel, Radio> wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::Message
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef KeylevelsMessage<OsModel, Radio> wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::Message
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef Radio::message_id_t wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::message_id_t
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef Radio::message_id_t wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::message_id_t
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef wiselib::set_static<OsModel, node_id_t, SEEN_MESSAGE_SET_SIZE> wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::message_set_t
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef wiselib::set_static<OsModel, node_id_t, SEEN_MESSAGE_SET_SIZE> wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::message_set_t
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef Radio::node_id_t wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::node_id_t
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef Radio::node_id_t wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::node_id_t
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef OsModel_P wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::OsModel
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef OsModel_P wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::OsModel
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef Radio_P wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::Radio
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef Radio_P wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::Radio
typedef delegate3<void, node_id_t, size_t, block_data_t*> wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , RADIO_BASE_MAX_RECEIVERS >::radio_delegate_t [inherited]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef TTLFlooding<OsModel, Radio, Debug, SEEN_MESSAGE_SET_SIZE> wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::self_type
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef TTLFlooding<OsModel, Radio, Debug, SEEN_MESSAGE_SET_SIZE> wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::self_type
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef Radio::size_t wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::size_t
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
typedef Radio::size_t wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::size_t

Member Enumeration Documentation

template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
enum wiselib::TTLFlooding::Restrictions
Enumerator:
MAX_MESSAGE_LENGTH 
MAX_MESSAGE_LENGTH 
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
enum wiselib::TTLFlooding::Restrictions
Enumerator:
MAX_MESSAGE_LENGTH 
MAX_MESSAGE_LENGTH 
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
enum wiselib::TTLFlooding::ReturnValues
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
enum wiselib::TTLFlooding::ReturnValues
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
enum wiselib::TTLFlooding::SpecialNodeIds
Enumerator:
BROADCAST_ADDRESS 
NULL_NODE_ID 
BROADCAST_ADDRESS 
NULL_NODE_ID 
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
enum wiselib::TTLFlooding::SpecialNodeIds
Enumerator:
BROADCAST_ADDRESS 
NULL_NODE_ID 
BROADCAST_ADDRESS 
NULL_NODE_ID 

Member Function Documentation

template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
void wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::clear ( ) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
void wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::clear ( ) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
void wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::disable_radio ( void  ) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
void wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::disable_radio ( void  ) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
void wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::enable_radio ( void  ) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
void wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::enable_radio ( void  ) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
int wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::get_ttl ( ) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
int wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::get_ttl ( ) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
int wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::init ( Radio radio,
Debug debug 
) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
int wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::init ( Radio radio,
Debug debug 
) [inline]
void wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , RADIO_BASE_MAX_RECEIVERS >::notify_receivers ( node_id_t  from,
size_t  len,
block_data_t data 
) [inline, inherited]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
void wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::receive ( node_id_t  from,
size_t  size,
block_data_t data 
)
template<typename OsModel_P , typename Radio_P , typename Debug_P , int SEEN_MESSAGE_SET_SIZE>
void wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::receive ( node_id_t  from,
size_t  size,
block_data_t data 
)
int wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , RADIO_BASE_MAX_RECEIVERS >::reg_recv_callback ( T *  obj_pnt) [inline, inherited]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
void wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::send ( node_id_t  msg_id,
size_t  size,
block_data_t data 
)
template<typename OsModel_P , typename Radio_P , typename Debug_P , int SEEN_MESSAGE_SET_SIZE>
void wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::send ( node_id_t  msg_id,
size_t  size,
block_data_t data 
)
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
void wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::set_cluster ( node_id_t  cluster) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
void wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::set_notify_all_on_path ( bool  notify) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
void wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::set_notify_all_on_path ( bool  notify) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
void wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::set_ttl ( uint8_t  new_ttl) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
void wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::set_ttl ( uint8_t  new_ttl) [inline]
template<typename OsModel_P, typename Radio_P, typename Debug_P = typename OsModel_P::Debug, int SEEN_MESSAGE_SET_SIZE = 100>
void wiselib::TTLFlooding< OsModel_P, Radio_P, Debug_P, SEEN_MESSAGE_SET_SIZE >::show_ttl_message ( Message msg,
int  dir 
) [inline]
int wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , RADIO_BASE_MAX_RECEIVERS >::unreg_recv_callback ( int  idx) [inline, inherited]

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