Monday, November 21, 2011

[ns] Using IF-Else condition in TCL script and getting current position of mobile node

Hi All,

How shall i implement a IF/ELSE condition in my TCL script for Wireless
simulation.

Consider the below scenario:

I have 8 nodes out of which 7 are static and 1 is mobile node.

Now, when the mobile node reached a specific co-ordinate then node 1 start
transmitting data to the mobile node.
Again the mobile node will move to destination 2 co-ordinates, then node 2
will start transmitting and so on.

Now the way i am planning to do this is by using IF/ELSE condition and to
get the current position of mobile node???

Can someone please help me???

1 comment:

  1. i also want the code for such type of problem means if statement

    ReplyDelete

Counter

blogger analytics