[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] =?utf-8?B?562U5aSNOiBbbnNdIHdoYXQncyB0aGUgbWVhbmluZyBvZiAic2V0IHdhZGRyIg==?==?utf-8?B?IChwY2Yp?=
On Thu, 20 Sep 2001, JIN Xiaohui wrote:
> the first is :
> "#create wireless nodes
> $ns_ node-config -wiredrouting -OFF
>
> for {set j 0} { $j < $opt(nn)} {incr j} {
> set node_($j) [$ns_ node [lindex $waddr [expr $j+1]] ] ..."
> there set node_(0) get the [1.0.1] from waddr, is it right? what does
Correct.
> the [1.0.1] means if it not means the position of node_(0)?
1.0.1 is the ADRESS, *not* the position, of node_(0) .
>
> the second position define the mobilenodes is:
> "#initial node position
> for {set i 0} {$i < $num_cbr} {incr i} {
> $ns_initial_node_pos $node_($i) [expr 20+0.12*$i]
> $node_($i) set X_ [expr 100-4*$i]
> $node_($i) set Y_ [expr 100+4*$i]
> ..."
> i think here is the right place to set the position of mobilenodes.
Yes, this sets the position of the nodes, but that has nothing to do with
the adressing of them.
/Anders