[ndnSIM] Custom Strategy for Interest data collection - not working?

Alex Afanasyev aa at CS.UCLA.EDU
Wed Jan 4 23:47:23 PST 2017


I think you forgot to configure FIBs, e.g., using GlobalRoutingHelper.

---
Alex

> On Jan 4, 2017, at 11:42 PM, John Baugh <jpbaugh at umich.edu> wrote:
> 
> ndnSIM friends,
> 
> I am continuing a previous attempt at creating a Custom Strategy, for the primary purpose of recording information on Interests as they arrive at a router.
> 
> The three involved files, linked in my Google Drive are:
> 
> 1. The scenario file:   (jpb-strategy1-test.cpp)
>      https://drive.google.com/open?id=0By9ufeKqmJYYWXNpbEFYSEI2VWc <https://drive.google.com/open?id=0By9ufeKqmJYYWXNpbEFYSEI2VWc>
> 
> 2. The PopularityStrategy.hpp file with my custom strategy specification
>      https://drive.google.com/open?id=0By9ufeKqmJYYQm5BQVRSQzNjSnc <https://drive.google.com/open?id=0By9ufeKqmJYYQm5BQVRSQzNjSnc>
> 
> 3.  The PopularityStrategy.cpp file with the implementation of the custom strategy class
>       https://drive.google.com/open?id=0By9ufeKqmJYYcTFXc1ZUcnpfQTA <https://drive.google.com/open?id=0By9ufeKqmJYYcTFXc1ZUcnpfQTA>
> 
> 
> Notes:
> - I have the scenario file in the scenarios directory (I'm using the template from GitHub)
> - I have the PopularityStrategy.[hpp,cpp] files in the extensions directory
> - I subclassed MulticastStrategy to create the PopularityStrategy
> - I did call NFD_REGISTER_STRATEGY at the top of the PopularityStrategy.cpp file
> 
> Everything compiles just fine, but I get no printout from the PopularityStrategy class.  I have cout<< inside both the constructor and the afterReceiveInterest function.
> 
> It's as if it's not being used at all.
> 
> I am very much at a loss, and would greatly appreciate assistance on this.  It's close.  I can feel it.  :)
> 
> Thanks,
> 
> John
> 
> 
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170104/9652a118/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170104/9652a118/attachment.bin>


More information about the ndnSIM mailing list