Hi Zakia,

In the paper "An Evaluation of Inter-Vehicle Ad Hoc Networks Based on
Realistic Vehicular Traces" (MOBIHOC 2006), authors wrote: 
As we want to make sure that only vehicles that at a given moment in time
are participating in the road traffic in the area take part in routing, we
add a simple extension to the ns-2 simulator. When a node enters the area, a
special Tcl command is issued that activates the wireless interface of a
node. Nodes that end their trip inside the selected area (or leave the area)
switch off their wireless interface.

So I guess we have to find this Tcl command (I know that in Mannasim, node
could be switch OFF/ON).

We keep in touch.

Best regards,

Jonathan Petit


Zakia Khalfallah wrote:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Hi friends,
> I'm simulating urban Vanet traffic . i have a correct 
> scenario file for real  traces of the mobility that i found in a sure 
> site http://www.lst.inf.ethz.ch/research/ad-hoc/car-traces/. This is a
> short par of the file :
> 
> $ns_ at 0.0 "$node_(0) switch OFF" ;# set_X,Y,Z  
> $node_(0) set X_ 0.000000
> $node_(0) set Y_ 0.000000
> $node_(0) set Z_ 0.0
> $ns_ at 0.000000 "$node_(0) setdest 2763.122123 1004.967441
> 1000000000.000000" ;# init_node
> $ns_ at 0.010000 "$node_(0) switch ON" ;# inside  
> $ns_ at 0.010000 "$node_(0) setdest 2734.639531 1026.382130 13.844272" ;#
> 
> The problem that NS detect an error when reading the two command "switch
> OFF" and "switch ON" . 
> They are never used in a classical NS scenario file.
> So, how can integrate them in the NS code ? and in which file ( .cc , .tcl
> etc ...) ?
> Did someone encounter the same problem or have an idea and can help me
> please?
> Thank you,
> 
> 
>                                         
> 
> 

-- 
View this message in context: 
http://old.nabble.com/scenario-file-tp31791608p31806906.html
Sent from the ns-users mailing list archive at Nabble.com.

Reply via email to