Simple Module NetAnimTrace

Package: inet.common.misc
File: src/inet/common/misc/NetAnimTrace.ned

C++ definition

Records a NetAnim trace, using network-level modules and their connections. See http://www.nsnam.org/wiki/index.php/NetAnim

Note: NetAnim does not have a built-in layouter, and requires explicit node coordinates to be written into the file. This module takes node coordinates from module display strings; if there are no coordinates there, random coordinates will be generated. Thus, for good results it is recommended that you assign explicit coordinates to all network nodes.

Author: Andras

NetAnimTrace

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Networks:

Name Type Description
ClientServer network (no description)
ClientServerWithSM network (no description)
ClientServerWithSM network (no description)
PcapRecorderTest network (no description)

Parameters:

Name Type Default value Description
enabled bool true
filename string "netanim-trace.txt"

Properties:

Name Value Description
display i=block/control_s
labels node

Source code:

//
// Records a NetAnim trace, using network-level modules and their connections.
// See http://www.nsnam.org/wiki/index.php/NetAnim
//
// Note: NetAnim does not have a built-in layouter, and requires explicit
// node coordinates to be written into the file. This module takes node
// coordinates from module display strings; if there are no coordinates
// there, random coordinates will be generated. Thus, for good results
// it is recommended that you assign explicit coordinates to all network
// nodes.
//
// @author Andras
//
simple NetAnimTrace
{
    parameters:
        bool enabled = default(true);
        string filename = default("netanim-trace.txt");
        @display("i=block/control_s");
        @labels(node);
}