<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000">Hi Junxiao,<br><br>I had read the priority-fifo policy in NFD, theres 3 types of Queue.<br><br>I'm little bit confuse, how to determine queue size of each types ?<br><br>As detailed in this code <br><br>"<br>void<br>PriorityFifoPolicy::moveToStaleQueue(iterator i)<br>{<br>  BOOST_ASSERT(m_entryInfoMap.find(i) != m_entryInfoMap.end());<br><br>  EntryInfo* entryInfo = m_entryInfoMap[i];<br>  BOOST_ASSERT(entryInfo->queueType == QUEUE_FIFO);<br><br>  m_queues[QUEUE_FIFO].erase(entryInfo->queueIt);<br><br>  entryInfo->queueType = QUEUE_STALE;<br>  Queue& queue = m_queues[QUEUE_STALE];<br>  entryInfo->queueIt = queue.insert(queue.end(), i);<br>  m_entryInfoMap[i] = entryInfo;<br>} <br>"<br><br>I had looked in nfd/file, but i could not find where to set the queue size of each types..<br><br>Could you give me some suggestion about how to done that ? Thanks<br><br>Best Regards,<br>Adi Paramartha<br><br><hr id="zwchr" data-marker=""><div data-marker=""><b>From: </b>"Junxiao Shi" <shijunxiao@email.arizona.edu><br><b>To: </b>mdparamartha95@students.itb.ac.id<br><b>Cc: </b>"ndnsim" <ndnsim@lists.cs.ucla.edu><br><b>Sent: </b>Sunday, February 24, 2019 7:21:17 PM<br><b>Subject: </b>Re: [ndnSIM] Implement new Replacement Policy on NFD<br></div><br><div data-marker=""><div><div dir="auto">Hi</div></div><div dir="auto"><br></div><div dir="auto">CS contains Data, not Interest.</div><div dir="auto"><br></div><div dir="auto">To associate auxiliary information with each entry, you can make a std::map with cs::iterator as key type and your “value” as mapped type.</div><div dir="auto">Example: priority-fifo policy’s EntryInfoMapFifo struct.</div><div dir="auto"><br></div><div><div dir="auto">Yours, Junxiao</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 24, 2019 at 05:50 <<a href="mailto:mdparamartha95@students.itb.ac.id" target="_blank">mdparamartha95@students.itb.ac.id</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000"><div>Hello everybody, </div><br><div>Currently, I'm doing research to implement a new replacement policy in NdnSim,</div><br><div>I'm trying to modify the cs-policy-lru.cpp and .hpp as well.</div><br><div>But I little bit confused about the C language that NFD used,</div><br><div>in LRU(cs-policy-lru.cpp) the policy only move the referenced interest to the end,</div><br><div>How can I add value for each interest? Like implementing an LFU replacement policy where each interest has its own frequency.</div><br></div></div>
</blockquote></div></div><br></div></div></body></html>