class SatRouteObject : public RouteLogic

A global route computation object/genie This class performs operations very similar to what "Simulator instproc compute-routes" does at OTcl-level, except it performs them entirely in C++. Single source shortest path routing is also supported.

Inheritance:


Public Methods

int command(int argc, const char * const * argv)
int data_driven_computation()
static SatRouteObject& instance()
void recompute()
void recompute_node(int node)
SatRouteObject()

Protected Fields

int data_driven_computation_
static SatRouteObject* instance_
int metric_delay_
int suppress_initial_computation_

Protected Methods

void compute_topology()
void dump()
for debugging only
int lookup(int src, int dst)
void* lookup_entry(int src, int dst)
void node_compute_routes(int node)
void populate_routing_tables(int node = -1)

Inherited from RouteLogic:

Public Fields

RouteLogic instvar default_node_rtprotos_
RouteLogic instvar node_rtprotos_
RouteLogic instvar rtprotos_

Public Methods

RouteLogic instproc append-addr {level addrstr}
RouteLogic instproc configure {}
virtual int lookup_flat(char* asrc, char* adst, int&result)
int lookup_hier(char* asrc, char* adst, int&result)
RouteLogic instproc notify {}
static void ns_strtok(char *addr, int *addrstr)
RouteLogic instproc register {proto args}

Protected Fields

adj_entry* adj_
int* C_
int* cluster_size_
int D_
int** hadj_
char*** hconnect_
int** hroute_
int* hsize_
int level_
route_entry* route_
int size_

Protected Methods

void alloc(int n)
void check(int)
void compute_routes()
void get_address(char * target, int next_hop, int index, int d, int size, int *src)
void hier_alloc(int size)
void hier_check(int index)
void hier_compute()
void hier_compute_routes(int index, int d)
void hier_init(void)
void hier_insert(int *src, int *dst, int cost)
void hier_print_hadj()
void hier_print_route()
void hier_reset(int *src, int *dst)
void insert(int src, int dst, double cost)
void insert(int src, int dst, double cost, void* entry)
void reset(int src, int dst)
void reset_all()
void str2address(const char*const* address, int *src, int *dst)

Documentation

A global route computation object/genie This class performs operations very similar to what "Simulator instproc compute-routes" does at OTcl-level, except it performs them entirely in C++. Single source shortest path routing is also supported.
SatRouteObject()

static SatRouteObject& instance()

void recompute()

void recompute_node(int node)

int command(int argc, const char * const * argv)

int data_driven_computation()

void compute_topology()

void populate_routing_tables(int node = -1)

int lookup(int src, int dst)

void* lookup_entry(int src, int dst)

void node_compute_routes(int node)

void dump()
for debugging only

static SatRouteObject* instance_

int metric_delay_

int suppress_initial_computation_

int data_driven_computation_


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

Adapted for the NS documentation page

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de