<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Unfortunately, we don't have extensive documentation about it, only examples.  </div><div class=""><br class=""></div><div class="">The example repository you're looking is indeed outdated, but the example can still be applied in the latest version of ndnSIM (may be with some modifications).</div><div class=""><div class=""><br class=""></div><div class=""><div class="">I would recommend you looking for examples in the latest ndnSIM codebase: </div><div class="">- <a href="https://github.com/named-data-ndnSIM/ndnSIM/tree/master/utils/trie" class="">https://github.com/named-data-ndnSIM/ndnSIM/tree/master/utils/trie</a></div><div class="">- <a href="https://github.com/named-data-ndnSIM/ndnSIM/tree/master/model/cs/custom-policies" class="">https://github.com/named-data-ndnSIM/ndnSIM/tree/master/model/cs/custom-policies</a></div><div class="">- <a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/master/model/cs/content-store-with-probability.hpp" class="">https://github.com/named-data-ndnSIM/ndnSIM/blob/master/model/cs/content-store-with-probability.hpp</a> and </div><div class="">- <a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/master/model/cs/content-store-with-probability.cpp" class="">https://github.com/named-data-ndnSIM/ndnSIM/blob/master/model/cs/content-store-with-probability.cpp</a></div><div class=""><br class=""></div><div class="">You can also check out a slide deck (starting slide 34) that highlights steps to write custom cache policy: <a href="http://lasr.cs.ucla.edu/afanasyev/data/files/Afanasyev/07-ndnSIM-demo-Alex.pptx" class="">http://lasr.cs.ucla.edu/afanasyev/data/files/Afanasyev/07-ndnSIM-demo-Alex.pptx</a></div><div class=""><br class=""></div><div class="">--</div><div class="">Alex</div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On Apr 2, 2016, at 4:07 AM, ndn ndn <<a href="mailto:ndn@sqh.me" class="">ndn@sqh.me</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello, <div class="">Recently, I want to use ndnSIM to simulate a ndn cache policy, but I only find some information on</div><div class=""> <a href="https://github.com/cawka/ndnSIM-examples/tree/master/extensions/custom-cs" class="">https://github.com/cawka/ndnSIM-examples/tree/master/extensions/custom-cs</a>, it is a three year ago.</div><div class=""><a href="http://ndnsim.net/2.1/cs.html" class="">http://ndnsim.net/2.1/cs.html</a> it didn't mention how to do it.<br class=""></div><div class=""><br class=""></div><div class="">Can I use it? And also if I need implement a cache policy, How to write a class to do this?</div><div class="">Can you give me some information on this.</div><div class="">Thanks for your help.</div><div class=""><br class=""></div><div class="">qhsong</div><div class=""><br class=""></div></div>
_______________________________________________<br class="">ndnSIM mailing list<br class=""><a href="mailto:ndnSIM@lists.cs.ucla.edu" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br class=""></div></blockquote></div><br class=""></div></div></body></html>