Wiselib
Public Types | Public Member Functions | Static Public Attributes
wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P > Class Template Reference

Lmst topology implementation of Topology ConceptLmst topology implementation of Topology concept ... More...

#include <lmst_topology.h>

Inherits wiselib::TopologyBase< OsModel_P >.

List of all members.

Public Types

typedef OsModel_P OsModel
typedef Localization_P Localization
typedef Radio_P Radio
typedef Timer_P Timer
typedef LmstTopology
< OsModel_P, Localization_P,
Float, MAX_NODES, Radio_P,
Timer_P > 
self_type
typedef LmstTopologyMessage
< OsModel, Radio, Float > 
TopologyMessage
typedef Radio::node_id_t node_id_t
typedef Radio::size_t size_t
typedef Radio::block_data_t block_data_t
typedef Timer::millis_t millis_t
typedef Float position_t
typedef pair< position_t,
node_id_t
PPI
typedef PositionType< position_tPosition
typedef vector_static< OsModel,
node_id_t, MAX_NODES > 
Neighbors
typedef delegate0< void > topology_delegate_t

Public Member Functions

void set_startup_time (millis_t startup_time)
void set_work_period (millis_t work_period)
Neighborstopology ()
position_t range_assignment ()
void init (Localization &loc, Radio &radio, Timer &timer)
void destruct ()
template<class T , void(T::*)() TMethod>
void reg_listener_callback (T *obj_pnt)
template<void(*)() TMethod>
void reg_listener_callback ()
void unreg_listener_callback (void)
void notify_listeners ()
Construction / Destruction
 LmstTopology ()
 ~LmstTopology ()
Main Control
void enable (void)
void disable (void)
Methods called by Timer
void timer_elapsed (void *userdata)
Methods called by RadioModel
void receive (node_id_t from, size_t len, block_data_t *data)

Static Public Attributes

static const uint8_t POSITION_SIZE = sizeof( Position )

Detailed Description

template<typename OsModel_P, typename Localization_P, typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
class wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >

Lmst topology implementation of Topology Concept

Lmst topology implementation of Topology concept ...


Member Typedef Documentation

template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef Radio::block_data_t wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::block_data_t
template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef Localization_P wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::Localization
template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef Timer::millis_t wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::millis_t
template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef vector_static<OsModel, node_id_t, MAX_NODES> wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::Neighbors
template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef Radio::node_id_t wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::node_id_t
template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef OsModel_P wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::OsModel
template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef PositionType<position_t> wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::Position
template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef Float wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::position_t
template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef pair<position_t, node_id_t> wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::PPI
template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef Radio_P wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::Radio
template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef LmstTopology<OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P> wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::self_type
template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef Radio::size_t wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::size_t
template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef Timer_P wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::Timer
template<typename OsModel_P >
typedef delegate0<void> wiselib::TopologyBase< OsModel_P >::topology_delegate_t [inherited]
template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
typedef LmstTopologyMessage<OsModel, Radio, Float> wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::TopologyMessage

Constructor & Destructor Documentation

template<typename OsModel_P , typename Localization_P , typename Float , uint16_t MAX_NODES, typename Radio_P , typename Timer_P >
wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::LmstTopology ( )
template<typename OsModel_P , typename Localization_P , typename Float , uint16_t MAX_NODES, typename Radio_P , typename Timer_P >
wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::~LmstTopology ( )

Member Function Documentation

template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
void wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::destruct ( void  ) [inline]
template<typename OsModel_P , typename Localization_P , typename Float , uint16_t MAX_NODES, typename Radio_P , typename Timer_P >
void wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::disable ( void  )
template<typename OsModel_P , typename Localization_P , typename Float , uint16_t MAX_NODES, typename Radio_P , typename Timer_P >
void wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::enable ( void  )
template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
void wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::init ( Localization loc,
Radio radio,
Timer timer 
) [inline]
template<typename OsModel_P >
void wiselib::TopologyBase< OsModel_P >::notify_listeners ( ) [inline, inherited]
template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
position_t wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::range_assignment ( ) [inline]
template<typename OsModel_P , typename Localization_P , typename Float , uint16_t MAX_NODES, typename Radio_P , typename Timer_P >
void wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::receive ( node_id_t  from,
size_t  len,
block_data_t data 
)
template<typename OsModel_P >
template<class T , void(T::*)() TMethod>
void wiselib::TopologyBase< OsModel_P >::reg_listener_callback ( T *  obj_pnt) [inline, inherited]
template<typename OsModel_P >
template<void(*)() TMethod>
void wiselib::TopologyBase< OsModel_P >::reg_listener_callback ( ) [inline, inherited]
template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
void wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::set_startup_time ( millis_t  startup_time) [inline]
template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
void wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::set_work_period ( millis_t  work_period) [inline]
template<typename OsModel_P , typename Localization_P , typename Float , uint16_t MAX_NODES, typename Radio_P , typename Timer_P >
void wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::timer_elapsed ( void *  userdata)
template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
Neighbors& wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::topology ( ) [inline]
template<typename OsModel_P >
void wiselib::TopologyBase< OsModel_P >::unreg_listener_callback ( void  ) [inline, inherited]

Member Data Documentation

template<typename OsModel_P , typename Localization_P , typename Float = double, uint16_t MAX_NODES = 32, typename Radio_P = typename OsModel_P::Radio, typename Timer_P = typename OsModel_P::Timer>
const uint8_t wiselib::LmstTopology< OsModel_P, Localization_P, Float, MAX_NODES, Radio_P, Timer_P >::POSITION_SIZE = sizeof( Position ) [static]

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