<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi,
<div class=""><br class="">
</div>
<div class="">I would suggest that you replace the strategy file with your custom file in this directory: <a href="https://github.com/named-data-ndnSIM/NFD/tree/NFD-0.6.6-ndnSIM/daemon/fw" class="">https://github.com/named-data-ndnSIM/NFD/tree/NFD-0.6.6-ndnSIM/daemon/fw</a></div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class=""><br class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div>Spyridon (Spyros) Mastorakis<br class="">
Assistant Professor<br class="">
Computer Science Department<br class="">
University of Nebraska, Omaha<br class="">
Peter Kiewit Institute Room 175A<br class="">
<a href="https://sites.google.com/site/spyridonmastorakis" class="">https://sites.google.com/site/spyridonmastorakis</a></div>
</div>
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Oct 22, 2020, at 12:42 AM, Eric Binnendyk via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" class="">ndnsim@lists.cs.ucla.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">Hello,</div>
<div class=""><br class="">
</div>
<div class="">Does anyone know the best way to do this? If I make a custom directory for my scenario, can I overwrite the default Strategy class by putting my modified Strategy class inside the extensions/ directory? Should I give the modified Strategy class
 a different name? I am trying to implement the strategy described in this paper to give myself ndnSIM practice:
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__locard.eu_attachments_article_86_ChoKIFA-2B-2520an-2520early-2520detection-2520and-2520mitigation-2520approach-2520against-2520interest.pdf&d=DwMFaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=OXgHZziS9rIfncuOq8ZqBKDk6M9q_SjYgy1yVQo-fl4&s=yy9peaq1MIWwovKqDW2pBnJV-iUhRUs5zyqE7Tj5Xaw&e=" class="">
https://locard.eu/attachments/article/86/ChoKIFA+%20an%20early%20detection%20and%20mitigation%20approach%20against%20interest.pdf</a></div>
<div class=""><br class="">
</div>
<div class="">Thanks,<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Eric<br class="">
</div>
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sun, Oct 11, 2020 at 9:04 PM Eric Binnendyk <<a href="mailto:eric.binnendyk@student.nmt.edu" target="_blank" class="">eric.binnendyk@student.nmt.edu</a>> wrote:<br class="">
</div>
<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" class="">
<div class="">Hi,</div>
<div class=""><br class="">
</div>
<div class="">I am using ndnSIM v2.8 and I would like to create a custom forwarding strategy for detecting an IFA based on the number of entries in the router's PIT. However, the only way I could find to access the PIT is via the m_forwarder member of the parent
 class Strategy, which is private due to the following comment in strategy.hpp:</div>
<div class=""><br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="">\note Strategy subclass constructor must not retain a reference to \p forwarder.</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">Currently I am trying to fix this by making a custom version of the Strategy class with an additional member function to return the size of the PIT, and calling this member function in my custom strategy subclass. However, I'm not sure this is
 the simplest way to solve this problem. Any ideas for a better solution?<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Eric<br class="">
</div>
</div>
</blockquote>
</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="">
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lists.cs.ucla.edu_mailman_listinfo_ndnsim&d=DwICAg&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=OXgHZziS9rIfncuOq8ZqBKDk6M9q_SjYgy1yVQo-fl4&s=bGSYiu-ZCvmiTVzdFWr0iWjxhMNgse7zMfXzz5haTh4&e=
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>