[ndnSIM] Fwd: Re: Inducing waiting delay in nodes and no member named GetObject error
Rajvardhan Deshmukh
rdeshmukh at umass.edu
Tue Mar 7 12:50:13 PST 2017
-------- Original Message --------
Subject: Fwd: Re: Inducing waiting delay in nodes
Date: 2017-03-06 12:16
From: Rajvardhan Deshmukh <rdeshmukh at umass.edu>
To: ndnsim at lists.cs.ucla.edu
> 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
More information about the ndnSIM
mailing list