Difference between revisions of "HLAExample"

From Nsnam
Jump to: navigation, search
m (What are we making?)
m (What are we making?)
Line 1: Line 1:
= What are we making? =
+
= Before Getting Started =
  
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 [https://www.nsnam.org/wiki/index.php/GSOC2012HLA Wiki], it has mostly model related explanation, only few sub-sections are required for the tutorial. Information about [http://en.wikipedia.org/wiki/High-level_architecture_%28simulation%29 HLA] and [http://en.wikipedia.org/wiki/Run-Time_Infrastructure_%28simulation%29 RTI]. on Wikipedia.  
+
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 [http://code.nsnam.org/muditraajgupta/ns-3-dev-hla/file/528951a6288c/codeRev/src/hla/examples/simple-shared-object-example.cc .cc] and [http://code.nsnam.org/muditraajgupta/ns-3-dev-hla/file/528951a6288c/codeRev/src/hla/examples/SimpleSharedObjectExample.fed .fed] files. We will be referring to the ns-3 hla model [https://www.nsnam.org/wiki/index.php/GSOC2012HLA Wiki], it has mostly model related explanation, only few sub-sections are required for the tutorial. Information about [http://en.wikipedia.org/wiki/High-level_architecture_%28simulation%29 HLA] and [http://en.wikipedia.org/wiki/Run-Time_Infrastructure_%28simulation%29 RTI]. on Wikipedia.  
  
 
If you want to know more about the source code of the hla model, please read the [https://www.nsnam.org/wiki/index.php/GSOC2012HLA#Design design] and see the diagram [https://docs.google.com/open?id=0ByV--ZuE60tCSC1SZVlLQllZdVk here] and [https://docs.google.com/open?id=0ByV--ZuE60tCSFZVWDA3dmpLMDQ here]. Also reading [https://www.nsnam.org/wiki/index.php/GSOC2012HLA#Components this] would be useful. The code can be found [http://code.nsnam.org/muditraajgupta/ns-3-dev-hla/ here].
 
If you want to know more about the source code of the hla model, please read the [https://www.nsnam.org/wiki/index.php/GSOC2012HLA#Design design] and see the diagram [https://docs.google.com/open?id=0ByV--ZuE60tCSC1SZVlLQllZdVk here] and [https://docs.google.com/open?id=0ByV--ZuE60tCSFZVWDA3dmpLMDQ here]. Also reading [https://www.nsnam.org/wiki/index.php/GSOC2012HLA#Components this] would be useful. The code can be found [http://code.nsnam.org/muditraajgupta/ns-3-dev-hla/ here].
 +
 +
The tutorial will assume that you have a working copy on ns-3 with hla which can be obtained [http://code.nsnam.org/muditraajgupta/ns-3-dev-hla/ here] and familiarity with writing and running ns-3 scripts.
  
 
= Writing the ns-3 script =
 
= Writing the ns-3 script =

Revision as of 01:41, 20 August 2012

Before Getting Started

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.

The tutorial will assume that you have a working copy on ns-3 with hla which can be obtained here and familiarity with writing and running ns-3 scripts.

Writing the ns-3 script

Writing the Object Model file

Running the Simulation

Testing with external federate