Wiselib
Classes | Public Types | Public Member Functions | Public Attributes
wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P > Class Template Reference

IM Judged Coloring Algorithm. More...

#include <IMjudged_coloring.h>

List of all members.

Classes

struct  stats

Public Types

typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Debug_P Debug
typedef Routing_P routing_t
typedef OsModel_P::Timer Timer
typedef OsModel::Rand Rand
typedef OsModel::Os Os
typedef IMJudgedColoring
< OsModel, Radio, Debug,
Routing_P > 
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 Timer::millis_t millis_t
typedef TreeRouting< OsModel,
Timer, Radio, Debug
tree_routing_t
typedef tree_routing_t::children_t children_t
typedef
tree_routing_t::children_t::iterator 
children_iterator_t
typedef node_id_t color_value_type
typedef
IMJudgedColoringMessage
< OsModel, Radio,
color_value_type
coloring_message
typedef pair< node_id_t,
color_value_type
node_color
typedef vector_static< OsModel,
node_color, MAX_NB > 
Neighborhood_t
typedef Neighborhood_t::iterator Neighborhood_iterator_t
typedef ColorsTable< OsModel,
color_value_type, MAX_NODES > 
color_table_t
typedef pair< color_value_type,
color_value_type
old_new_color

Public Member Functions

void check_rcd_fragments ()
bool exist_color_in_neighborhood (color_value_type ncolor)
color_value_type change_color ()
void set_timer_in (millis_t future)
bool check_for_cycle_changes ()
void set_os (Os *os)
Osos ()
void set_judge ()
bool completed ()
uint16_t ncolors ()
bool judge ()
void set_color (color_value_type color_)
color_value_type get_color ()
void set_tree_routing (routing_t *tr)
Construction / Destruction
 IMJudgedColoring ()
 ~IMJudgedColoring ()
void enable (void)
void disable (void)
Methods called by Timer
void timer_elapsed (void *userdata)
void color_timeout (void *userdata)
void neighborhood_timeout (void *userdata)
Sinartisi lipsis minimatwn
void receive (node_id_t from, size_t len, block_data_t *data)
void rcv_routing_message (node_id_t from, size_t len, block_data_t *data)
void tree_state_chage (uint8_t state)
const uint16_t get_neighboors ()
 the number of neighboors and who are they if debug
uint16_t get_color_nodes ()
 the number of neighboors and who are they if debug

Public Attributes

struct
wiselib::IMJudgedColoring::stats 
msg_info
bool cycle_changes_detected
routing_ttree_routing

Detailed Description

template<typename OsModel_P, typename Radio_P, typename Debug_P, typename Routing_P>
class wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >

IM Judged Coloring Algorithm.

An IM judged coloring algorithm.


Member Typedef Documentation

template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef Radio::block_data_t wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::block_data_t
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef tree_routing_t::children_t::iterator wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::children_iterator_t
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef tree_routing_t::children_t wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::children_t
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef ColorsTable<OsModel, color_value_type, MAX_NODES> wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::color_table_t
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef node_id_t wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::color_value_type
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef IMJudgedColoringMessage<OsModel, Radio, color_value_type> wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::coloring_message
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef Debug_P wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::Debug
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef Timer::millis_t wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::millis_t
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef Neighborhood_t::iterator wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::Neighborhood_iterator_t
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef vector_static<OsModel, node_color, MAX_NB> wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::Neighborhood_t
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef pair<node_id_t, color_value_type> wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::node_color
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef Radio::node_id_t wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::node_id_t
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef pair<color_value_type, color_value_type> wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::old_new_color
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef OsModel::Os wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::Os
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef OsModel_P wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::OsModel
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef Radio_P wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::Radio
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef OsModel::Rand wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::Rand
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef Routing_P wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::routing_t
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef IMJudgedColoring<OsModel, Radio, Debug, Routing_P> wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::self_type
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef Radio::size_t wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::size_t
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef OsModel_P::Timer wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::Timer
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
typedef TreeRouting<OsModel, Timer, Radio, Debug> wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::tree_routing_t

Constructor & Destructor Documentation

template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::IMJudgedColoring ( )
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::~IMJudgedColoring ( )

Member Function Documentation

template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
color_value_type wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::change_color ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
bool wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::check_for_cycle_changes ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
void wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::check_rcd_fragments ( )
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
void wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::color_timeout ( void *  userdata)
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
bool wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::completed ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
void wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::disable ( void  )
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
void wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::enable ( void  )
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
bool wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::exist_color_in_neighborhood ( color_value_type  ncolor) [inline]
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
color_value_type wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::get_color ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
uint16_t wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::get_color_nodes ( )

the number of neighboors and who are they if debug

template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
const uint16_t wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::get_neighboors ( )

the number of neighboors and who are they if debug

template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
bool wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::judge ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
uint16_t wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::ncolors ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
void wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::neighborhood_timeout ( void *  userdata)
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
Os* wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::os ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
void wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::rcv_routing_message ( node_id_t  from,
size_t  len,
block_data_t data 
)
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
void wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::receive ( node_id_t  from,
size_t  len,
block_data_t data 
)
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
void wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::set_color ( color_value_type  color_) [inline]
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
void wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::set_judge ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
void wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::set_os ( Os os) [inline]
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
void wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::set_timer_in ( millis_t  future) [inline]
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
void wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::set_tree_routing ( routing_t tr) [inline]
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
void wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::timer_elapsed ( void *  userdata)
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
void wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::tree_state_chage ( uint8_t  state)

Member Data Documentation

template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
bool wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::cycle_changes_detected
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
struct wiselib::IMJudgedColoring::stats wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::msg_info
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Routing_P >
routing_t* wiselib::IMJudgedColoring< OsModel_P, Radio_P, Debug_P, Routing_P >::tree_routing

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