A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
Manual
Navigation
index
next
|
previous
|
ns-3
Manual
Support
ΒΆ
Creating a new
ns-3
model
Design Approach
Example:
ErrorModel
Scaffolding
Review the
ns-3
Coding Style Document
Decide Where in the Source Tree the Model Should Reside
waf
and
wscript
Include Guards
namespace ns3
Initial Implementation
Inherit from the
Object
Class?
Initial Classes
Including External Files
Logging Support
Constructor, Empty Function Prototypes
Key Variables (Default Values, Attributes)
Test Program 1
Object Framework
Adding a Sample Script
Add Basic Support in the Class
Add Accessor
Plumb Into the System
Create Null Functional Script
Add a Subclass
How to Subclass
Build Core Functions and Unit Tests
Assert Macros
Writing Unit Tests
Adding a New Module to
ns-3
Step 0 - Module Layout
Step 1 - Create a Module Skeleton
Step 3 - Declare Source Files
Step 4 - Declare Public Header Files
Step 5 - Declare Tests
Step 6 - Declare Examples
Step 7 - Examples Run as Tests
Step 8 - Configure and Build
Step 9 - Python Bindings
Creating Documentation
Documenting with Sphinx
Adding New Chapters
Where?
Link
Makefile
Building Sphinx Docs
ns-3
Specifics
Documenting with Doxygen
Preferred Style
Useful Features
Building Doxygen Docs
ns-3
Specifics
Enabling Subsets of
ns-3
Modules
How to enable a subset of
ns-3
‘s modules
Enable modules using waf’s –enable-modules option
Enable modules using the
ns-3
configuration file
Enabling/disabling
ns-3
Tests and Examples
How to enable/disable examples and tests in
ns-3
Enable/disable examples and tests using build.py
Enable/disable examples and tests using waf
Enable/disable examples and tests using the
ns-3
configuration file
Troubleshooting
Build errors
Run-time errors
Previous topic
How to write tests
Next topic
Creating a new
ns-3
model
This Page
Show Source
Quick search
Enter search terms or a module, class or function name.
Navigation
index
next
|
previous
|
ns-3
Manual