next up previous contents index
Next: Session Routing Up: 23.5 Protocol Internals Previous: Direct Routing Static Routing

The procedure []compute-routes../ns-2/ns-lib.tclRouteLogic::compute-routes in the RouteLogic../ns-2/ns-lib.tcl first creates the adjacency matrix, and then invokes the C++ method, []compute_routes of the shadow object. Finally, the procedure retrieves the result of the route computation, and inserts the appropriate routes at each of the nodes in the topology.

The class only defines the procedure []init-all../ns-2/route-proto.tclAgent/rtProto/Static::init-all that invokes []compute-routes.