OMNeT++ NEDXML  5.5
Example

An example NED file and its XML representation.

A short NED code fragment:

//
// This file is part of an OMNeT++/OMNEST simulation example.
//

//
// Generates jobs (messages) with the given interarrival time.
//
simple Source
{
    parameters:
        volatile double sendIaTime @unit(s);
        @display("i=block/source");
    gates:
        output out;
}

The corresponding XML:

<?xml version="1.0" encoding="ISO-8859-1"?>

<ned-file filename="Source1.ned">
    <comment locid="banner" content="//&#10;// This file is part of an OMNeT++/OMNEST simulation example.&#10;//&#10;&#10;&#10;"/>
    <simple-module name="Source">
        <comment locid="trailing" content="&#10;&#10;&#10;"/>
        <comment locid="banner" content="//&#10;// Generates jobs (messages) with the given interarrival time.&#10;//&#10;"/>
        <parameters>
            <param type="double" is-volatile="true" name="sendIaTime">
                <property name="unit">
                    <property-key>
                        <literal type="spec" text="s" value="s"/>
                    </property-key>
                </property>
            </param>
            <property name="display">
                <property-key>
                    <literal type="string" text="&quot;i=block/source&quot;" value="i=block/source"/>
                </property-key>
            </property>
        </parameters>
        <gates>
            <gate name="out" type="output"/>
        </gates>
    </simple-module>
</ned-file>