Chapter 3. Editing INI Files

Table of Contents

Overview
Creating INI Files
Using the INI File Editor
Editing in Form Mode
Editing in Text Mode
Associated Views
Outline View
Problems View
Parameters View
Module Hierarchy View
NED Inheritance View

Overview

In OMNeT⁠+⁠+, simulation models are parameterized and configured for execution using configuration files with the .ini extension, called INI files. Ini files are text files, which can be edited using any text editor. However, OMNeT⁠+⁠+ 4.x introduces a tool expressly designed for editing INI files. The INI File Editor is part of the OMNeT⁠+⁠+ IDE and is very effective in assisting the user to author INI files. It is a very useful feature because it has detailed knowledge of the simulation model, the INI file syntax, and the available configuration options.

Note

The syntax and features of INI files have changed since OMNeT⁠+⁠+ 3.x. These changes are summarized in the "Configuring Simulations" chapter of the "OMNeT⁠+⁠+ 4.x. User Manual".

The INI File Editor is a dual-mode editor. The configuration can be edited using forms and dialogs, or as plain text. Forms are organized around topics like general setup, Cmdenv, Tkenv, output files, extensions and so on. The text editor provides syntax highlighting and auto completion. Several views can display information, which is useful when editing INI files. For example you can see the errors in the current INI file or all the available module parameters in one view. You can easily navigate from the module parameters to their declaration in the NED file.