
464 Simulation Technologies in Networking and Communications
however, if they are not assigned there, then it loads the default value assigned in the .ned le. For
example, newParameter must be assigned a value from either the.ini or the .ned le, and hence this
a good practice to provide default values for all parameters in the .ned le.
Gates are fully dened within the interface and .ned les, and it is normal for the gates section
to be entirely copied from interface le and placed in the .ned le.
• NewProtocol.h
The module .h le includes a C++ class declaration, and the class name should match the module
name, .cc and .ned lename. The class ...