RouteInfo Class Reference

#include <metric.h>

Collaboration diagram for RouteInfo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RouteInfo ()
virtual ~RouteInfo ()
void addChild (RouteInfo *c)
int getNChild ()
RouteInfogetChild (int i)
void addFather (RouteInfo *f)
RouteInfogetFather ()
void setModuleId (int id)
int getModuleId ()
void addMetric (Metric *m)
MetricgetMetric (const char *m)
MetricgetMetric (int i)
int getNMetric ()
Reachability reachability ()
void setReachability (Reachability a)

Protected Attributes

RouteInfofather_
RouteInfo ** child_
int nChild_
int lengthChild_
Reachability reachability_
MetricList list_
int moduleId_

Detailed Description

This structure contains information about the accessibility of a particular MrclAddress. When a RoutingModule wants to know whether any other RoutingModule can reach a particular address, it calls the method isReachable which returns an array of these structures

Definition at line 111 of file metric.h.


Member Data Documentation

Reachability RouteInfo::reachability_ [protected]

A reachability awareness which can be used in order to give information about how the destination can be reached (e.g. for a reactive routing protocol it could say "I can try")

Definition at line 140 of file metric.h.

Referenced by reachability(), RouteInfo(), and setReachability().

MetricList RouteInfo::list_ [protected]

The list of the eported metrics

Definition at line 144 of file metric.h.

Referenced by addMetric(), getMetric(), and getNMetric().


The documentation for this class was generated from the following files:
Generated on Wed Nov 26 15:52:11 2008 for NS-MIRACLE library by  doxygen 1.5.2