HLAExample

From Nsnam
Jump to navigation Jump to search

What are we making?

The tutorial will talk about using hla model for ns-3 to make ns-3 participate in distributed simulation with other federates through a Run Time infrastructure. The code for the tutorial can be found in [ .cc] and [ .fed] files. We will be referring to the ns-3 hla model Wiki, it has mostly model related explanation, only few sub-sections are required for the tutorial. Information about HLA and RTI. on Wikipedia.

If you want to know more about the source code of the hla model, please read the design and see the diagram here and here. Also reading this would be useful. The code can be found here.

Writing the ns-3 script

Writing the Object Model file

Running the Simulation

Testing with external federate