<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Percy,
<div class=""><br class="">
</div>
<div class="">Currently, the best way to set the strategy for a namespace in Mini-NDN is to use the
<font face="Menlo" class="">setStrategy</font> method in the <font face="Menlo" class="">
Nfd</font> class.</div>
<div class=""><br class="">
</div>
<div class="">For example:</div>
<div class=""><br class="">
</div>
<div class=""><font face="Menlo" class="">host.nfd.setStrategy(“/name/prefix”, “strategy-name”)</font></div>
<div class=""><font face="Menlo" class=""><br class="">
</font></div>
<div class="">where “strategy-name” is one of the strategy strings you listed: (e.g., “client-control”, “multicast”, “ncc”, etc.); and yes, all of the strategies supported by NFD are supported by Mini-NDN.</div>
<div class=""><br class="">
</div>
<div class="">Changing the strategy option in experimentArgs will only set the specified strategy for the prefix “/ndn/edu” when you run an experiment. If you want to set the strategy for any other prefix or while not running an experiment, you should use the
<font face="Menlo" class="">setStrategy</font> method.</div>
<div class="">
<div class="">
<div style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; direction: ltr;" class="">
<br class="Apple-interchange-newline">
--</div>
<div style="font-family: Helvetica; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; direction: ltr;" class="">
Vince Lehman</div>
</div>
</div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Mar 7, 2016, at 8:30 AM, Percy Perez Aruni <<a href="mailto:pdpa@st-andrews.ac.uk" class="">pdpa@st-andrews.ac.uk</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">Hi dear MiniNdn team<br class="">
<br class="">
</div>
<div class="">Sorry for this email but would you mind to confirm if the proper way to set a strategy in Minindn is by changing the  "strategy" argument  in "mini-ndn/bin/minindn" (line ~375)?  and if MiniNdn supports all below strategies?</div>
<div class=""><br class="">
<br class="">
<div style="margin-left:40px" class="">
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<span style="color:rgb(0,0,255)" class=""><font size="1" class="">.....   </font>
</span><br class="">
<span style="color:rgb(0,0,255)" class=""><font size="1" class="">     experimentArgs = {</font></span><br class="">
<span style="color:rgb(0,0,255)" class=""><font size="1" class="">            "net": net,</font></span><br class="">
<span style="color:rgb(0,0,255)" class=""><font size="1" class="">            "nodes": nodes,</font></span><br class="">
<span style="color:rgb(0,0,255)" class=""><font size="1" class="">            "ctime": options.ctime,</font></span><br class="">
<span style="color:rgb(0,0,255)" class=""><font size="1" class="">            "nPings": options.nPings,</font></span><br class="">
<span style="color:rgb(0,0,255)" class=""><font size="1" class=""><span style="color:rgb(255,0,0)" class="">            "strategy": "client-control",</span></font></span><br class="">
<span style="color:rgb(0,0,255)" class=""><font size="1" class=""><span style="color:rgb(255,0,0)" class="">#            "strategy": "multicast",</span></font></span><br class="">
<span style="color:rgb(0,0,255)" class=""><font size="1" class=""><span style="color:rgb(255,0,0)" class="">#            "strategy": "ncc",</span></font></span><br class="">
<span style="color:rgb(0,0,255)" class=""><font size="1" class=""><span style="color:rgb(255,0,0)" class="">#            "strategy": "broadcast",</span></font></span><span style="color:rgb(0,0,255)" class=""><font size="1" class=""><span style="color:rgb(255,0,0)" class=""></span></font></span> </blockquote>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<span style="color:rgb(0,0,255)" class=""><font size="1" class=""><span style="color:rgb(255,0,0)" class="">#            "strategy": "access",</span></font></span><br class="">
<span style="color:rgb(0,0,255)" class=""><font size="1" class=""><span style="color:rgb(255,0,0)" class="">#            "strategy": Nfd.STRATEGY_BEST_ROUTE_V3,</span></font></span><br class="">
<span style="color:rgb(0,0,255)" class=""><font size="1" class="">            "pctTraffic": options.pctTraffic</font></span><br class="">
<span style="color:rgb(0,0,255)" class=""><font size="1" class="">     } .....</font></span><br class="">
<span style="color:rgb(0,0,255)" class=""></span></blockquote>
<br class="">
</div>
<br class="">
Thank you in advance for your reply and comments.<br class="">
<br class="">
</div>
<div class="">Regards<br class="">
</div>
<div class="">Percy<br class="">
</div>
</div>
_______________________________________________<br class="">
Mini-NDN mailing list<br class="">
<a href="mailto:Mini-NDN@lists.cs.ucla.edu" class="">Mini-NDN@lists.cs.ucla.edu</a><br class="">
http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>