Wiselib
Public Types | Public Member Functions | Static Public Attributes
wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES > Class Template Reference

#include <lts_synchronization.h>

List of all members.

Public Types

typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Debug_P Debug
typedef Clock_P Clock
typedef Clock::time_t time_t
typedef NeighborhoodDiscovery_P NeighborhoodDiscovery
typedef LtsSynchronization
< OsModel, Radio, Debug, Clock,
MAX_NODES, Neighborhood > 
self_type
typedef
LtsSynchronizationMessage
< OsModel, Radio, time_t
SynchronizationMessage
typedef Radio::node_id_t node_id_t
typedef Radio::size_t size_t
typedef Radio::block_data_t block_data_t
typedef delegate0< void > lts_delegate_t

Public Member Functions

time_t time ()
void start_synchronization ()
void destruct ()
Construction / Destruction
 LtsSynchronization ()
 ~LtsSynchronization ()
Main Control
void enable (void)
void disable (void)
void set_root (bool root)
Methods called by RadioModel
void receive (node_id_t from, size_t len, block_data_t *data)

Static Public Attributes

static const uint8_t TIME_SIZE = sizeof( Time )

template<typename OsModel_P, typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
class wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >


Member Typedef Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
typedef Radio::block_data_t wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::block_data_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
typedef Clock_P wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::Clock
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
typedef Debug_P wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::Debug
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
typedef delegate0<void> wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::lts_delegate_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
typedef NeighborhoodDiscovery_P wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::NeighborhoodDiscovery
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
typedef Radio::node_id_t wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::node_id_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
typedef OsModel_P wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::OsModel
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
typedef Radio_P wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::Radio
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
typedef LtsSynchronization<OsModel, Radio, Debug, Clock, MAX_NODES, Neighborhood> wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::self_type
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
typedef Radio::size_t wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::size_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
typedef LtsSynchronizationMessage<OsModel, Radio, time_t> wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::SynchronizationMessage
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
typedef Clock::time_t wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::time_t

Constructor & Destructor Documentation

template<typename OsModel_P , typename Radio_P , typename Clock_P , typename Debug_P , typename NeighborhoodDiscovery_P , uint16_t MAX_NODES>
wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::LtsSynchronization ( )
template<typename OsModel_P , typename Radio_P , typename Clock_P , typename Debug_P , typename NeighborhoodDiscovery_P , uint16_t MAX_NODES>
wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::~LtsSynchronization ( )

Member Function Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
void wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::destruct ( void  ) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
void wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::disable ( void  )
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
void wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::enable ( void  )
template<typename OsModel_P , typename Radio_P , typename Clock_P , typename Debug_P , typename NeighborhoodDiscovery_P , uint16_t MAX_NODES>
void wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::receive ( node_id_t  from,
size_t  len,
block_data_t data 
)
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
void wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::set_root ( bool  root) [inline]
template<typename OsModel_P , typename Radio_P , typename Clock_P , typename Debug_P , typename NeighborhoodDiscovery_P , uint16_t MAX_NODES>
void wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::start_synchronization ( )
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
time_t wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::time ( ) [inline]

Member Data Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Clock_P = typename OsModel_P::Clock, typename Debug_P = typename OsModel_P::Debug, typename NeighborhoodDiscovery_P = typename wiselib::DdfsGraph<OsModel_P, Radio_P, Debug_P, MAX_NODES>, uint16_t MAX_NODES = 32>
const uint8_t wiselib::LtsSynchronization< OsModel_P, Radio_P, Clock_P, Debug_P, NeighborhoodDiscovery_P, MAX_NODES >::TIME_SIZE = sizeof( Time ) [static]

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