[ndnSIM] Fwd: Re: Inducing waiting delay in nodes

Rajvardhan Deshmukh rdeshmukh at umass.edu
Mon Mar 6 09:16:13 PST 2017


> Thanks Spyridon i renamed the strategy and the .cpp and hpp names and it 
> worked.
> 
> Also, i wanted to get the position of the nodes in the forwarding 
> strategy.
> 1.i tried directly using the
> 
> using namespace ns3;
> using namespace fw;
> 
> Ptr<MobilityModel>model=GetObject<MobilityModel>();
> Vector position= model.GetPosition();
> 
> -------------------------
> 
> error: 'GetObject' was not declared in this scope
> 
> https://github.com/cawka/ndnSIM-nom-rapid-car2car/blob/master/extensions/ndn-fw-v2v.cc#L99
> 
> 2.also inducing delay using following:
> 
> Simulator::Schedule(Seconds(Ndelay), &WaitStrategy::SendAfterDelay,pitEntry,outFace,interest);
> 
> void WaitStrategy::SendAfterDelay(shared_ptr<pit::Entry>& pitEntry,const Face outFace,const Interest& interest)
> {
> this->sendInterest(pitEntry, outFace, interest);
> }
> 
> https://github.com/named-data-ndnSIM/ndnSIM/blob/a9d889b7a787842d45c86c67bc21d44853b03b7f/apps/ndn-consumer-cbr.cpp#L85 
> https://github.com/named-data-ndnSIM/ndnSIM/blob/5ea3322623a0550799431f25b2fc4e7e4df5c046/model/ndn-app-link-service.cpp#L55 
> 
> ---------------------------------------------------------------------------------------------------
> gives error:
> error: use of deleted function 'nfd::face::Face::Face(const nfd::face::Face&)'
> Simulator::Schedule(Seconds(Ndelay), &WaitStrategy::SendAfterDelay,pitEntry,outFace,interest);
> 
> error: candidate is: void nfd::fw::WaitStrategy::SendAfterDelay(std::shared_ptr<nfd::pit::Entry>&, nfd::face::Face, const ndn::Interest&)
> 
> Thanks,
> Raj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170306/7dfaab80/attachment.html>


More information about the ndnSIM mailing list