[ndnSIM] Ask the meaning of m_metric

Junxiao Shi shijunxiao at email.arizona.EDU
Wed Aug 10 22:52:13 PDT 2016


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/97064a41/attachment.html>


More information about the ndnSIM mailing list