To import PROPAGATION-MODULE.H packages in NS3 you can read the instruction listed below, stay in touch with us if you have any installation guidance.
The PropagationModule class has tools to set up and use models that mimic real signal behavior in various situations. This is important for correctly simulating wireless communication, as it affects the signal strength and quality that network devices receive. Knowing about propagation-module.h is vital for researchers and developers who are creating simulations related to wireless signal propagation in NS-3.
PRE-REQUISITES:
Fresh installation of Ubuntu 22.04 LTS:
Screenshot:
2.NS-3.35 Installation:
Screenshot:
HEADER FILE VERIFICATION:
- Locate to the ns3.35/src/propagation/examples/ folder:
Screenshot:
2.Copy the main-propagation-loss.cc file to scratch folder:
Next, we need to copy the main-propagation-loss.cc file from ns3.35/src/propagation/examples/ folder to the ns3/scratch folder.
Screenshot:
Next, we need to paste the main-propagation-loss.cc file to the ns3/scratch folder.
Screenshot:
3.Open the Terminal:
Next, we need to launch the terminal by right clicking the mouse in the ns3 location.
Screenshot:
Screenshot:
4.NS-3.35 Configuration && Building Process:
Next, we need to configure and build the ns3 folder to make the copied files to the scratch need to store in configuration.
Command: “./waf configure && ./waf build”
Screenshot:
Screenshot:
5.Importing Propagation-module.h:
Here we imported the propagation-module.h header file in this example program.
Screenshot:
Here we highlighted the code line that JakesPropagationLossModel class which is the part of the Propagation-module.h that we will show class file that used in this code via propagation folder which represents propagation module.
Screenshot:
Screenshot:
Here we will show the header file by opening Propagation-module.h file to show the class imported from the Propagation-module.h in the example code.
Screenshot:
6.Executing the Example Propagation-module Program:
Then we need to run the Example Propagation-module program to view output of the program.
Command: “./waf –run main-propagation-loss”
Screenshot:
Here we shown the output of the example Propagation-module program by using Propagation-module.h.
Screenshot: