Hi,
you could extend each module individually and add functionality
separately. I mean:
simple MYUDPBasicApp extends UDPBasicApp{}
simple MYBGTrafficSourceApp extends BGTrafficSourceApp {}
module MyModule{
submodules:
myudpapp : MYUDPBasicApp {}
mybgtrafficapp : MYBGTrafficSourceApp {}
}
Furthermore, if you add one additional class (which would not be a simple module), you could let both your apps
extend this class and the traffic apps (only in C++; check for instance
where multiple inheritance is described). With this approach you'd only have to implement
your additional functionality once, in your separate class. You'd have to call the parent methods respectively
in the order you wish them to be executed.
If you don't have a problem changing the INET Code directly, you can also
just edit the existing module's code and extend your separate class as well.
I'm not sure if what I mean is clear enough, let me know if I could help you.
Best regards,
Andreas