[ns] Logging the movement of mobile nodes

2010-01-09 Thread 08DI005 resmybaby
Hi for logging of the position of mobile nodes the following code will work sure..i tested it and proved proc log-movement {} { global logtimer ns_ ns set ns $ns_ source ../mobility/timer.tcl Class LogTimer -superclass Timer LogTimer instproc timeout {} { global opt node_; for {set i

[ns] Aggregation of Nodes

2010-01-09 Thread 08DI005 resmybaby
hi Anyone is having the codes for the aggregation of data in VANET done in NS2 plz forward it...Also the clustering of the nodes and selection of cluster head..either tcl code or C++ codes...Thanks in advance... -- Resmy Baby 08DI005 NIE