Functions | Variables
lqm.c File Reference
#include "include/lqm.h"
#include "include/global.h"
#include "include/dijkstra.h"
#include "include/wmp_utils.h"
#include "include/nstat.h"
Include dependency graph for lqm.c:

Go to the source code of this file.

Functions

char f_lqm (char val)
void fill_lqm (char val)
void free_lqm ()
void init_lqm (int m_size)
void lqm_backup ()
void lqm_calculate_distances (void)
void lqm_compute_prob (char **lqm)
void lqm_copy_to (char **dest, char **src)
int lqm_get_distance (char i, char j)
int lqm_get_num_hops (int i, int j)
char ** lqm_get_ptr (void)
char lqm_get_val (int i, int j)
int lqm_is_leaf (char id)
int lqm_prob_get_path (int src, int dest, char *path)
int lqm_prob_get_val (int src, int dest)
char ** lqm_prune (char **mlqm)
void lqm_restore ()
void lqm_set_f (char(*f)(char))
void lqm_set_val (int i, int j, char val)
void print_lqm3 (char *txt, char **lqm)
int wmpIsNetworkConnected (void)
int wmpIsNetworkConnectedBlocking (int timeout_ms)

Variables

static int ** A0
static int ** A1
static int copied = 0
static char(* fp )(char)
static int informed = 0
static THREAD_SEM_T isconn
static char ** lqm
static char ** lqm_copy
static char ** lqm_dist
char(*)(char) lqm_get_f ()
static char ** lqm_pruned
static int net_connected = 0
static int ** Next
static int size

Function Documentation

char f_lqm ( char  val)

Definition at line 50 of file lqm.c.

void fill_lqm ( char  val)

Definition at line 149 of file lqm.c.

void free_lqm ( void  )

Definition at line 110 of file lqm.c.

void init_lqm ( int  m_size)

Definition at line 65 of file lqm.c.

void lqm_backup ( void  )

Definition at line 240 of file lqm.c.

void lqm_calculate_distances ( void  )

Definition at line 195 of file lqm.c.

void lqm_compute_prob ( char **  lqm)

Definition at line 359 of file lqm.c.

void lqm_copy_to ( char **  dest,
char **  src 
)

Definition at line 338 of file lqm.c.

int lqm_get_distance ( char  i,
char  j 
)

Definition at line 262 of file lqm.c.

int lqm_get_num_hops ( int  i,
int  j 
)

Definition at line 163 of file lqm.c.

char** lqm_get_ptr ( void  )

Definition at line 175 of file lqm.c.

char lqm_get_val ( int  i,
int  j 
)

Definition at line 159 of file lqm.c.

int lqm_is_leaf ( char  id)

Definition at line 229 of file lqm.c.

int lqm_prob_get_path ( int  src,
int  dest,
char *  path 
)

Definition at line 389 of file lqm.c.

int lqm_prob_get_val ( int  src,
int  dest 
)

Definition at line 407 of file lqm.c.

char** lqm_prune ( char **  mlqm)

Definition at line 273 of file lqm.c.

void lqm_restore ( void  )

Definition at line 250 of file lqm.c.

void lqm_set_f ( char(*)(char)  f)

Definition at line 355 of file lqm.c.

void lqm_set_val ( int  i,
int  j,
char  val 
)

Definition at line 171 of file lqm.c.

void print_lqm3 ( char *  txt,
char **  lqm 
)

Definition at line 267 of file lqm.c.

int wmpIsNetworkConnected ( void  )

Allows knowing if the network is connected (i.e. all the nodes are up and working and connected among them)

Returns:
1 if connected 0 if disconnected

Definition at line 179 of file lqm.c.

int wmpIsNetworkConnectedBlocking ( int  timeout_ms)

Allows knowing if the network is connected (i.e. all the nodes are up and working and connected among them and if not, blocks the caller thread until connected

Parameters:
timeout_msspecify the maximum wait for connection (if timeout_ms = 0 wait forever)
Returns:
1 if connected 0 if disconnected

Definition at line 183 of file lqm.c.


Variable Documentation

int** A0 [static]

Definition at line 44 of file lqm.c.

int ** A1 [static]

Definition at line 44 of file lqm.c.

int copied = 0 [static]

Definition at line 238 of file lqm.c.

char(* fp)(char) [static]

Definition at line 48 of file lqm.c.

int informed = 0 [static]

Definition at line 45 of file lqm.c.

THREAD_SEM_T isconn [static]

Definition at line 46 of file lqm.c.

char** lqm [static]

Definition at line 43 of file lqm.c.

char ** lqm_copy [static]

Definition at line 43 of file lqm.c.

char ** lqm_dist [static]

Definition at line 43 of file lqm.c.

char(*)(char) lqm_get_f()

Definition at line 350 of file lqm.c.

char ** lqm_pruned [static]

Definition at line 43 of file lqm.c.

int net_connected = 0 [static]

Definition at line 45 of file lqm.c.

int ** Next [static]

Definition at line 44 of file lqm.c.

int size [static]

Definition at line 45 of file lqm.c.



ros_rt_wmp
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Mon Oct 6 2014 08:27:12