<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
You can get the location coordinate of a node in the following way:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p style="margin: 0px; font: 11px Menlo; color: rgb(197, 197, 197); background-color: rgb(21, 21, 21); margin: 0px; background-color: rgb(21, 21, 21)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">Ptr<MobilityModel> mobility = m_node->GetObject<MobilityModel> ();</span></p>
<p style="margin: 0px; font: 11px Menlo; color: rgb(197, 197, 197); background-color: rgb(21, 21, 21); margin: 0px; background-color: rgb(21, 21, 21)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">Vector3D currentPosition = mobility->GetPosition();</span></p>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: calibri, arial, helvetica, sans-serif; font-size: 12pt; text-align: left; background-color: rgba(0, 0, 0, 0); display: inline !important;">You can first get the mobility model object from the node. Using the mobility
 model object, you can then get the coordinates of the node.</span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: calibri, arial, helvetica, sans-serif; font-size: 12pt; text-align: left; background-color: rgba(0, 0, 0, 0); display: inline !important;"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: calibri, arial, helvetica, sans-serif; font-size: 12pt; text-align: left; background-color: rgba(0, 0, 0, 0); display: inline !important;">-Muktadir</span></div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> ndnSIM <ndnsim-bounces@lists.cs.ucla.edu> on behalf of f179007 Ammarah Khalid <f179007@nu.edu.pk><br>
<b>Sent:</b> Thursday, November 14, 2019 11:23 PM<br>
<b>To:</b> Spyridon Mastorakis <smastorakis@unomaha.edu><br>
<b>Cc:</b> ndnsim@lists.cs.ucla.edu <ndnsim@lists.cs.ucla.edu><br>
<b>Subject:</b> Re: [ndnSIM] Location of Producer</font>
<div> </div>
</div>
<div>
<div dir="ltr">Sir, I want to get the position of Producer i.e. location coordinates using the Mobility Model.<br>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Fri, Nov 15, 2019 at 8:13 AM Spyridon Mastorakis <<a href="mailto:smastorakis@unomaha.edu">smastorakis@unomaha.edu</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div style="">I am not sure what exactly you want to do (I am not sure I understand the question either), but I would strongly suggest that you dive a bit deeper and understand how ndnSIM/NFD/ndn-cxx/ns-3 work before you try to move forward.
<div><br>
</div>
<div>Thanks,</div>
<div><br>
<div>
<div dir="auto" style="color:rgb(0,0,0); letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0); letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0); letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div>Spyridon (Spyros) Mastorakis<br>
Assistant Professor<br>
Computer Science Department<br>
University of Nebraska, Omaha<br>
Peter Kiewit Institute Room 175A<br>
<a href="https://sites.google.com/site/spyridonmastorakis" target="_blank">https://sites.google.com/site/spyridonmastorakis</a><br>
<br>
</div>
</div>
</div>
</div>
</div>
<div>
<blockquote type="cite">
<div>On Nov 13, 2019, at 2:47 AM, f179007 Ammarah Khalid <<a href="mailto:f179007@nu.edu.pk" target="_blank">f179007@nu.edu.pk</a>> wrote:</div>
<br>
<div>
<div dir="ltr">
<div>
<div>
<div>Hi Everyone!<br>
<br>
</div>
Is there any way to get the location of Producer ?<br>
<br>
</div>
Thanks and Regards,<br>
</div>
Ammarah Khalid<br>
</div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lists.cs.ucla.edu_mailman_listinfo_ndnsim&d=DwICAg&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=1uUSBxMJYubiyHX3Skvb6D9sh9r4oPeMCf98sZIwtH8&s=h_kBjRLipvNh-hEy-C02GdaIcPsBdvlWIx3QX6aEOEs&e=" target="_blank">https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lists.cs.ucla.edu_mailman_listinfo_ndnsim&d=DwICAg&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=1uUSBxMJYubiyHX3Skvb6D9sh9r4oPeMCf98sZIwtH8&s=h_kBjRLipvNh-hEy-C02GdaIcPsBdvlWIx3QX6aEOEs&e=</a>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
</div>
</body>
</html>