Route
Object Hierarchy:
Description:
public class Route : Object
A path to a known destination.
An instance of this class represents a path to a known destination d. The instance members are: `gw': the gateway of the route. Our next
hop. It is an instance of the | class AggregatedNeighbour. `rem_at_gw': a REM (Route Efficience Measure) of the path from the | gateway to
the destination d. It is an instance of the class | REM or a derivative. `hops': a List of HCoord of the hops represented by this | path
from the gateway gw to the destination d. | gw and d are not included. `gid': a instance of GNodeid, it is the ID of the gnode that this
class | represents, as it is reported by this path.
Namespace: Ntk.Core
Package: Netsukuku - vala port
Content:
Properties:
Static methods:
- public static
int
compare_func (Route a, Route b)
The route 'this' is better (greater) than 'other' if its rem is better
- public static
bool
equal_func_in_routenode (Route a, Route b)
Used to test between 2 routes in the same RouteNode (e.g. to remove a
route from the collection of routes) In such a comparison the only member we can check is the gateway.
Creation methods:
Methods:
- public
bool
contains (HCoord hop)
The path contains a specified hop?
- public REM rem_modify (REM newrem_at_gw,
List
<HCoord> new_hops, GNodeID new_gid)
- public CloneRoute clone ()
Returns an instance of CloneRoute that is a copy of the current status
of this Route. If this Route changes in some way, the cloned instance will not. The class CloneRoute has some of the methods that
Route has, those needed to perform the task of choosing the settings to impose in the kernel routing tables.
Fields: