<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">unfortunately, I am not familiar with the mobility models of NS-3.</div><div class=""><br class=""></div><div class="">You can try to use the ScheduleWithContext method and see if that will work:</div><div class=""><br class=""></div><div class=""><a href="https://www.nsnam.org/doxygen/classns3_1_1_simulator.html#a5ba9b2de598375791433f1bb9ba9ca83" class="">https://www.nsnam.org/doxygen/classns3_1_1_simulator.html#a5ba9b2de598375791433f1bb9ba9ca83</a></div><div class=""><a href="http://thread.gmane.org/gmane.network.simulator.ns3.user/31400" class="">http://thread.gmane.org/gmane.network.simulator.ns3.user/31400</a></div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div></div></div></div><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 7, 2017, at 12:50 PM, Rajvardhan Deshmukh <<a href="mailto:rdeshmukh@umass.edu" class="">rdeshmukh@umass.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class=""><br class="">-------- Original Message --------<br class="">Subject: Fwd: Re: Inducing waiting delay in nodes<br class="">Date: 2017-03-06 12:16<br class="">From: Rajvardhan Deshmukh <<a href="mailto:rdeshmukh@umass.edu" class="">rdeshmukh@umass.edu</a>><br class="">To: <a href="mailto:ndnsim@lists.cs.ucla.edu" class="">ndnsim@lists.cs.ucla.edu</a><br class=""><br class=""><blockquote type="cite" class="">Thanks Spyridon i renamed the strategy and the .cpp and hpp names and<br class="">it<br class="">worked.<br class="">Also, i wanted to get the position of the nodes in the forwarding<br class="">strategy.<br class="">1.i tried directly using the<br class="">using namespace ns3;<br class="">using namespace fw;<br class="">Ptr<MobilityModel>model=GetObject<MobilityModel>();<br class="">Vector position= model.GetPosition();<br class="">-------------------------<br class="">error: 'GetObject' was not declared in this scope<br class=""></blockquote><a href="https://github.com/cawka/ndnSIM-nom-rapid-car2car/blob/master/extensions/ndn-fw-v2v.cc#L99" class="">https://github.com/cawka/ndnSIM-nom-rapid-car2car/blob/master/extensions/ndn-fw-v2v.cc#L99</a><br class=""><blockquote type="cite" class="">2.also inducing delay using following:<br class="">Simulator::Schedule(Seconds(Ndelay),<br class="">&WaitStrategy::SendAfterDelay,pitEntry,outFace,interest);<br class="">void WaitStrategy::SendAfterDelay(shared_ptr<pit::Entry>&<br class="">pitEntry,const Face outFace,const Interest& interest)<br class="">{<br class="">this->sendInterest(pitEntry, outFace, interest);<br class="">}<br class=""></blockquote>https://github.com/named-data-ndnSIM/ndnSIM/blob/a9d889b7a787842d45c86c67bc21d44853b03b7f/apps/ndn-consumer-cbr.cpp#L85<br class=""><blockquote type="cite" class=""></blockquote>https://github.com/named-data-ndnSIM/ndnSIM/blob/5ea3322623a0550799431f25b2fc4e7e4df5c046/model/ndn-app-link-service.cpp#L55<br class=""><blockquote type="cite" class=""></blockquote>---------------------------------------------------------------------------------------------------<br class=""><blockquote type="cite" class="">gives error:<br class="">error: use of deleted function 'nfd::face::Face::Face(const<br class="">nfd::face::Face&)'<br class="">Simulator::Schedule(Seconds(Ndelay),<br class="">&WaitStrategy::SendAfterDelay,pitEntry,outFace,interest);<br class="">error: candidate is: void<br class=""></blockquote>nfd::fw::WaitStrategy::SendAfterDelay(std::shared_ptr<nfd::pit::Entry>&,<br class=""><blockquote type="cite" class="">nfd::face::Face, const ndn::Interest&)<br class="">Thanks,<br class="">Raj<br class=""></blockquote></div></div></blockquote></div><br class=""></div></body></html>