next up previous contents index
Next: 23.4.1.0.4 Agent/rtProto../ns-2/route-proto.tcl Up: 23.4.1 The classes Previous: 23.4.1.0.2 rtObject../ns-2/route-proto.tcl

23.4.1.0.3 The rtPeer../ns-2/route-proto.tcl

is a container class used by the protocol agents. Each object stores the address of the peer agent, and the metric and preference for each route advertised by that peer. A protocol agent will store one object per peer. The class maintains the instance variable addr_, and the instance variable arrays, metric_ and rtpref_; the array indices are the destination node handles.

The class instance procedures, []metric../ns-2/route-proto.tclrtPeer::metric and []preference../ns-2/route-proto.tclrtPeer::preference, take one destination and value, and set the respective array variable. The procedures, []metric?../ns-2/route-proto.tclrtPeer::metric? and []preference?../ns-2/route-proto.tclrtPeer::preference?, take a destination and return the current value for that destination. The instance procedure []addr?../ns-2/route-proto.tclrtPeer::addr? returns the address of the peer agent.




2000-08-24