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

#include <greedyloc.h>

Inherits wiselib::LocalizationBase< OsModel_P, Radio_P >.

List of all members.

Public Types

typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Debug_P Debug
typedef Node_P Node
typedef Node::NodePosition NodePosition
typedef NodePosition position_t
typedef Node::NodePosition::Float Float
typedef Timer_P Timer
typedef Greedyloc< OsModel,
Node, Timer, Radio, 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 Radio::message_id_t message_id_t
typedef Radio::ExtendedData ExtendedData
typedef Greedyloc_Message
< OsModel, Node, Radio
Message

Public Member Functions

 Greedyloc ()
 ~Greedyloc ()
void enable (void)
void disable (void)
position_t position ()
void send (node_id_t receiver, size_t len, block_data_t *data, message_id_t msg_id, Node n)
void send_greedyloc_msg (void *userdata)
void receive (node_id_t from, size_t len, block_data_t *data, ExtendedData const &ext)
void init (Radio &radio, Timer &timer, Debug &debug)
void destruct ()

Public Attributes

Node self
Node anchor1
Node anchor2
Node anchor3
Float R1
Float R2
Float R3
uint8_t anchor_flag

template<typename OsModel_P, typename Node_P, typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
class wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >


Member Typedef Documentation

template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Radio::block_data_t wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::block_data_t
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Debug_P wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::Debug
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Radio::ExtendedData wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::ExtendedData
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Node::NodePosition::Float wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::Float
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Greedyloc_Message<OsModel, Node, Radio> wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::Message
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Radio::message_id_t wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::message_id_t
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Node_P wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::Node
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Radio::node_id_t wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::node_id_t
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Node::NodePosition wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::NodePosition
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef OsModel_P wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::OsModel
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef NodePosition wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::position_t
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Radio_P wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::Radio
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Greedyloc<OsModel, Node, Timer, Radio, Debug> wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::self_type
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Radio::size_t wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::size_t
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Timer_P wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::Timer

Constructor & Destructor Documentation

template<typename OsModel_P , typename Node_P , typename Timer_P , typename Radio_P , typename Debug_P >
wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::Greedyloc ( )
template<typename OsModel_P , typename Node_P , typename Timer_P , typename Radio_P , typename Debug_P >
wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::~Greedyloc ( )

Member Function Documentation

template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
void wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::destruct ( void  ) [inline]
template<typename OsModel_P , typename Node_P , typename Timer_P , typename Radio_P , typename Debug_P >
void wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::disable ( void  )
template<typename OsModel_P , typename Node_P , typename Timer_P , typename Radio_P , typename Debug_P >
void wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::enable ( void  )
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
void wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::init ( Radio radio,
Timer timer,
Debug debug 
) [inline]
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
position_t wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::position ( void  ) [inline]
template<typename OsModel_P , typename Node_P , typename Timer_P , typename Radio_P , typename Debug_P >
void wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::receive ( node_id_t  from,
size_t  len,
block_data_t data,
ExtendedData const &  ext 
)
template<typename OsModel_P , typename Node_P , typename Timer_P , typename Radio_P , typename Debug_P >
void wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::send ( node_id_t  receiver,
size_t  len,
block_data_t data,
message_id_t  msg_id,
Node  n 
)
template<typename OsModel_P , typename Node_P , typename Timer_P , typename Radio_P , typename Debug_P >
void wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::send_greedyloc_msg ( void *  userdata)

Member Data Documentation

template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
Node wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::anchor1
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
Node wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::anchor2
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
Node wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::anchor3
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
uint8_t wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::anchor_flag
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
Float wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::R1
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
Float wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::R2
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
Float wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::R3
template<typename OsModel_P , typename Node_P , typename Timer_P = typename OsModel_P::Timer, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
Node wiselib::Greedyloc< OsModel_P, Node_P, Timer_P, Radio_P, Debug_P >::self

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