<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi John,<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">It's good to have you here again!<br></div><div class="gmail_extra"><br clear="all"><div style="font-family:tahoma,sans-serif" class="gmail_default">​If you have configured ns-3 with <i>./waf configure --enable-examples</i> and compiled it(I suppose you have), then you can run examples like you did (<i>--run <name-of-the-example></i>). Regardless of enabling examples in the first step(./waf configure), you can always run your simulation scenario by putting the file(here <b>ndn-tree-cs2-tracers.cc</b>) in <i>/scratch</i>​ folder and run it like normal (--run ndn-tree-cs2-tracers). And if you want to have header/source files for some custom applications or something like that in your simulation, you can have your custom folder in /examples(if you have done --enable-examples) e.g.:<br></div><div style="font-family:tahoma,sans-serif" class="gmail_default">/examples/JB-custom-folder<br></div><div style="font-family:tahoma,sans-serif" class="gmail_default">and place the files into it, then #include them in you scenario file which should be placed in /examples folder. Likewise you can do the same with /scratch folder. I mean, you can have your custom directory<br></div><div style="font-family:tahoma,sans-serif" class="gmail_default">/scratch/JB-custom-folder<br></div><div style="font-family:tahoma,sans-serif" class="gmail_default">and put you custom files in it, then #include them in the scenario file. Also you can use scenario-template:<br><a href="https://github.com/named-data-ndnSIM/scenario-template">https://github.com/named-data-ndnSIM/scenario-template</a><br></div><div style="font-family:tahoma,sans-serif" class="gmail_default">Just follow the instruction mentioned in the page.<br><br>-----------------<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">​When I move up a couple directories and run ./wra --run=ndn-tree-cs2-tracers, I get an error saying that "<b>SetContentStore is not a member of ns3::ndn::StackHelper"</b>, but it's right there in your documentation.<br></blockquote><div> </div></div><div style="font-family:tahoma,sans-serif" class="gmail_default">No. Compiler is right :) SetContentStore is not a member of StackHelper. You can check here:<br><a href="http://ndnsim.net/2.1/doxygen/classns3_1_1ndn_1_1StackHelper.html">http://ndnsim.net/2.1/doxygen/classns3_1_1ndn_1_1StackHelper.html</a><br><br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">​Is
 this still recommended, or can we freely use the NDF version now with 
no serious issues?  The previous e-mails seem to imply this.<br></blockquote></div><br><div style="font-family:tahoma,sans-serif" class="gmail_default">​As you probably know, ndnSIM uses a different(older) version of NFD. NFD's latest version is 0.5, while ndnSIM 2.1 is using 0.3.4 and ndnSIM 2.2 is going to use 0.4. Of course you can try compiling NFD's latest version with ndnSIM, ​but you will get many errors.<br><br></div><div style="font-family:tahoma,sans-serif" class="gmail_default">I hope my answer is not that complicated as it seems.<br><br></div><div style="font-family:tahoma,sans-serif" class="gmail_default">Thanks,<br></div><div style="font-family:tahoma,sans-serif" class="gmail_default">Sabet<br></div><br><br><br><div class="gmail_quote">On Mon, Oct 31, 2016 at 8:15 AM, John Baugh <span dir="ltr"><<a href="mailto:jpbaugh@umich.edu" target="_blank">jpbaugh@umich.edu</a>></span> wrote:<br><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">Greetings again, ndnSIM friends,<div><br></div><div>Sorry to bother you all again.  As I tackle this simulator and all the different files and such, I'm finding it somewhat overwhelming at times.  So I hope you can understand if I'm asking silly questions.</div><div><br></div><div>Here's my naive thought:</div><div><br></div><div>I should be able to just go into the ndnSIM/ns-3/src/ndnSIM/example<wbr>s directory, copy one of the files, say <b>ndn-tree-cs-tracers </b>to <b>ndn-tree-cs2-tracers</b> (note that 2 in the name).</div><div><br></div><div>Then, I did notice that if I move up a couple directories and run ./waf --run=ndn-tree-cs2-tracers it does seem to work.</div><div><br></div><div>Is this the directory we should always work out of?  Will Waf always find the file even if I make my own custom directory?</div><div><br></div><div><b>Also, </b>it looks like most (all?) of the examples on the ndnSIM site<i> use the Old Content store.</i>  <div style="font-family:tahoma,sans-serif;display:inline" class="gmail_default">​​</div>Is this still recommended, or can we freely use the NDF version now with no serious issues?  The previous e-mails seem to imply this.</div><div><br></div><div>-----------------------------</div><div><br></div><div><b>I tried commenting out the SetOldContentStore </b>lines and added a call to SetContentStore:</div><div><br></div><div><div><b>ndnHelper.SetContentStore ("ns3::ndn::cs::Lru",</b></div><div><b>                           "MaxSize", "10000");</b></div></div><div><b><br></b></div><div><div style="font-family:tahoma,sans-serif;display:inline" class="gmail_default">​​</div>When I move up a couple directories and run ./wra --run=ndn-tree-cs2-tracers, I get an error saying that "<b>SetContentStore is not a member of ns3::ndn::StackHelper"</b>, but it's right there in your documentation.</div><div><br></div><div>I'm very confused and just trying to get my feet wet with the actual code before I dive in.  </div><div><br></div><div>Thanks!</div><span class="gmail-m_-1327983550239988483gmail-HOEnZb"><font color="#888888"><div><br></div><div>John</div></font></span></div>
<br>______________________________<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" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/m<wbr>ailman/listinfo/ndnsim</a><br>
<br></blockquote></div><br></div></div>