Hi Sara,

All I can think of is a workaround, but its feasability depends on how many 
nodes you have and whether the boundaries are the same for all of them.

Say you want your nodes move the way you described. You first run setdest
with the maximum set to (x2-x1,y2-y1). That gives you a scenario where the
nodes move in an area of the desired size. Now you have to find a way to 
calculate your offset onto the position-information. I would recommend a 
tcl-script that reads your setdest file line-per-line and use a regular 
expression to add your x1 and x2 values to each line. That shouldn't be 
too hard.

Best,

-Matt




Am Mittwoch, 1. November 2006 02:00 schrieb [EMAIL PROTECTED]:
> Message: 5
> Date: Tue, 31 Oct 2006 08:42:57 +0000
> From: "sara MA" <[EMAIL PROTECTED]>
> Subject: [ns] how can I define minimum for x and y ...?
> To: ns-users@ISI.EDU
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; format=flowed
> 
> Hello guys:
> 
> When we use ./setdest to generate a topology, we set the maximum for x and 
> y, but is there any way that we can also set minimum for x and y?
> 
> I want to say like node(1) moves between (x1,y1) and (x2,y2) in which 
> x1<x2<X, y1<y2<Y where X or Y are the borders of my simulation.
> 
> Please help me if you have any idea.
> 
> Thanks,
> Sara

Reply via email to