<html><head></head><body><div class="ydpd4d867c5yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
        <div>Okay, Thank you. <br></div><div><br></div>
        
        </div><div id="yahoo_quoted_7629860522" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Monday, January 7, 2019, 1:57:29 AM GMT+8, Spyridon (Spyros) Mastorakis <mastorakis@cs.ucla.edu> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr">Replace the namespace and use the following line to get the PIT object:<br clear="none"><br clear="none">node->GetObject<ndn::L3Protocol>()->getForwarder()->getPit()<br clear="none"><br clear="none">Then use the latest API to iterate over the PIT entries (the code you mentioned was from a very old and outdated version of ndnSIM).<br clear="none"><br clear="none">Thanks,<br clear="none"><br clear="none">Spyridon (Spyros) Mastorakis<br clear="none">Personal Website: <a shape="rect" href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~mastorakis/</a><br clear="none">Internet Research Laboratory<br clear="none">Computer Science Department<br clear="none">UCLA<br clear="none"><div class="yqt0428838245" id="yqtfd36669"><br clear="none">> On Jan 6, 2019, at 4:39 PM, hakima khelifi <<a shape="rect" ymailto="mailto:khelifihakima22@yahoo.fr" href="mailto:khelifihakima22@yahoo.fr">khelifihakima22@yahoo.fr</a>> wrote:<br clear="none">> <br clear="none">> Thank you for your response.<br clear="none">> <br clear="none">> <br clear="none">> Yes, I know the namespace. But I want to print the PIT table during the simulation from my script?<br clear="none">> <br clear="none">> If you can help me to call it from my script?<br clear="none">> <br clear="none">> Thanks,<br clear="none">> On Sunday, January 6, 2019, 10:28:51 PM GMT+8, Spyridon (Spyros) Mastorakis <<a shape="rect" ymailto="mailto:mastorakis@cs.ucla.edu" href="mailto:mastorakis@cs.ucla.edu">mastorakis@cs.ucla.edu</a>> wrote:<br clear="none">> <br clear="none">> <br clear="none">> Hi,<br clear="none">> <br clear="none">> as you can see Pit can be found under the nfd::pit namespace:<br clear="none">> <br clear="none">> <a shape="rect" href="https://github.com/named-data/NFD/blob/master/daemon/table/pit.cpp" target="_blank">https://github.com/named-data/NFD/blob/master/daemon/table/pit.cpp</a><br clear="none">> <br clear="none">> Thanks,<br clear="none">> <br clear="none">> Spyridon (Spyros) Mastorakis<br clear="none">> Personal Website: <a shape="rect" href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~mastorakis/</a><br clear="none">> Internet Research Laboratory<br clear="none">> Computer Science Department<br clear="none">> UCLA<br clear="none">> <br clear="none">>> On Jan 6, 2019, at 1:26 PM, hakima khelifi <<a shape="rect" ymailto="mailto:khelifihakima22@yahoo.fr" href="mailto:khelifihakima22@yahoo.fr">khelifihakima22@yahoo.fr</a>> wrote:<br clear="none">>> <br clear="none">>> Dear all,<br clear="none">>> <br clear="none">>> <br clear="none">>> I am trying to print the PIT table by using the following code:<br clear="none">>> <br clear="none">>> void PeriodicStatsPrinter(Ptr<Node> node, Time next)<br clear="none">>> {<br clear="none">>>   Ptr<ndn::Pit> pit = node->GetObject<ndn::Pit> ();<br clear="none">>> <br clear="none">>>   std::cout << Simulator::Now ().ToDouble (Time::S) << "\t"<br clear="none">>>             << node->GetId () << "\t"<br clear="none">>>             << Names::FindName (node) << "\t"<br clear="none">>>             << pit->GetSize () << "\n";<br clear="none">>>   <br clear="none">>>   Simulator::Schedule (next, PeriodicStatsPrinter, node, next);<br clear="none">>> }<br clear="none">>> <br clear="none">>> However, it is not working and I am getting the error of: ‘Pit’ is not a member of ‘ns3: :nd n’.<br clear="none">>> <br clear="none">>> Any guidelines!<br clear="none">>> Regards,<br clear="none">>> <br clear="none">> <br clear="none"></div></div></div>
            </div>
        </div></body></html>