[ndnSIM] Knowing the Location Coordinates of a Specific Node

Junxiao Shi shijunxiao at email.arizona.edu
Fri Nov 15 06:45:23 PST 2019


Hi Ammarah

   1. Retrieve Ptr<Node> by ID.

   https://www.nsnam.org/docs/release/3.30/doxygen/classns3_1_1_node_list.html#a80ac09977d48d29db5c704ac8483cf6c
   2. Retrieve MobilityModel aggregated to the Node.

   https://www.nsnam.org/docs/release/3.30/doxygen/classns3_1_1_mobility_model.html


   https://www.nsnam.org/docs/release/3.30/manual/html/object-model.html#aggregation

   3. Get position from MobilityModel.

   https://www.nsnam.org/docs/release/3.30/doxygen/classns3_1_1_mobility_model.html#aee61a90f5598aea280747cf96f3ee853


Yours, Junxiao

On Fri, Nov 15, 2019 at 9:25 AM f179007 Ammarah Khalid <f179007 at nu.edu.pk>
wrote:

> Hi Everyone!
>
> How can I get the location coordinates of a specific node by giving it's
> ID?
> For example, I want to know the coordinates of Node with id 2. How can I
> do this?
>
> Thanks and Regards,
> Ammarah Khalid.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20191115/84ba427d/attachment.html>


More information about the ndnSIM mailing list