adding contributed code to ns3 core code

38 views
Skip to first unread message

Matteo Rizzini

unread,
Feb 5, 2012, 10:50:20 AM2/5/12
to ns-3-users
Hello, I'm working on a thesis about jamming in the wireless
enviroment. After having developed a small script about simple wifi
devices communicating in the free space, I'm now seeing around about
how to simulate jammers. I found this http://www.nsnam.org/wiki/index.php/NS-3_wireless_jamming_model
wiki entry about this people who wrote some code that seems to suit
well to my needs. Now the question is: how can I add the code (if
this is the right way) to the core of ns3? I suppose I have to attach
my ns3 core folder to the repository through mercurial and then
rebuild the entire simulator but I dont exactly know what I should
write and where. Once I have the code in a subfolder of ns-x.yy/src,
how can I generate the doxygen documentation (if the source files are
well documented) to explore the public APIs of that model?
Thank you to anyone who'll help me.
Matteo

Mitch Watrous

unread,
Feb 6, 2012, 3:19:57 PM2/6/12
to ns-3-users
Hi.

I would create a new module for your jamming model.

The following chapter in the ns-3 Manual shows how to create a new
module:

http://www.nsnam.org/docs/release/3.13/manual/html/new-modules.html

Then, your new module's classes will show up in the API documentation
when you do:

./waf doxygen

Mitch
Reply all
Reply to author
Forward
0 new messages