Wiselib
|
Duty cycling algorithm using ant behavior. More...
#include <ant_hallway_duty_cycling_algorithm.h>
Public Types | |
enum | ErrorCodes { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC, ERR_NOTIMPL = OsModel::ERR_NOTIMPL, SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC, ERR_NOTIMPL = OsModel::ERR_NOTIMPL } |
enum | EnergyPreservationActivity { EPA_ACTIVE = 1, EPA_INACTIVE, EPA_ACTIVE = 1, EPA_INACTIVE } |
enum | ErrorCodes { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC, ERR_NOTIMPL = OsModel::ERR_NOTIMPL, SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC, ERR_NOTIMPL = OsModel::ERR_NOTIMPL } |
enum | EnergyPreservationActivity { EPA_ACTIVE = 1, EPA_INACTIVE, EPA_ACTIVE = 1, EPA_INACTIVE } |
typedef OsModel_P | OsModel |
typedef Radio_P | Radio |
typedef Timer_P | Timer |
typedef Clock_P | Clock |
typedef Debug_P | Debug |
typedef AntsDutyCyclingAlgorithm < OsModel, Radio, Timer, Clock, 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 pair< int, typename Clock::time_t > | Event |
typedef list_static< OsModel, Event, 50 > | EventList |
typedef EventList::iterator | EventListIterator |
typedef Clock::time_t | time_t |
typedef AntDutyCyclingMessage < OsModel, Radio > | Message |
typedef delegate1< void, int > | energy_preservation_delegate_t |
typedef OsModel_P | OsModel |
typedef Radio_P | Radio |
typedef Timer_P | Timer |
typedef Clock_P | Clock |
typedef Debug_P | Debug |
typedef AntsDutyCyclingAlgorithm < OsModel, Radio, Timer, Clock, 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 Clock::time_t | time_t |
typedef AntDutyCyclingMessage < OsModel, Radio > | Message |
typedef delegate1< void, int > | energy_preservation_delegate_t |
Public Member Functions | |
double | activity () |
double | battery () |
void | set_battery (double battery) |
bool | active () |
int | init (Radio &radio, Timer &timer, Clock &clock, Debug &debug) |
int | init () |
int | destruct () |
void | event_triggered (int events) |
double | activity () |
double | battery () |
void | set_battery (double battery) |
bool | active () |
double | sun (time_t time) |
int | init (Radio &radio, Timer &timer, Clock &clock, Debug &debug) |
int | init () |
int | destruct () |
Construction / Destruction | |
AntsDutyCyclingAlgorithm () | |
~AntsDutyCyclingAlgorithm () | |
AntsDutyCyclingAlgorithm () | |
~AntsDutyCyclingAlgorithm () | |
Duty Cycling Control | |
| |
void | enable (void) |
void | disable (void) |
void | enable (void) |
void | disable (void) |
void | set_configuration (void) |
Duty Cycling Callback Mechanism | |
template<class T , void(T::*)(int) TMethod> | |
int | reg_changed_callback (T *obj_pnt) |
int | unreg_changed_callback (int) |
void | notify_receivers (EnergyPreservationActivity value) |
template<class T , void(T::*)(int) TMethod> | |
int | reg_changed_callback (T *obj_pnt) |
int | unreg_changed_callback (int) |
void | notify_receivers (EnergyPreservationActivity value) |
Methods called by RadioModel | |
void | receive (node_id_t from, size_t len, block_data_t *data) |
void | receive (node_id_t from, size_t len, block_data_t *data) |
Methods called by Timer | |
void | enable_transmission_phase (void *userdata) |
void | algorithm_step (void *userdata) |
void | disable_transmission_phase (void *userdata) |
void | enable_transmission_phase (void *userdata) |
void | algorithm_step (void *userdata) |
void | disable_transmission_phase (void *userdata) |
Duty cycling algorithm using ant behavior.
typedef Radio::block_data_t wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::block_data_t |
typedef Radio::block_data_t wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::block_data_t |
typedef Clock_P wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::Clock |
typedef Clock_P wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::Clock |
typedef Debug_P wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::Debug |
typedef Debug_P wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::Debug |
typedef delegate1<void, int> wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::energy_preservation_delegate_t |
typedef delegate1<void, int> wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::energy_preservation_delegate_t |
typedef pair<int, typename Clock::time_t> wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::Event |
typedef list_static<OsModel, Event, 50> wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::EventList |
typedef EventList::iterator wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::EventListIterator |
typedef AntDutyCyclingMessage<OsModel, Radio> wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::Message |
typedef AntDutyCyclingMessage<OsModel, Radio> wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::Message |
typedef Radio::message_id_t wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::message_id_t |
typedef Radio::message_id_t wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::message_id_t |
typedef Radio::node_id_t wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::node_id_t |
typedef Radio::node_id_t wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::node_id_t |
typedef OsModel_P wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::OsModel |
typedef OsModel_P wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::OsModel |
typedef Radio_P wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::Radio |
typedef Radio_P wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::Radio |
typedef AntsDutyCyclingAlgorithm<OsModel, Radio, Timer, Clock, Debug> wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::self_type |
typedef AntsDutyCyclingAlgorithm<OsModel, Radio, Timer, Clock, Debug> wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::self_type |
typedef Radio::size_t wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::size_t |
typedef Radio::size_t wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::size_t |
typedef Clock::time_t wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::time_t |
typedef Clock::time_t wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::time_t |
typedef Timer_P wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::Timer |
typedef Timer_P wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::Timer |
enum wiselib::AntsDutyCyclingAlgorithm::EnergyPreservationActivity |
enum wiselib::AntsDutyCyclingAlgorithm::EnergyPreservationActivity |
enum wiselib::AntsDutyCyclingAlgorithm::ErrorCodes |
enum wiselib::AntsDutyCyclingAlgorithm::ErrorCodes |
wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::AntsDutyCyclingAlgorithm | ( | ) |
wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::~AntsDutyCyclingAlgorithm | ( | ) |
wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::AntsDutyCyclingAlgorithm | ( | ) |
wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::~AntsDutyCyclingAlgorithm | ( | ) |
bool wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::active | ( | ) | [inline] |
bool wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::active | ( | ) | [inline] |
double wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::activity | ( | ) | [inline] |
double wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::activity | ( | ) | [inline] |
void wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::algorithm_step | ( | void * | userdata | ) |
void wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::algorithm_step | ( | void * | userdata | ) |
double wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::battery | ( | ) | [inline] |
double wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::battery | ( | ) | [inline] |
int wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::destruct | ( | void | ) | [inline] |
int wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::destruct | ( | void | ) | [inline] |
void wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::disable | ( | void | ) |
void wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::disable | ( | void | ) |
void wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::disable_transmission_phase | ( | void * | userdata | ) |
void wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::disable_transmission_phase | ( | void * | userdata | ) |
void wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::enable | ( | void | ) |
void wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::enable | ( | void | ) |
void wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::enable_transmission_phase | ( | void * | userdata | ) |
void wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::enable_transmission_phase | ( | void * | userdata | ) |
void wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::event_triggered | ( | int | events | ) |
int wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::init | ( | Radio & | radio, |
Timer & | timer, | ||
Clock & | clock, | ||
Debug & | debug | ||
) | [inline] |
int wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::init | ( | Radio & | radio, |
Timer & | timer, | ||
Clock & | clock, | ||
Debug & | debug | ||
) | [inline] |
int wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::init | ( | void | ) | [inline] |
int wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::init | ( | void | ) | [inline] |
void wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::notify_receivers | ( | EnergyPreservationActivity | value | ) | [inline] |
void wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::notify_receivers | ( | EnergyPreservationActivity | value | ) | [inline] |
void wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::receive | ( | node_id_t | from, |
size_t | len, | ||
block_data_t * | data | ||
) |
void wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::receive | ( | node_id_t | from, |
size_t | len, | ||
block_data_t * | data | ||
) |
int wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::reg_changed_callback | ( | T * | obj_pnt | ) | [inline] |
int wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::reg_changed_callback | ( | T * | obj_pnt | ) | [inline] |
void wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::set_battery | ( | double | battery | ) | [inline] |
void wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::set_battery | ( | double | battery | ) | [inline] |
void wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::set_configuration | ( | void | ) |
double wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::sun | ( | time_t | time | ) |
int wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::unreg_changed_callback | ( | int | ) | [inline] |
int wiselib::AntsDutyCyclingAlgorithm< OsModel_P, Radio_P, Timer_P, Clock_P, Debug_P >::unreg_changed_callback | ( | int | ) | [inline] |