<div dir="ltr">Zalakben,<div><br></div><div>Others can correct me if I am wrong, but I would say you must:</div><div><br></div><div>1.  Create a subclass of the Policy class (<a href="http://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1Policy.html">http://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1Policy.html</a>)</div><div>     The Policy class is the class that the actual storage of the entries can go into.  Check out</div><div>2.  Set your Cs to use your custom Policy class</div><div><br></div><div>Take a look at some of the policies provided, such as <a href="http://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1priority__fifo_1_1PriorityFifoPolicy.html">http://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1priority__fifo_1_1PriorityFifoPolicy.html</a> and <a href="http://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1lru_1_1LruPolicy.html">http://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1lru_1_1LruPolicy.html</a>.</div><div><br></div><div>Pay close attention to the inherited virtual methods (member functions), such as afterInsert.</div><div><br></div><div>Thanks,</div><div><br></div><div>John</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 1, 2016 at 11:46 PM, ZALAKBEN PRAJAPATI <span dir="ltr"><<a href="mailto:15mcen21@nirmauni.ac.in" target="_blank">15mcen21@nirmauni.ac.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>hello sir<br></div>Sir i have a problem regarding to implement a caching policy.<br></div>so please give me a guidance to how to do code for caching policy.<br><br><br><br><br><br clear="all"><div><div><div><div><div class="m_-2941381085402969896gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Thanks & Regards</div>Prajapati Zalak<br style="font-size:12.8px"><span style="font-size:12.8px">Institute of Technology, </span><br style="font-size:12.8px"><span style="font-size:12.8px">Nirma University, Ahmedabad</span><br style="font-size:12.8px"><br style="font-size:12.8px"></div></div></div>
</div></div></div></div>
<br>______________________________<wbr>_________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu">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/<wbr>mailman/listinfo/ndnsim</a><br>
<br></blockquote></div><br></div>