TransportConnectionVisualizerBase

Package: inet.visualizer.base

simple module TransportConnectionVisualizerBase

Base module for transport connection visualizer simple modules. It keeps track of open transport connections in a network. Open connections are not displayed by default, see the module parameters for how to enable the visualization. The actual visualization of transport connections is done in derived modules.

This module subscribes to tcpConnectionAdded and tcpConnectionRemoved on the module determined by the visualizationSubjectModule parameter.

See also: TransportConnectionCanvasVisualizer, TransportConnectionOsgVisualizer, ITransportConnectionVisualizer, VisualizerBase

inet.visualizer.base.TransportConnectionVisualizerBaseTransportConnectionVisualizerBasesimple

Inheritance diagram

Known subclasses

Name

Type

Description

TransportConnectionCanvasVisualizer

simple module

Visualizes transport layer connections on a 2D canvas. It displays a pair of colored icons for each connection at the network nodes where the connection starts or ends.

TransportConnectionOsgVisualizer

simple module

Visualizes transport layer connections in a 3D osg scene. It displays a pair of colored icons for each connection at the network nodes where the connection starts or ends.

Extends

Name

Type

Description

VisualizerBase

simple module

Base module for visualizer simple modules. It simply provides the visualization target module for derived modules.

Parameters

Name

Type

Default value

Description

displayStringTextFormat

string

“”

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

visualizationTargetModule

string

“^”

Module path relative to the visualizer which determines where the visualization should appear in the user interface, parent module by default

visualizationSubjectModule

string

“^”

Module path relative to the visualizer which determines what part of the simulation model the visualizer displays in the user interface, parent module by default

tags

string

“”

Tag added to each visualization for disambiguation in the runtime environment

networkNodeVisualizerModule

string

“^.networkNodeVisualizer”

The network node visualizer module, refers to a sibling submodule by default

displayTransportConnections

bool

false

display transport connection endpoints, disabled by default

sourceNodeFilter

string

“*”

Which source network nodes are considered to display connections, matches no nodes by default

sourcePortFilter

string

“*”

Which source ports are considered to display connections, matches all ports by default

destinationNodeFilter

string

“*”

Which destination network nodes are considered to display connections, matches no nodes by default

destinationPortFilter

string

“*”

Which destination ports are considered to display connections, matches all ports by default

icon

string

“misc/marker_s”

Transport connection visualization icon

iconColor

string

“dark”

Transport connection icon color is a list of colors or a color group name (e.g. dark, light), a set of dark colors by default

labelFont

string

“<default>”

Label font, automatic by default

labelColor

string

“black”

Label color, black by default

placementHint

string

“top”

Annotation placement hint, space separated list of any, top, bottom, left, right, topLeft, topCenter, topRight, etc.

placementPriority

double

0

Determines the order of annotation positioning

Properties

Name

Value

Description

class

TransportConnectionVisualizerBase

display

i=block/app

Source code

//
// Base module for transport connection visualizer simple modules. It
// keeps track of open transport connections in a network. Open connections are
// not displayed by default, see the module parameters for how to enable the
// visualization. The actual visualization of transport connections is done
// in derived modules.
//
// This module subscribes to `tcpConnectionAdded` and `tcpConnectionRemoved` on the
// module determined by the `visualizationSubjectModule` parameter.
//
// @see ~TransportConnectionCanvasVisualizer, ~TransportConnectionOsgVisualizer, ~ITransportConnectionVisualizer, ~VisualizerBase
//
simple TransportConnectionVisualizerBase extends VisualizerBase
{
    parameters:
        string networkNodeVisualizerModule = default("^.networkNodeVisualizer"); // The network node visualizer module, refers to a sibling submodule by default

        bool displayTransportConnections = default(false);// display transport connection endpoints, disabled by default

        string sourceNodeFilter @mutable = default("*"); // Which source network nodes are considered to display connections, matches no nodes by default
        string sourcePortFilter @mutable = default("*"); // Which source ports are considered to display connections, matches all ports by default
        string destinationNodeFilter @mutable = default("*"); // Which destination network nodes are considered to display connections, matches no nodes by default
        string destinationPortFilter @mutable = default("*"); // Which destination ports are considered to display connections, matches all ports by default

        string icon = default("misc/marker_s"); // Transport connection visualization icon
        string iconColor = default("dark"); // Transport connection icon color is a list of colors or a color group name (e.g. dark, light), a set of dark colors by default
        string labelFont = default("<default>"); // Label font, automatic by default
        string labelColor = default("black"); // Label color, black by default
        string placementHint = default("top"); // Annotation placement hint, space separated list of any, top, bottom, left, right, topLeft, topCenter, topRight, etc.
        double placementPriority = default(0); // Determines the order of annotation positioning

        @class(TransportConnectionVisualizerBase);
}

File: src/inet/visualizer/base/TransportConnectionVisualizerBase.ned