Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-12-2015, 06:27 AM   #1
LQ Newbie
Registered: May 2015
Posts: 9

Rep: Reputation: Disabled
problem in set of node mobility


for {set i 0} {$i < $val(nn)} { incr i } {
set xx [expr rand()*200]
set yy [expr rand()*200]
$n($i) set X_ $xx
$n($i) set Y_ $yy
$n($i) set Z_ 0.0
puts "n($i)"
$ns at 0.0 "$n($i) setdest [$n($i) set X_] [$n($i) set Y_] 0.0"
$ns at 0.0 "$n($i) setdest [$n($i) set X_] [$n($i) set Y_] 0.0"

$n(10) set X_ 0.0 #n(10) is Sink node
$n(10) set Y_ 0.0
$n(10) set Z_ 0.0

$ns at 0.1 "$n(10) setdest 200 0 10.0"
$ns at 0.2 "$n(10) setdest 200 200 10.0"
$ns at 0.3 "$n(10) setdest 0 200 10.0"
$ns at 0.4 "$n(10) setdest 0 0 10.0"

after execute of t.tcl file:
ns: _o234 setdest 200 0 10.0:
(_o234 cmd line 1)
invoked from within
"_o234 cmd setdest 200 0 10.0"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o234" line 2)
(SplitObject unknown line 2)
invoked from within
"_o234 setdest 200 0 10.0"

please help me

Last edited by ali_it; 06-12-2015 at 06:28 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
rhel 2 node cluster: resources do not move to second node when node halted tapuhi Linux - Software 1 03-01-2015 11:41 AM
LXer: Set up Two Node RDO Juno ML2&OVS&VXLAN Cluster runnig Docker Hypervisor on Compute Node LXer Syndicated Linux News 0 02-07-2015 08:31 AM
How to transfer the services from node 1 to node 2 ,if node 1 is directly turned off sankarg304 Linux - Server 1 12-12-2012 11:06 AM
how can i set a diskless node??/ ZAMO Linux - Server 1 04-04-2007 06:56 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration