<div dir="ltr">Alex,<div><br></div><div>Thanks for that information.  Truly, very helpful.</div><div><br></div><div>Secondly, I was eventually able to get it to compile, but nothing is being printed out - I have cout statements in the ctor and the afterReceiveInterest.  The CS is receiving data, but the Strategy doesn't seem to be acknowledging the existence of incoming Interest packets.</div><div><br></div><div>Ideas?</div><div><br></div><div>Thanks,</div><div><br></div><div>John</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 18, 2016 at 4:51 PM, 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"><br><div><span class=""><blockquote type="cite"><div>On Dec 17, 2016, at 11:00 PM, John Baugh <<a href="mailto:jpbaugh@umich.edu" target="_blank">jpbaugh@umich.edu</a>> wrote:</div><br class="m_-8077090785319686555Apple-interchange-newline"><div><div dir="auto">Alex,<div dir="auto"><br></div><div dir="auto">Do you mean create a top level directory with the name of the scenario, and then use the directory structure of the template you provided and ndnSIM will do the rest?</div></div></div></blockquote><div><br></div></span><div>If you use template, follow the description in the README.  This template should be placed anywhere outside NS-3/ndnSIM and will simply use the installed NS-3 to link to.</div><div><br></div><div>If you not using template, take a look for ndn-load-balancer, ndn-<wbr>custom-apps, ndn-cxx-simple, <wbr>ndn-simple-with-content-<wbr>freshness, ndn-simple-for-nrt-<wbr>helper examples organization (i.e., .cpp file with main function and directory with code that is linked to the scenario).</div><div><br></div><div>---</div><div>Alex</div><div><div class="h5"><br><blockquote type="cite"><div><div dir="auto"><div dir="auto"><br></div><div dir="auto">Next question would be:. Where do we put the top level of the templated directory structure you suggest?</div><div dir="auto"><br></div><div dir="auto">Thanks</div><div dir="auto"><br></div><div dir="auto">John</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Dec 18, 2016 1:55 AM, "Alex Afanasyev" <<a href="mailto:aa@cs.ucla.edu" target="_blank">aa@cs.ucla.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi John,</div><div><br></div><div>From the error I see that you're writing your simulation scenario in the 'examples' folder of ndnSIM.  While you certainly can do that, I would highly recommend to use the skeleton (<a href="https://github.com/named-data-ndnSIM/scenario-template" target="_blank">https://github.com/named-data<wbr>-ndnSIM/scenario-template</a>).  It will speed up your compilation times and the default build script has more straightforward assumptions on where the code is.</div><div><br></div><div>The error simply tells that you need to properly link your strategy to the scenario.  Given I don't know where you put your strategy code, I cannot tell more.  With the skeleton scenario, you simply need to put it in extensions/ folder.  If you prefer using examples/ folder, then you need to create a folder, whose name is exactly as your scenario name, but without .cpp extension and put the code there.  Alternatively, you need to modify wscript in examples folder and add all necessary dependencies for your scenario.</div><div><br></div><div>--</div><div>Alex</div><br><div><blockquote type="cite"><div>On Dec 17, 2016, at 7:33 PM, John Baugh <<a href="mailto:jpbaugh@umich.edu" target="_blank">jpbaugh@umich.edu</a>> wrote:</div><br class="m_-8077090785319686555m_2541133879178567608Apple-interchange-newline"><div><div dir="ltr">ndnSIM friends,<div><br></div><div>I've been working on creating a custom strategy, and I can't seem to figure out why it's generating the errors that it is.</div><div><br></div><div><br></div><div>Here are the related files:</div><div><br></div><div><b>The errors:</b> </div><div><a href="https://drive.google.com/open?id=1bk4IKf2nRtq2lMjtoQFX4_MqC8Sjuvirdof2CezRWEQ" target="_blank">https://drive.google.com/open?<wbr>id=1bk4IKf2nRtq2lMjtoQFX4_MqC8<wbr>Sjuvirdof2CezRWEQ</a></div><div><br></div><div><b>Test file using the strategy</b></div><div><a href="https://drive.google.com/open?id=0By9ufeKqmJYYeC05SUc3b2lQekk" target="_blank">https://drive.google.com/open?<wbr>id=0By9ufeKqmJYYeC05SUc3b2lQek<wbr>k</a><br></div><div><br></div><div><b>The Custom CS I'm using:</b></div><div><a href="https://drive.google.com/open?id=0By9ufeKqmJYYNHNRbzdGaWpLUlE" target="_blank">https://drive.google.com/open?<wbr>id=0By9ufeKqmJYYNHNRbzdGaWpLUl<wbr>E</a><br></div><div><br></div><div><b>The Custom Strategy files:</b></div><div><a href="https://drive.google.com/open?id=0By9ufeKqmJYYQzBqVl9Gck5mYzA" target="_blank">https://drive.google.com/open?<wbr>id=0By9ufeKqmJYYQzBqVl9Gck5mYz<wbr>A</a><br></div><div><br></div><div><a href="https://drive.google.com/open?id=0By9ufeKqmJYYa2lObnltV1ZRUlE" target="_blank">https://drive.google.com/open?<wbr>id=0By9ufeKqmJYYa2lObnltV1ZRUl<wbr>E</a><br></div><div><br></div><div><br></div><div><br></div><div>Any help would be appreciated.</div><div><br></div><div>Thanks,</div><div><br></div><div>John</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/m<wbr>ailman/listinfo/ndnsim</a><br></div></blockquote></div><br></div></blockquote></div></div>
</div></blockquote></div></div></div><br></div></blockquote></div><br></div>