Finalizing PathWeight tracing
Now tracing is moved to CcnxConsumer
diff --git a/model/ccnx-path-stretch-tag.cc b/model/ccnx-path-stretch-tag.cc
index b4b29e1..c8fc6dd 100644
--- a/model/ccnx-path-stretch-tag.cc
+++ b/model/ccnx-path-stretch-tag.cc
@@ -50,10 +50,10 @@
// return GetTypeId ();
// }
-uint32_t
+uint64_t
WeightsPathStretchTag::GetTotalWeight () const
{
- uint32_t total = 0;
+ uint64_t total = 0;
for (std::list<NodeWeightPair>::const_iterator info = m_infos.begin (); info != m_infos.end (); info++)
{
total += info->weight;
@@ -68,6 +68,13 @@
return m_infos.front ().node;
}
+Ptr<Node>
+WeightsPathStretchTag::GetDestinationNode () const
+{
+ NS_ASSERT (m_infos.size () > 0);
+ return m_infos.back ().node;
+}
+
uint32_t WeightsPathStretchTag::GetSerializedSize (void) const
{
return 0;