[ndnSIM] Accessing node from application

Anthony Dowling dowlinah at clarkson.edu
Mon Jun 12 11:27:34 PDT 2017


Spyridon,

That idea worked perfectly. Thank you very much.

Anthony

On Sat, Jun 10, 2017 at 2:43 PM, Spyridon (Spyros) Mastorakis <
mastorakis at cs.ucla.edu> wrote:

> Hi Anthony,
>
> I was wondering if you could build some simple API to pass a pointer to
> the instance of the mobility helper from your simulation scenario to your
> application. Then, you could use the GetDistanceSquaredBetween method to
> get the distance between 2 nodes or some other provided API of the NS-3
> mobility helper:
>
> https://www.nsnam.org/doxygen/classns3_1_1_mobility_helper.html#
> a4471ab3605ba031e02ee90fc43bf8c5d
>
> Thank you,
>
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/
> Internet Research Laboratory
> Computer Science Department
> UCLA
>
> > On Jun 10, 2017, at 10:14 AM, Anthony Dowling <dowlinah at clarkson.edu>
> wrote:
> >
> > Hello all,
> >
> > I realize now that I worded this poorly. What I need to find is a way to
> access the location of a node from within an application. If someone has
> experience or an idea on how I can do that, it would be much appreciated.
> >
> > Thanks,
> > Anthony Dowling
> > Clarkson University
> >
> > On Fri, Jun 9, 2017 at 5:51 PM, Anthony Dowling <dowlinah at clarkson.edu>
> wrote:
> > John,
> >
> > Yes, I'm trying to access the node container from within a custom
> application, so I can access the nodes mobility model to extract it's
> location.
> >
> > On Jun 9, 2017 5:41 PM, "John Baugh" <jpbaugh at umich.edu> wrote:
> > Anthony,
> >
> > Do you have a NodeContainer?
> >
> > John
> >
> > On Jun 9, 2017 3:51 PM, "Anthony Dowling" <dowlinah at clarkson.edu> wrote:
> > Hello All,
> >
> > I am working on a way to put the location coordinates of a node into the
> name of an interest packet to streamline forwarding in an adhoc
> environment. However, I am having trouble finding a way to get a reference
> to the node the application is on from within the application. Could
> someone help me with this?
> >
> > Thanks for your time,
> > Anthony Dowling
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170612/99167829/attachment.html>


More information about the ndnSIM mailing list