Bug 2968 - Make netanim modular
Make netanim modular
Status: RESOLVED MOVED
Product: ns-3
Classification: Unclassified
Component: netanim
ns-3-dev
All All
: P3 enhancement
Assigned To: John Abraham
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-13 07:42 EDT by Tommaso Pecorella
Modified: 2018-08-15 16:47 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pecorella 2018-08-13 07:42:45 EDT
Netanim ns-3 interface is "hardwired" on the modules it can understand.
As a result, if you try to enable only a specific module *and* NetAnim, netanim will build unnecessarily a lot of other stuff.

In light of modularizing ns-3, it would be helpful to have netanim probe for the available modules and build itself accordingly.
Another approach would be to slim down netanim to its bare minimum and to include the netanim support in the modules, so to revert the dependency (much like the energy module does).

In the first case we'll have to do some magic in the code and in the wscript, but the changes will be limited to the netanim module.

In the second case the changes will be way more intrusive, but I feel like they will be more rewarding on the long run.
Moreover, adding new types support to NetAnim could be way easier in this way, leaving the burden to write the proper code to the specific modules developers.
Comment 1 Tom Henderson 2018-08-14 12:03:14 EDT
Is this a project idea for someone, or is a patch forthcoming?  I wonder if it should be moved to the project ideas/feature request page.
Comment 2 Tommaso Pecorella 2018-08-15 08:36:18 EDT
Feel free to add it to the project ideas.
If I'll have some spare time I'll work on it myself, but if someone wants to step in... I'll be more than happy too.
Comment 3 Tom Henderson 2018-08-15 16:47:45 EDT
Moved to wiki project ideas page.