6.1.0.0.1 Link procedures

The Link../ns-2/ns-link.tcl is implemented entirely in Otcl. The OTcl SimpleLink class uses the C++ LinkDelay class to simulate packet delivery delays. The instance procedures in the class Link are:

[]head../ns-2/ns-link.tclLink::head returns the handle for head
_
.
[]queue../ns-2/ns-link.tclLink::queue returns the handle for queue
_
.
[]link../ns-2/ns-link.tclLink::link returns the handle for the delay element, link
_
.
[]up../ns-2/ns-link.tclLink::up set link status to ``up'' in the dynamics
_
element. Also, writes out a trace line to each file specified through the procedure []trace-dynamics.
[]down../ns-2/ns-link.tclLink::down As with []up, set link status to ``down'' in the dynamics
_
element. Also, writes out a trace line to each file specified through the procedure []trace-dynamics.
[]up?../ns-2/ns-link.tclLink::up? returns status of the link. Status is ``up'' or ``down''; status is ``up'' if link dynamics is not enabled.
[]all-connectors../ns-2/ns-link.tclLink::all-connectors Apply specified operation to all connectors on the link.p An example of such usage is link all-connectors reset.
[]cost../ns-2/ns-link.tclLink::cost set link cost to value specified.
[]cost?../ns-2/ns-link.tclLink::cost? returns the cost of the link. Default cost of link is 1, if no cost has been specified earlier.

Tom Henderson 2014-12-17