This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set ns [new Simulator] | |
| #Define different colors for data flows (for NAM) | |
| $ns color 1 Blue | |
| $ns color 2 Red | |
| #Open the Trace files | |
| set file1 [open out.tr w] | |
| set winfile [open WinFile w] | |
| $ns trace-all $file1 |