[ns] velocity of a mobile node (was Position of a mobile node)
sun10 at unbc.ca
sun10 at unbc.ca
Thu Feb 12 10:52:32 PST 2004
Hi,
Check mobilenode.h .cc , you can find the functions you need.
speed() can return the current speed of the mobilenode.
> Hi. Similar to getting position of a mobile node,s
> there a way to get velocity of a mobile node somehow?
> I was thinking if not, i will have to read that
> information out from the scenario file each time i
> need the info.that may be quite slow.if anyone has any
> better suggestins please let me know.
> Thanks in advance,
> Vin
> --- Padmaparna Haldar <haldar at ISI.EDU> wrote:
>>
>>
>> Look in mobilenode.cc. I think the function is
>> called getLoc().
>> --PAdma
>>
>> On Wed, 11 Feb 2004, Jack Wang wrote:
>>
>>
>> >
>> > Hi all:
>> >
>> > How to obtain the current position of a mobile
>> node in NS2? Is there a
>> > function in NS2 that can return the current
>> location of a mobile node?
>> >
>> > Thanks in advance.
>> >
>> > Jack
>> >
>> >
>>
> _________________________________________________________________
>> > Add photos to your messages with MSN 8. Get 2
>> months FREE*.
>> > http://join.msn.com/?page=features/featuredemail
>> >
>>
>> --
>> ------------------------------------------------
>> Be true to your work, your word, and your friend.
>> --Thoreau
>>
>> Padmaparna Haldar
>>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online.
> http://taxes.yahoo.com/filing.html
>
More information about the Ns-users
mailing list