Wiselib
|
PK Judged Coloring Algorithm. More...
#include <PKJudged_Coloring.h>
Public Types | |
typedef OsModel_P | OsModel |
typedef Radio_P | Radio |
typedef Debug_P | Debug |
typedef OsModel_P::Timer | Timer |
typedef PKJudgedColoring < OsModel, Radio, Debug > | self_type |
typedef TreeRouting< OsModel, Timer, Radio, Debug > | tree_route |
typedef wiselib::StaticArrayRoutingTable < OsModel, Radio, 8, wiselib::ToraRoutingTableValue < OsModel, Radio > > | ToraRoutingTable |
typedef ToraRouting< OsModel, ToraRoutingTable, Radio, Debug > | tora_routing_t |
typedef ToraRoutingMessage < OsModel_P, Radio > | tora_message |
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 TreeRoutingMessage < OsModel, Radio > | tree_message |
typedef TreeBroadcastMessage < OsModel, Radio > | tree_broad_message |
typedef JudgedColoringMessage < OsModel, Radio > | coloring_message |
typedef StlMapColorTable < OsModel, Radio, node_id_t > | ColorTable |
typedef ColorsTable< OsModel, Radio > | ColorsSorted |
typedef OsModel_P | OsModel |
typedef Radio_P | Radio |
typedef Debug_P | Debug |
typedef OsModel_P::Timer | Timer |
typedef PKJudgedColoring < OsModel, Radio, Debug > | self_type |
typedef TreeRouting< OsModel, Timer, Radio, Debug > | tree_route |
typedef OsModel::Os | Os |
typedef wiselib::StaticArrayRoutingTable < OsModel, Radio, 8, wiselib::ToraRoutingTableValue < OsModel, Radio > > | ToraRoutingTable |
typedef ToraRouting< OsModel, ToraRoutingTable, Radio, Debug > | tora_routing_t |
typedef ToraRoutingMessage < OsModel_P, Radio > | tora_message |
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 TreeRoutingMessage < OsModel, Radio > | tree_message |
typedef TreeBroadcastMessage < OsModel, Radio > | tree_broad_message |
typedef JudgedColoringMessage < OsModel, Radio > | coloring_message |
typedef StlMapColorTable < OsModel, Radio, node_id_t > | ColorTable |
typedef ColorsTable< OsModel, Radio > | ColorsSorted |
Public Member Functions | |
void | send_message (uint payload, uint source, uint8_t msg_id, uint destination, uint8_t routing_type) |
void | send_special_message (uint8_t *payload, uint source, uint8_t msg_id, uint destination, uint8_t routing_type) |
int | fm (int arr[], int b, int n) |
void | isort (int arr[], int n) |
void | set_judge () |
int | get_judge () |
int | get_color () |
int | get_alg_messages () |
void | set_color (int color_) |
void | set_max_color (int max_color_) |
uint16_t | get_is_judge () |
uint16_t | has_min_priority () |
uint16_t | active_colors_size () |
void | set_judge_count (int jc) |
int | get_appointed_judges () |
uint16_t | add_neighboor (uint neighboor_id, uint color_num) |
uint16_t | add_node_color (uint node_id, uint color_num) |
void | set_world_size (int nc) |
int | get_game_started () |
void | try_start () |
uint16_t | has_max_priority () |
int | get_ended_all () |
uint16_t | is_terminated () |
void | change_node_color (uint node_id, uint color_num) |
void | change_neigh_color (uint node_id, uint color_num) |
void | set_tree_routing (tree_route *tree) |
void | set_tora_routing (tora_routing_t *tora) |
int | compare (const void *a, const void *b) |
void | init_question () |
void | init (Radio &radio, Timer &timer, Debug &debug) |
void | destruct () |
void | send_message (uint payload, uint source, uint8_t msg_id, uint destination, uint8_t routing_type) |
void | send_special_message (uint8_t *payload, uint source, uint8_t msg_id, uint destination, uint8_t routing_type) |
int | fm (int arr[], int b, int n) |
void | isort (int arr[], int n) |
void | set_os (Os *os) |
Os * | os () |
void | set_judge () |
int | get_color () |
void | set_color (int color_) |
void | set_max_color (int max_color_) |
uint16_t | get_is_judge () |
uint16_t | has_min_priority () |
uint16_t | active_colors_size () |
uint16_t | add_neighboor (uint neighboor_id, uint color_num) |
uint16_t | add_node_color (uint node_id, uint color_num) |
void | change_node_color (uint node_id, uint color_num) |
void | set_tree_routing (tree_route *tree) |
void | set_tora_routing (tora_routing_t *tora) |
int | compare (const void *a, const void *b) |
void | init_question () |
Construction / Destruction | |
PKJudgedColoring () | |
~PKJudgedColoring () | |
PKJudgedColoring () | |
~PKJudgedColoring () | |
Routing Control | |
void | enable (void) |
void | disable (void) |
void | enable (void) |
void | disable (void) |
Methods called by Timer | |
void | timer_elapsed (void *userdata) |
void | timer_elapsed (void *userdata) |
Starts the game for the server | |
void | in_game (void *userdata) |
void | in_game (void *userdata) |
Routing Functionality | |
void | send (node_id_t receiver, size_t len, block_data_t *data) |
void | send (node_id_t receiver, size_t len, block_data_t *data) |
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) |
void | bootstrap_message () |
and send bootstraping message to the network | |
void | broadcast_judge (uint8_t) |
the judge known to everybody | |
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 | |
void | bootstrap_message () |
and send bootstraping message to the network | |
void | broadcast_judge (uint8_t) |
the judge known to everybody | |
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 |
PK Judged Coloring Algorithm.
A PK judged coloring algorithm.
typedef Radio::block_data_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::block_data_t |
typedef Radio::block_data_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::block_data_t |
typedef JudgedColoringMessage<OsModel, Radio> wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::coloring_message |
typedef JudgedColoringMessage<OsModel, Radio> wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::coloring_message |
typedef ColorsTable<OsModel, Radio> wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::ColorsSorted |
typedef ColorsTable<OsModel, Radio> wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::ColorsSorted |
typedef StlMapColorTable<OsModel, Radio, node_id_t> wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::ColorTable |
typedef StlMapColorTable<OsModel, Radio, node_id_t> wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::ColorTable |
typedef Debug_P wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::Debug |
typedef Debug_P wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::Debug |
typedef Timer::millis_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::millis_t |
typedef Timer::millis_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::millis_t |
typedef Radio::node_id_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::node_id_t |
typedef Radio::node_id_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::node_id_t |
typedef OsModel::Os wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::Os |
typedef OsModel_P wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::OsModel |
typedef OsModel_P wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::OsModel |
typedef Radio_P wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::Radio |
typedef Radio_P wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::Radio |
typedef PKJudgedColoring<OsModel, Radio, Debug> wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::self_type |
typedef PKJudgedColoring<OsModel, Radio, Debug> wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::self_type |
typedef Radio::size_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::size_t |
typedef Radio::size_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::size_t |
typedef OsModel_P::Timer wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::Timer |
typedef OsModel_P::Timer wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::Timer |
typedef ToraRoutingMessage<OsModel_P, Radio> wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::tora_message |
typedef ToraRoutingMessage<OsModel_P, Radio> wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::tora_message |
typedef ToraRouting<OsModel, ToraRoutingTable, Radio, Debug> wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::tora_routing_t |
typedef ToraRouting<OsModel, ToraRoutingTable, Radio, Debug> wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::tora_routing_t |
typedef wiselib::StaticArrayRoutingTable<OsModel, Radio, 8, wiselib::ToraRoutingTableValue<OsModel, Radio> > wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::ToraRoutingTable |
typedef wiselib::StaticArrayRoutingTable<OsModel, Radio, 8, wiselib::ToraRoutingTableValue<OsModel, Radio> > wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::ToraRoutingTable |
typedef TreeBroadcastMessage<OsModel, Radio> wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::tree_broad_message |
typedef TreeBroadcastMessage<OsModel, Radio> wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::tree_broad_message |
typedef TreeRoutingMessage<OsModel, Radio> wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::tree_message |
typedef TreeRoutingMessage<OsModel, Radio> wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::tree_message |
typedef TreeRouting<OsModel, Timer, Radio, Debug> wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::tree_route |
typedef TreeRouting<OsModel, Timer, Radio, Debug> wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::tree_route |
wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::PKJudgedColoring | ( | ) |
wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::~PKJudgedColoring | ( | ) |
wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::PKJudgedColoring | ( | ) |
wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::~PKJudgedColoring | ( | ) |
uint16_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::active_colors_size | ( | ) | [inline] |
uint16_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::active_colors_size | ( | ) | [inline] |
uint16_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::add_neighboor | ( | uint | neighboor_id, |
uint | color_num | ||
) | [inline] |
uint16_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::add_neighboor | ( | uint | neighboor_id, |
uint | color_num | ||
) | [inline] |
uint16_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::add_node_color | ( | uint | node_id, |
uint | color_num | ||
) | [inline] |
uint16_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::add_node_color | ( | uint | node_id, |
uint | color_num | ||
) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::bootstrap_message | ( | ) |
and send bootstraping message to the network
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::bootstrap_message | ( | ) |
and send bootstraping message to the network
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::broadcast_judge | ( | uint8_t | judge_id | ) |
the judge known to everybody
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::broadcast_judge | ( | uint8_t | ) |
the judge known to everybody
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::change_neigh_color | ( | uint | node_id, |
uint | color_num | ||
) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::change_node_color | ( | uint | node_id, |
uint | color_num | ||
) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::change_node_color | ( | uint | node_id, |
uint | color_num | ||
) | [inline] |
int wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::compare | ( | const void * | a, |
const void * | b | ||
) | [inline] |
int wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::compare | ( | const void * | a, |
const void * | b | ||
) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::destruct | ( | void | ) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::disable | ( | void | ) |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::disable | ( | void | ) |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::enable | ( | void | ) |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::enable | ( | void | ) |
int wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::fm | ( | int | arr[], |
int | b, | ||
int | n | ||
) | [inline] |
int wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::fm | ( | int | arr[], |
int | b, | ||
int | n | ||
) | [inline] |
int wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::get_alg_messages | ( | ) | [inline] |
int wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::get_appointed_judges | ( | ) | [inline] |
int wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::get_color | ( | ) | [inline] |
int wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::get_color | ( | ) | [inline] |
uint16_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::get_color_nodes | ( | ) |
the number of neighboors and who are they if debug
uint16_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::get_color_nodes | ( | ) |
the number of neighboors and who are they if debug
int wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::get_ended_all | ( | ) | [inline] |
int wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::get_game_started | ( | ) | [inline] |
uint16_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::get_is_judge | ( | ) | [inline] |
uint16_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::get_is_judge | ( | ) | [inline] |
int wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::get_judge | ( | ) | [inline] |
uint16_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::get_neighboors | ( | ) |
the number of neighboors and who are they if debug
uint16_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::get_neighboors | ( | ) |
the number of neighboors and who are they if debug
uint16_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::has_max_priority | ( | ) | [inline] |
uint16_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::has_min_priority | ( | ) | [inline] |
uint16_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::has_min_priority | ( | ) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::in_game | ( | void * | userdata | ) |
color_nodes.erase(iter_color_nodes);
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::in_game | ( | void * | userdata | ) |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::init | ( | Radio & | radio, |
Timer & | timer, | ||
Debug & | debug | ||
) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::init_question | ( | ) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::init_question | ( | ) | [inline] |
uint16_t wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::is_terminated | ( | ) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::isort | ( | int | arr[], |
int | n | ||
) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::isort | ( | int | arr[], |
int | n | ||
) | [inline] |
Os* wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::os | ( | ) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::receive | ( | node_id_t | from, |
size_t | len, | ||
block_data_t * | data | ||
) |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::receive | ( | node_id_t | from, |
size_t | len, | ||
block_data_t * | data | ||
) |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::send | ( | node_id_t | receiver, |
size_t | len, | ||
block_data_t * | data | ||
) |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::send | ( | node_id_t | receiver, |
size_t | len, | ||
block_data_t * | data | ||
) |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::send_message | ( | uint | payload, |
uint | source, | ||
uint8_t | msg_id, | ||
uint | destination, | ||
uint8_t | routing_type | ||
) |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::send_message | ( | uint | payload, |
uint | source, | ||
uint8_t | msg_id, | ||
uint | destination, | ||
uint8_t | routing_type | ||
) |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::send_special_message | ( | uint8_t * | payload, |
uint | source, | ||
uint8_t | msg_id, | ||
uint | destination, | ||
uint8_t | routing_type | ||
) |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::send_special_message | ( | uint8_t * | payload, |
uint | source, | ||
uint8_t | msg_id, | ||
uint | destination, | ||
uint8_t | routing_type | ||
) |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::set_color | ( | int | color_ | ) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::set_color | ( | int | color_ | ) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::set_judge | ( | ) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::set_judge | ( | ) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::set_judge_count | ( | int | jc | ) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::set_max_color | ( | int | max_color_ | ) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::set_max_color | ( | int | max_color_ | ) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::set_os | ( | Os * | os | ) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::set_tora_routing | ( | tora_routing_t * | tora | ) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::set_tora_routing | ( | tora_routing_t * | tora | ) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::set_tree_routing | ( | tree_route * | tree | ) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::set_tree_routing | ( | tree_route * | tree | ) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::set_world_size | ( | int | nc | ) | [inline] |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::timer_elapsed | ( | void * | userdata | ) |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::timer_elapsed | ( | void * | userdata | ) |
void wiselib::PKJudgedColoring< OsModel_P, Radio_P, Debug_P >::try_start | ( | ) | [inline] |