<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hi Rong,</div><div><br></div><div>From inside the strategy, there is very simple method to obtain this information:</div><div><br></div><div>uint32_t nodeId = this->GetObject<Node>()->GetId();</div><div>Ptr<Pit> pit = this->GetObject<Pit>();</div><div>Ptr<Fib> fib = this->GetObject<Fib>();</div><div><br></div><div>---</div><div>Alex</div><div><br></div><div><div>On May 25, 2014, at 11:48 AM, yourong <<a href="mailto:rong.you.sjtu@foxmail.com">rong.you.sjtu@foxmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Alex,</div><div>    I want to customize a ndn-forwarding strategy. But I have some problems:</div><div>How can I get the node info such as node id or else when implementing the forwarding</div><div>strategy?(ie. How can i know who is running the forwarding strategy now, and then get </div><div>the PIT and FIB on the such nodes?)</div><div>    Best regard!</div><div>   </div><div><br></div><div><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size: 14px; font-family: Verdana;"><div style="line-height: 23px; width: 300px;"><div style="float: left; clear: right; width: 200px; font-size: inherit;"><br><div style="font-family: Verdana; font-size: x-small;"><font face="Arial Black" style="line-height: 24px; font-size: inherit;">Rong</font><i style="font-size: inherit; line-height: 24px; font-family: 'Arial Black';"> </i><span style="font-size: inherit; line-height: 24px; font-family: 'Arial Black';">You</span><i style="font-size: inherit; line-height: 24px; font-family: 'Arial Black';"> </i></div></div></div><font style="line-height: 23px; font-family: 'Arial Black';"><div><font style="line-height: 23px; font-family: 'Arial Black';"><br></font></div><div><font style="line-height: 23px; font-family: 'Arial Black';"><br></font></div><br></font><span style="line-height: 23px;"></span><div style="line-height: 23px;"><b><font size="2">Shanghai Jiao Tong University</font></b></div><div style="line-height: 23px; font-size: x-small;"><br></div></div></div><div> </div>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br></blockquote></div><br></body></html>