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

The message that the aggregation protocol is using to send the aggregate values. More...

#include <aggregationmsg.h>

List of all members.

Public Types

enum  { AGG_MESSAGE_TYPE = 143 }
enum  data_positions { MSG_ID_POS = 0, AGG_LEVEL_POS = 1, PAYLOAD_POS = 2 }
enum  aggregation_level { IN_CLUSTER = 0, IN_TREE = 1 }
typedef OsModel_P OsModel
typedef Radio_P Radio
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

Public Member Functions

 AggregateMsg ()
 ~AggregateMsg ()
message_id_t msg_id ()
void set_msg_id (message_id_t id)
uint8_t level ()
void set_level (uint8_t level)
block_data_tpayload ()
uint8_t payload_size ()
uint8_t buffer_size ()
block_data_tdata ()
void set_payload_size (uint8_t payload_size)

Detailed Description

template<typename OsModel_P, typename Radio_P>
class wiselib::AggregateMsg< OsModel_P, Radio_P >

The message that the aggregation protocol is using to send the aggregate values.


Member Typedef Documentation

template<typename OsModel_P , typename Radio_P >
typedef Radio::block_data_t wiselib::AggregateMsg< OsModel_P, Radio_P >::block_data_t
template<typename OsModel_P , typename Radio_P >
typedef Radio::message_id_t wiselib::AggregateMsg< OsModel_P, Radio_P >::message_id_t
template<typename OsModel_P , typename Radio_P >
typedef Radio::node_id_t wiselib::AggregateMsg< OsModel_P, Radio_P >::node_id_t
template<typename OsModel_P , typename Radio_P >
typedef OsModel_P wiselib::AggregateMsg< OsModel_P, Radio_P >::OsModel
template<typename OsModel_P , typename Radio_P >
typedef Radio_P wiselib::AggregateMsg< OsModel_P, Radio_P >::Radio
template<typename OsModel_P , typename Radio_P >
typedef Radio::size_t wiselib::AggregateMsg< OsModel_P, Radio_P >::size_t

Member Enumeration Documentation

template<typename OsModel_P , typename Radio_P >
anonymous enum
Enumerator:
AGG_MESSAGE_TYPE 
template<typename OsModel_P , typename Radio_P >
enum wiselib::AggregateMsg::aggregation_level
Enumerator:
IN_CLUSTER 
IN_TREE 
template<typename OsModel_P , typename Radio_P >
enum wiselib::AggregateMsg::data_positions
Enumerator:
MSG_ID_POS 
AGG_LEVEL_POS 
PAYLOAD_POS 

Constructor & Destructor Documentation

template<typename OsModel_P , typename Radio_P >
wiselib::AggregateMsg< OsModel_P, Radio_P >::AggregateMsg ( ) [inline]
template<typename OsModel_P , typename Radio_P >
wiselib::AggregateMsg< OsModel_P, Radio_P >::~AggregateMsg ( ) [inline]

Member Function Documentation

template<typename OsModel_P , typename Radio_P >
uint8_t wiselib::AggregateMsg< OsModel_P, Radio_P >::buffer_size ( void  ) [inline]
template<typename OsModel_P , typename Radio_P >
block_data_t* wiselib::AggregateMsg< OsModel_P, Radio_P >::data ( ) [inline]
template<typename OsModel_P , typename Radio_P >
uint8_t wiselib::AggregateMsg< OsModel_P, Radio_P >::level ( ) [inline]
template<typename OsModel_P , typename Radio_P >
message_id_t wiselib::AggregateMsg< OsModel_P, Radio_P >::msg_id ( ) [inline]
template<typename OsModel_P , typename Radio_P >
block_data_t* wiselib::AggregateMsg< OsModel_P, Radio_P >::payload ( void  ) [inline]
template<typename OsModel_P , typename Radio_P >
uint8_t wiselib::AggregateMsg< OsModel_P, Radio_P >::payload_size ( ) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::AggregateMsg< OsModel_P, Radio_P >::set_level ( uint8_t  level) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::AggregateMsg< OsModel_P, Radio_P >::set_msg_id ( message_id_t  id) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::AggregateMsg< OsModel_P, Radio_P >::set_payload_size ( uint8_t  payload_size) [inline]

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