<div dir="ltr"><div><div><div><div><div><div><div><div>Alex and others,<br><br></div>I have updated the code:<br><a href="https://drive.google.com/open?id=0By9ufeKqmJYYY3Rzem5EN0ZyREE">https://drive.google.com/open?id=0By9ufeKqmJYYY3Rzem5EN0ZyREE</a><br><br></div>I even included the PolicyToFile class that does successfully print content store related things to the file.<br><br></div>But even after adding GlobalRoutingHelper functions, I cannot get this to work.  I'll assume it's not a problem related to me subclassing MulticastStrategy rather than Strategy, is it?<br><br></div>But, I'm doing everything that is in the example on ndnSIM's website.  I used the RandomLoadBalancer as my example.  It still isn't working.<br><br></div>I'm not even at the point where I'm doing much with the actual interests...  I just want to print out information when an interest is received, and when the object is created initially (i.e., when the ctor is called.)<br><br></div>Any help would be greatly appreciated, as always.  If anyone could run the code and see if you can figure out what's going on, I'd be very appeciative (make a umd subdirectory for the Policy class .hpp and .cpp, or change around the includes - doesn't matter, of course)<br><br></div>Thanks,<br><br></div>John<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 5, 2017 at 2:47 AM, Alex Afanasyev <span dir="ltr"><<a href="mailto:aa@cs.ucla.edu" target="_blank">aa@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">I think you forgot to configure FIBs, e.g., using GlobalRoutingHelper.<div><br></div><div>---</div><div>Alex<br><div><br><div><blockquote type="cite"><div><div class="h5"><div>On Jan 4, 2017, at 11:42 PM, John Baugh <<a href="mailto:jpbaugh@umich.edu" target="_blank">jpbaugh@umich.edu</a>> wrote:</div><br class="m_8144265927015679974Apple-interchange-newline"></div></div><div><div><div class="h5"><div dir="ltr">ndnSIM friends,<div><br></div><div>I am continuing a previous attempt at creating a Custom Strategy, for the primary purpose of recording information on Interests as they arrive at a router.</div><div><br></div><div>The three involved files, linked in my Google Drive are:</div><div><br></div><div>1. <b>The scenario file:</b>   (jpb-strategy1-test.cpp)</div><div>     <a href="https://drive.google.com/open?id=0By9ufeKqmJYYWXNpbEFYSEI2VWc" target="_blank">https://drive.google.com/<wbr>open?id=<wbr>0By9ufeKqmJYYWXNpbEFYSEI2VWc</a></div><div><br></div><div>2. <b>The PopularityStrategy.hpp file</b> with my custom strategy specification</div><div>     <a href="https://drive.google.com/open?id=0By9ufeKqmJYYQm5BQVRSQzNjSnc" target="_blank">https://drive.google.com/<wbr>open?id=<wbr>0By9ufeKqmJYYQm5BQVRSQzNjSnc</a></div><div><br></div><div>3.  <b>The PopularityStrategy.cpp file</b> with the implementation of the custom strategy class</div><div>      <a href="https://drive.google.com/open?id=0By9ufeKqmJYYcTFXc1ZUcnpfQTA" target="_blank">https://drive.google.com/open?<wbr>id=<wbr>0By9ufeKqmJYYcTFXc1ZUcnpfQTA</a></div><div><br></div><div><br></div><div>Notes:</div><div>- I have the scenario file in the <b>scenarios</b> directory (I'm using the template from GitHub)</div><div>- I have the PopularityStrategy.[hpp,cpp] files in the <b>extensions </b>directory</div><div>- I subclassed MulticastStrategy to create the PopularityStrategy</div><div>- I did call NFD_REGISTER_STRATEGY at the top of the PopularityStrategy.cpp file</div><div><br></div><div>Everything compiles just fine, but I get <b>no printout from the PopularityStrategy </b>class.  I have cout<< inside both the constructor and the afterReceiveInterest function.</div><div><br></div><div>It's as if it's not being used at all.  </div><div><br></div><div>I am very much at a loss, and would greatly appreciate assistance on this.  It's close.  I can feel it.  :)</div><div><br></div><div>Thanks,</div><div><br></div><div>John</div><div><br></div><div><br></div></div></div></div>
______________________________<wbr>_________________<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" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/ndnsim</a><br></div></blockquote></div><br></div></div></div></blockquote></div><br></div>