Wiselib
|
Flooding Algorithm for the Wiselib. More...
#include <flooding_algorithm.h>
Inherits wiselib::RoutingBase< OsModel_P, Radio_P >.
Public Types | |
enum | ErrorCodes { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC, ERR_NETDOWN = OsModel::ERR_NETDOWN } |
enum | SpecialNodeIds { BROADCAST_ADDRESS = Radio_P::BROADCAST_ADDRESS, NULL_NODE_ID = Radio_P::NULL_NODE_ID } |
enum | Restrictions { MAX_MESSAGE_LENGTH = Radio_P::MAX_MESSAGE_LENGTH - Message::PAYLOAD_POS } |
typedef OsModel_P | OsModel |
typedef Radio_P | Radio |
typedef Debug_P | Debug |
typedef NodeidIntMap_P | MapType |
typedef MapType::iterator | MapTypeIterator |
typedef FloodingAlgorithm < OsModel, MapType, Radio, Debug > | self_type |
typedef self_type * | self_pointer_t |
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 FloodingMessage < OsModel, Radio > | Message |
enum | ReturnValues |
typedef delegate3< void, node_id_t, size_t, block_data_t * > | radio_delegate_t |
typedef vector_static< OsModel, radio_delegate_t, MAX_RECEIVERS > | CallbackVector |
typedef CallbackVector::iterator | CallbackVectorIterator |
Public Member Functions | |
int | init (Radio &radio, Debug &debug) |
int | init () |
int | destruct () |
int | reg_recv_callback (T *obj_pnt) |
int | unreg_recv_callback (int idx) |
void | notify_receivers (node_id_t from, size_t len, block_data_t *data) |
Construction / Destruction | |
FloodingAlgorithm () | |
~FloodingAlgorithm () | |
Routing Control | |
int | enable_radio (void) |
int | disable_radio (void) |
Radio Concept | |
int | send (node_id_t receiver, size_t len, block_data_t *data) |
void | receive (node_id_t from, size_t len, block_data_t *data) |
Radio::node_id_t | id () |
Flooding Algorithm for the Wiselib.
typedef Radio::block_data_t wiselib::FloodingAlgorithm< OsModel_P, NodeidIntMap_P, Radio_P, Debug_P >::block_data_t |
typedef vector_static<OsModel, radio_delegate_t, MAX_RECEIVERS> wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::CallbackVector [inherited] |
typedef CallbackVector::iterator wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::CallbackVectorIterator [inherited] |
typedef Debug_P wiselib::FloodingAlgorithm< OsModel_P, NodeidIntMap_P, Radio_P, Debug_P >::Debug |
typedef NodeidIntMap_P wiselib::FloodingAlgorithm< OsModel_P, NodeidIntMap_P, Radio_P, Debug_P >::MapType |
typedef MapType::iterator wiselib::FloodingAlgorithm< OsModel_P, NodeidIntMap_P, Radio_P, Debug_P >::MapTypeIterator |
typedef FloodingMessage<OsModel, Radio> wiselib::FloodingAlgorithm< OsModel_P, NodeidIntMap_P, Radio_P, Debug_P >::Message |
typedef Radio::message_id_t wiselib::FloodingAlgorithm< OsModel_P, NodeidIntMap_P, Radio_P, Debug_P >::message_id_t |
typedef Radio::node_id_t wiselib::FloodingAlgorithm< OsModel_P, NodeidIntMap_P, Radio_P, Debug_P >::node_id_t |
typedef OsModel_P wiselib::FloodingAlgorithm< OsModel_P, NodeidIntMap_P, Radio_P, Debug_P >::OsModel |
typedef Radio_P wiselib::FloodingAlgorithm< OsModel_P, NodeidIntMap_P, Radio_P, Debug_P >::Radio |
typedef delegate3<void, node_id_t, size_t, block_data_t*> wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::radio_delegate_t [inherited] |
Reimplemented in wiselib::AutoCast< OsModel_P, Radio_P, Timer_P, Debug_P >.
typedef self_type* wiselib::FloodingAlgorithm< OsModel_P, NodeidIntMap_P, Radio_P, Debug_P >::self_pointer_t |
typedef FloodingAlgorithm<OsModel, MapType, Radio, Debug> wiselib::FloodingAlgorithm< OsModel_P, NodeidIntMap_P, Radio_P, Debug_P >::self_type |
typedef Radio::size_t wiselib::FloodingAlgorithm< OsModel_P, NodeidIntMap_P, Radio_P, Debug_P >::size_t |
enum wiselib::FloodingAlgorithm::ErrorCodes |
enum wiselib::FloodingAlgorithm::Restrictions |
enum wiselib::RadioBase::ReturnValues [inherited] |
enum wiselib::FloodingAlgorithm::SpecialNodeIds |
wiselib::FloodingAlgorithm< OsModel_P, RoutingTable_P, Radio_P, Debug_P >::FloodingAlgorithm | ( | ) |
wiselib::FloodingAlgorithm< OsModel_P, RoutingTable_P, Radio_P, Debug_P >::~FloodingAlgorithm | ( | ) |
int wiselib::FloodingAlgorithm< OsModel_P, NodeidIntMap_P, Radio_P, Debug_P >::destruct | ( | void | ) | [inline] |
int wiselib::FloodingAlgorithm< OsModel_P, RoutingTable_P, Radio_P, Debug_P >::disable_radio | ( | void | ) |
int wiselib::FloodingAlgorithm< OsModel_P, RoutingTable_P, Radio_P, Debug_P >::enable_radio | ( | void | ) |
Radio::node_id_t wiselib::FloodingAlgorithm< OsModel_P, NodeidIntMap_P, Radio_P, Debug_P >::id | ( | void | ) | [inline] |
int wiselib::FloodingAlgorithm< OsModel_P, NodeidIntMap_P, Radio_P, Debug_P >::init | ( | Radio & | radio, |
Debug & | debug | ||
) | [inline] |
int wiselib::FloodingAlgorithm< OsModel_P, NodeidIntMap_P, Radio_P, Debug_P >::init | ( | void | ) | [inline] |
void wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::notify_receivers | ( | node_id_t | from, |
size_t | len, | ||
block_data_t * | data | ||
) | [inline, inherited] |
void wiselib::FloodingAlgorithm< OsModel_P, RoutingTable_P, Radio_P, Debug_P >::receive | ( | node_id_t | from, |
size_t | len, | ||
block_data_t * | data | ||
) |
int wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::reg_recv_callback | ( | T * | obj_pnt | ) | [inline, inherited] |
int wiselib::FloodingAlgorithm< OsModel_P, RoutingTable_P, Radio_P, Debug_P >::send | ( | node_id_t | receiver, |
size_t | len, | ||
block_data_t * | data | ||
) |
int wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::unreg_recv_callback | ( | int | idx | ) | [inline, inherited] |