[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trace format



Sarah Liu wrote:
> 
> Hi,
>     I am a new user of ns-2. Right now, I am trying to modify the tracing
> format that my simulation program can get. I added a trace function in my
> CBT class and a trace class under the Agent/Message, but it doesn't work
> properly. So could you give me some suggestions on how to change the trace
> format in the output ".tr" file?

Take a look at "void Trace::format(int tt, int s, int d, Packet* p)" in
"trace.cc".
You will find a description in "ns Notes and Documentation" chap. 14.4 

Roman

-- 
--------------------------------------------------------
Roman Pletka                [email protected]
c/o Sanitas P2/213                         Bruggeregg 19
CH-8802 Kilchberg                        CH-9100 Herisau
Office: ++41 (0)724 89 76      Tf.: ++41-(0)71 352 28 62
Home:   ++41 (0)716 72 32      Fax: ++41-(0)71 352 48 62
* *  Also on WWW: http://studwww.eurecom.fr/~pletka  * *
--------------------------------------------------------