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

Implementation of Radio Concept that approximates the consumed energy. More...

#include <energy_consumption_radio.h>

List of all members.

Public Types

enum  SpecialNodeIds { BROADCAST_ADDRESS = Radio::BROADCAST_ADDRESS, NULL_NODE_ID = Radio::NULL_NODE_ID }
enum  Restrictions { MAX_MESSAGE_LENGTH = Radio::MAX_MESSAGE_LENGTH }
typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Clock_P Clock
typedef
EneryConsumptionRadioModel
< OsModel, Radio, Clock
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 Clock::time_t time_t
typedef Radio::radio_delegate_t energy_consumption_delegate_t
typedef
EnergyConsumptionRadioCallback
< OsModel
RadioCallback

Public Member Functions

void send (node_id_t id, size_t len, block_data_t *data)
void init (Radio &radio, Clock &clock)
void destruct ()
void enable_radio ()
void disable_radio ()
node_id_t id ()
template<class T , void(T::*)(node_id_t, size_t, block_data_t *) TMethod>
int reg_recv_callback (T *obj_pnt)
void unreg_recv_callback (int idx)

Detailed Description

template<typename OsModel_P, typename Radio_P, typename Clock_P>
class wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >

Implementation of Radio Concept that approximates the consumed energy.


Member Typedef Documentation

template<typename OsModel_P , typename Radio_P , typename Clock_P >
typedef Radio::block_data_t wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::block_data_t
template<typename OsModel_P , typename Radio_P , typename Clock_P >
typedef Clock_P wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::Clock
template<typename OsModel_P , typename Radio_P , typename Clock_P >
typedef Radio::radio_delegate_t wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::energy_consumption_delegate_t
template<typename OsModel_P , typename Radio_P , typename Clock_P >
typedef Radio::message_id_t wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::message_id_t
template<typename OsModel_P , typename Radio_P , typename Clock_P >
typedef Radio::node_id_t wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::node_id_t
template<typename OsModel_P , typename Radio_P , typename Clock_P >
typedef OsModel_P wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::OsModel
template<typename OsModel_P , typename Radio_P , typename Clock_P >
typedef Radio_P wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::Radio
template<typename OsModel_P , typename Radio_P , typename Clock_P >
typedef EnergyConsumptionRadioCallback<OsModel> wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::RadioCallback
template<typename OsModel_P , typename Radio_P , typename Clock_P >
typedef EneryConsumptionRadioModel<OsModel, Radio, Clock> wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::self_type
template<typename OsModel_P , typename Radio_P , typename Clock_P >
typedef Radio::size_t wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::size_t
template<typename OsModel_P , typename Radio_P , typename Clock_P >
typedef Clock::time_t wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::time_t

Member Enumeration Documentation

template<typename OsModel_P , typename Radio_P , typename Clock_P >
enum wiselib::EneryConsumptionRadioModel::Restrictions
Enumerator:
MAX_MESSAGE_LENGTH 
template<typename OsModel_P , typename Radio_P , typename Clock_P >
enum wiselib::EneryConsumptionRadioModel::SpecialNodeIds
Enumerator:
BROADCAST_ADDRESS 

All nodes in communication range.

NULL_NODE_ID 

Unknown/No node id.


Member Function Documentation

template<typename OsModel_P , typename Radio_P , typename Clock_P >
void wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::destruct ( void  ) [inline]
template<typename OsModel_P , typename Radio_P , typename Clock_P >
void wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::disable_radio ( void  ) [inline]
template<typename OsModel_P , typename Radio_P , typename Clock_P >
void wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::enable_radio ( void  ) [inline]
template<typename OsModel_P , typename Radio_P , typename Clock_P >
node_id_t wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::id ( void  ) [inline]
template<typename OsModel_P , typename Radio_P , typename Clock_P >
void wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::init ( Radio radio,
Clock clock 
) [inline]
template<typename OsModel_P , typename Radio_P , typename Clock_P >
template<class T , void(T::*)(node_id_t, size_t, block_data_t *) TMethod>
int wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::reg_recv_callback ( T *  obj_pnt) [inline]
template<typename OsModel_P , typename Radio_P , typename Clock_P >
void wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::send ( node_id_t  id,
size_t  len,
block_data_t data 
) [inline]
template<typename OsModel_P , typename Radio_P , typename Clock_P >
void wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::unreg_recv_callback ( int  idx) [inline]

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