[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] =?utf-8?B?562U5aSNOiBbbnNdIOetlOWkjTogW25zXSB3aGF0J3MgdGhlIG1lYW5pbmcgb2Yg?==?utf-8?B?InNldCB3YWRkciIgKHBjZik=?=



oh, i see. thank u .
but can u tell me what  the use of address?
i know the position information can be used to calculate the distance from mobile node to base station.
what the use of address?
thank u for u warm heart

Best Regard

JIN Xiaohui
tel: 029-8201002
National Key Lab. of Integrated Service Network
Xidian univ. 710071, P.R.China 

-----原始邮件-----
发件人: [email protected] [mailto:[email protected]]代表 Anders Lindgren
发送时间: 2001年9月20日 22:19
收件人: JIN Xiaohui
抄送: ns
主题: Re: [ns] ′ð¸′: [ns] what's the meaning of "set waddr" (pcf)




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