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="// // This file is part of an OMNeT++/OMNEST simulation example. // "/> <simple-module name="Source"> <comment locid="trailing" content=" "/> <comment locid="banner" content="// // Generates jobs (messages) with the given interarrival time. // "/> <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=""i=block/source"" value="i=block/source"/> </property-key> </property> </parameters> <gates> <gate name="out" type="output"/> </gates> </simple-module> </ned-file>