Hi Gülşah,
I just wanted to add a little bit to Andreas' point: the channel module
returns you a list of potential interferers maintained by the simulation.
If you had "real" nodes, they couldn't just ask the global simulator
about neighbors - there isn't one!. They would have to find out some
other way: by sending and listening to 'hello' messages, or by
overhearing neighbors' traffic, for example.
Doing that would have communication overhead - there will be more data
on the channel - and energy overhead. The data would also have some
inaccuracy, since information will always be a little out of date, or
you might not hear some message due to interference, or whatever.
If you are trying to study the performance of a protocol, it is
important to think about which aspects of the protocol need to modeled
in operation and which can be handled in the simulation. This will
depend on your specific needs.
Regards,
Laura
gülşah bulut wrote:
> Hi Andreas and Karl.
> Thank you for your attention and quick responses to my newbee questions :)
> Yesterday, I sent a mail about the paper Mixim Vision, to you and some
> other stuff (whose names were on the paper)
> Then I found mail group by coincidence.
> And it is nice to come up with you here.
> My new question is;
> Do you know anybody who works on clustering on adhoc networks and uses
> omnetpp and mixim for simulation purposes?
> This might accelerate my studies, may be..
> else I will ask all my silly questions to you :D
> I guess you may not bear to such silly questions!
> warm regards, gulsah
> > Â From there on you will have to ask the Omnet API on details how
> > gülşah bulut schrieb:
> > > Thank you Karl, for your quick response :)
> > > Could you post or point a reference a small code snippet that does
> > > what you say ;
> > > - to get the pointer ChannelControl, getGateList() and so on..
> > >
> > > Actually, I have to code DMAC (distributed mobility adaptive
> > > clustering) algorithm. The clustering algorithm have to
> calculate some
> > > sort of weight in each node. Also the nodes have to store one-hop
> > > neighbors as a list.. This is the reason of my question?
> > > Do you think that I can do it by the way you tell? Or is there any
> > > other smart way of doing this?
> > >
> > > On Thu, Nov 5, 2009 at 1:21 PM, Karl Wessel
> > > <
wesse...@googlemail.com <mailto:
wesse...@googlemail.com>
> <mailto:
wesse...@googlemail.com
> <mailto:
wesse...@googlemail.com>>> wrote:
> > >
> > >
> > > Â Â Hi,
> > >
> > > Â Â You can try the following:
> > >
> > > Â Â Get a pointer to the ChannelControl module.
> > > Â Â Call its "getGateList()" method which will give you a
> list of gates
> > > to all neighboring hosts.
> > > Â Â Â From these gates you can get the destination gate (have
> a look at
> > > Â Â class
> > > Â Â cGate in the API).
> > > Â Â And from the destination gate you can get the ownerModule
> which
> > > should be the destinations host module.
> > > Â Â Its not very convenient but should work.
> > >
> > > Â Â Karl
> > >
> > > Â Â PireTozu schrieb:
> > > Â Â > Hi Elwin,
> > > Â Â > Have you found a solution for your problem?
> > > Â Â > I have the same situation, if any idea, could you
> please inform me?
> > > Â Â >
> > > Â Â > Piretozu
> > > Â Â >
> > >   > On 2 Kasım, 04:15, Elwin <
maoyu...@gmail.com
> <mailto:
maoyu...@gmail.com>
> > >
> > > Â Â <mailto:
maoyu...@gmail.com <mailto:
maoyu...@gmail.com>>>
> wrote:
> > > Â Â >> How can I get the neighbor hosts of a host in mobility
> framework?
> > > Â Â >> Here I mean the hosts that connect to the host or in
> the range
> > >
> > > Â Â of the
> > >
> > > Â Â >> host, not the neighbors dynamically found by replying.
> >
> > >
>
>
>
> >