[ns] Protocol Extension

Ahmad Khayyat ahmad.khayyat at ece.queensu.ca
Fri Mar 17 14:15:17 PST 2006


Clarification:
By the first option (extending its classes), I meant subclassing the 
classes of the existing model and implementing the 
differences/modifications. Subclassing keeps the existing functionality 
of the original module, and allows me to implement more stuff. I never 
found anyone advising to do this, everybody just suggests copying the 
existing module's folder and working on it after changing the names of 
the classes/variables...etc. Is there a valid reason for choosing this 
approach?

Ahmad Khayyat wrote:

>Hi all,
>
>I would like to extend an existing protocol in ns-2. Is it better if I 
>extend its classes, or if I just copy the folder and add my modifications?
>
>In case I went for copying the folder, what exactly do I need to do 
>after copying the folder? I guess I will have to rename the classes and 
>the structures and add the new folder to the Makefile.. do I need to do 
>anything else? Is there a reference I should consult to find out what 
>exactly I need to do?
>
>Thanks,
>- Ahmad Khayyat
>  
>


More information about the Ns-users mailing list