next up previous contents index
Next: 4. Routing Up: 22.2 Ns commands for Previous: 22.2.3 Agent and Features

22.2.4 Some Generic Commands

$ns color color-id defines color index for nam. Once specified, color-id can be used in place of the color name in nam traces.

$ns trace-annotate annotation inserts an annotation in nam. Notice that if <annotation> contains white spaces, it must be quoted using the double quote. An example of this would be $ns at $time "$ns trace-annotate Ëvent A happenedSPMquot;" This annotation appears in the nam window and is used to control playing of nam by events.




2000-08-24