<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Hello Everybody:<div><span class="Apple-tab-span" style="white-space:pre">  </span>I'm a newer in learning ndnSIM adn ns-3.I have a problem about ns-3 object when I programming my own forwarding strategy imitating the PerOutFaceLimits class.The problem are as follow:</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>Firstly,</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>void MyFwStrategy_InterestRate::AddFace(Ptr<Face> face){ </div><div><span class="Apple-tab-span" style="white-space:pre">         </span>NS_LOG_DEBUG("in addface");</div><div> <span class="Apple-tab-span" style="white-space:pre">          </span>ObjectFactory factory;</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>NS_LOG_DEBUG("in addface"); </div><div><span class="Apple-tab-span" style="white-space:pre">          </span>const std::string typeId="ns3::ndn::InterestSatisfiedRat
 e"; </div><div><span class="Apple-tab-span" style="white-space:pre">           </span>NS_LOG_DEBUG("in addface"); </div><div><span class="Apple-tab-span" style="white-space:pre">          </span>factory.setTypeId(typeId); </div><div><span class="Apple-tab-span" style="white-space:pre">             </span>NS_LOG_DEBUG("in addface"); </div><div><span class="Apple-tab-span" style="white-space:pre">          </span>Ptr<InterestSatisfiedRate> interestSatisfiedRate = factory.Create(); </div><div><span class="Apple-tab-span" style="white-space:pre">             </span>NS_LOG_DEBUG("in addface");</div><div><span class="Apple-tab-span" style="white-space:pre">                </span> face->AggregateObject( interestSatisfiedRate); </div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>The problem is the fifth Log didn't print.That means the problem happens when Create the InterestSatisfiedRate Object.</div><div><span clas
 s="Apple-tab-span" style="white-space:pre">     </span>Secondly,</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>void MyFwStrategy_InterestRate::AddFace(Ptr<Face> face){</div><div><span style="line-height: 1.7;"><span class="Apple-tab-span" style="white-space:pre">               </span>NS_LOG_DEBUG("in addface");</span></div><div><span class="Apple-tab-span" style="white-space:pre">           </span>Ptr<InterestSatisfiedRate> interestSatisfiedRate =CreateObject<InterestSatisfiedRate>();</div><div><span class="Apple-tab-span" style="white-space:pre">         </span>NS_LOG_DEBUG("in addface");</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>face->AggregateObject( interestSatisfiedRate);</div><div><span class="Apple-tab-span" style="white-space:pre">            </span>NS_LOG_DEBUG("in addface");</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div><span style="line-height: 1.7;"><span class="Apple-tab-span" style="white-space:pre">
        </span>The problem is the third Log didn't print.That means the problem happens when the face aggretate  the InterestSatisfiedRate Object.</span></div><div><span style="line-height: 1.7;"><span class="Apple-tab-span" style="white-space:pre">        </span>Can someone help me solve the trouble?</span></div><div><span style="line-height: 1.7;"><span class="Apple-tab-span" style="white-space:pre">  </span>Thanks So Much!</span></div><div><span class="Apple-tab-span" style="white-space:pre"> </span></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">    </span></div> <br><div><br></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>