[ndnSIM] Ask the meaning of m_metric
Xuxiang Tian
xuxiangtian at ucla.edu
Wed Aug 10 23:13:16 PDT 2016
Hi Junxiao,
Thank you for your kind reply.
I see it, sorry for making you misunderstand, What I was trying to say is
that m_metric is part of custom version of NFD 0.3.4 or ndn-cxx 0.3.4 for
ndnSIM, but no longer exists in the current NFD or ndn-cxx. I'm wondering
what m_metric is for so that I can determine if I should re-add them in the
current version of NFD or replace with other methods.
I have solved the problem by re-adding them, suggested by Alex.
Thank you again.
--
Xuxiang
2016-08-10 22:52 GMT-07:00 Junxiao Shi <shijunxiao at email.arizona.edu>:
> Hi Xuxiang
>
> GlobalRoutingHelper is not part of NFD 0.3.4, either.
> It's an addition of ndnSIM and it's similar to ns3 IP global routing
> helper,
>
> Yours, Junxiao
>
> On Wed, Aug 10, 2016 at 3:10 PM, Xuxiang Tian <xuxiangtian at ucla.edu>
> wrote:
>
>> Hi all,
>>
>> I'm updating ndnSIM.
>>
>> In boost-graph-ndn-global-routing-helper.hpp of NFD 0.3.4, there is
>>
>> inline property_traits<EdgeWeights>::reference
>> get(const boost::EdgeWeights&, ns3::ndn::GlobalRouter::Incidency& edge)
>> {
>> if (std::get<1>(edge) == 0)
>> return property_traits<EdgeWeights>::reference(nullptr, 0, 0.0);
>> else {
>> return property_traits<EdgeWeights>::reference(std::get<1>(edge),
>> static_cast<uint16_t>(
>>
>> std::get<1>(edge)->getMetric()),
>> 0.0);
>> }
>> }
>>
>> where getMetric() returns m_metric, which seems is either 1 or 0 and is
>> no longer exists in NFD 0.4.2.
>> Could you please tell me what m_metric works for
>>
>> --
>> Xuxiang
>>
>>
>> _______________________________________________
>> ndnSIM mailing list
>> ndnSIM at lists.cs.ucla.edu
>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160810/56dbaf94/attachment.html>
More information about the ndnSIM
mailing list