<div dir="ltr"><div>Hello Safa; <br></div><div><br></div><div>Thank you so much for your reply even though this is not what I meant. <br></div><div>What I want to do is: <br></div><div><br></div><div>- Create a variable for each metric (initialised to 0). <br></div><div>- Variables increments throughout the simulation process. <br></div><div>- Nodes will use these created variables to take actions.<br></div><div><br></div><div>In other words, I need these metrics to use them as parameters in my simulation and not just results (text file).<br></div><div><br></div><div>Best regards,</div><div>Ahmed.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 20 mars 2019 à 13:51, Safa Mejri <<a href="mailto:mejrisafaenig@gmail.com">mejrisafaenig@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">hello; <div>All you need to do: </div><div><b> #include <ns3/ndnSIM/utils/tracers/ndn-l3-rate-tracer.h>  </b>at the beginning of your scenario file.</div><div><div>  </div><div><b> boost::tuple< boost::shared_ptr<std::ostream>, std::list<Ptr<ndn::L3RateTracer> > ></b></div><div><b>    tracers = ndn::L3RateTracer::InstallAll ("ndn-l3-rate-tracer.txt");</b>   after  Simulator::Stop at the end of your<span style="line-height:1.5"> </span><span style="line-height:1.5">scenario file.</span></div></div><div><span style="line-height:1.5"><br></span></div><div>Good work;<br></div></div></div></div></div></div></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width: 0px; max-height: 0px; overflow: hidden;" src="https://mailfoogae.appspot.com/t?sender=abWVqcmlzYWZhZW5pZ0BnbWFpbC5jb20%3D&type=zerocontent&guid=e5adc361-6832-46d3-aaaa-e4d92406d868"><font size="1" color="#ffffff">ᐧ</font></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 20 mars 2019 à 13:04, Ahmed BENMOUSSA <<a href="mailto:ah.benmoussa@lagh-univ.dz" target="_blank">ah.benmoussa@lagh-univ.dz</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello everyone, <br></div><div><br></div><div>Actually, I am working on a scenario simulation and I need your help. <br></div><div>I want to create variables to use them as counters for these metrics:<br></div>
<ul class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-last gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-simple"><li><code class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-docutils gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-literal gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-notranslate"><span class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-pre">InInterests</span></code> <br></li><li><code class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-docutils gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-literal gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-notranslate"><span class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-pre">OutInterests</span></code> <br></li><li><code class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-docutils gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-literal gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-notranslate"><span class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-pre">InData</span></code></li><li><code class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-docutils gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-literal gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-notranslate"><span class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-pre">OutData</span></code> <br></li><li><code class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-docutils gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-literal gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-notranslate"><span class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-pre">InNacks</span></code></li><li><code class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-docutils gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-literal gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-notranslate"><span class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-pre">OutNacks</span></code></li><li><code class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-docutils gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-literal gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-notranslate"><span class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-pre">SatisfiedInterests</span></code> <code class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-docutils gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-literal gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-notranslate"><span class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-pre"></span></code></li><li><code class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-docutils gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-literal gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-notranslate"><span class="gmail-m_-1094310334920739565gmail-m_1954524502310290847gmail-pre">TimedOutInterests</span></code></li></ul><div><br></div><div>I need these variables in my simulation. I want to use them to make some calculations and then decides of the action to take. <br></div><div><br></div><div><code><font face="arial,helvetica,sans-serif">I tried to use </font>"ndn-l3-rate-tracer.cpp" <span style="font-family:arial,helvetica,sans-serif">file but I don't know how. <br></span></code></div><div><code><span style="font-family:arial,helvetica,sans-serif">If you have any suggestions, please help me.</span></code></div><div><code><span style="font-family:arial,helvetica,sans-serif"><br></span></code></div><div><code><span style="font-family:arial,helvetica,sans-serif">Thank you in advance.</span></code></div><div><code><span style="font-family:arial,helvetica,sans-serif">With my respects,</span></code></div><div><code><span style="font-family:arial,helvetica,sans-serif">Ahmed.</span><br></code></div></div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-1094310334920739565gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr" style="font-size:12.8px"><div dir="ltr" style="font-size:12.8px"><br></div><div dir="ltr" style="font-size:12.8px"><span style="font-size:10pt;font-family:Arial;color:rgb(38,114,236);white-space:pre-wrap">Safa MEJRI </span></div><div dir="ltr" style="font-size:12.8px"><span style="color:rgb(38,114,236);font-family:Arial;font-size:10pt;white-space:pre-wrap">Telecommunications and Networks Engineer</span></div><div dir="ltr" style="font-size:12.8px"><span style="font-size:10pt;font-family:Arial;color:rgb(38,114,236);white-space:pre-wrap">Ph.D Student at the National School of Computer Sciences (ENSI)_ Manouba_ Tunisia</span></div></div><div hspace="streak-pt-mark" style="font-size:12.8px;max-height:1px"><img src="https://mailfoogae.appspot.com/t?sender=abWVqcmlzYWZhZW5pZ0BnbWFpbC5jb20%3D&type=zerocontent&guid=cf6cf633-0e50-4999-90d5-92606ea03870" style="width: 0px; max-height: 0px; overflow: hidden;"><font size="1" color="#ffffff">ᐧ</font></div></div></div></div></div>
</blockquote></div>