LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-12-2015, 05:27 AM   #1
ali_it
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 05:28 AM.
 
  


Reply


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 10: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 07: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 10:06 AM
how can i set a diskless node??/ ZAMO Linux - Server 1 04-04-2007 05:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:09 PM.

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