LinkBreakVisualizerBase

Package: inet.visualizer.base

LinkBreakVisualizerBase

simple module

This is a base module for link break visualizer simple modules. It keeps track of link breaks in a network. Link breaks are not displayed by default, see module parameters for how to enable the visualization. The actual visualization of link breaks is done in derived modules.

This module subscribes for linkBroken on the module determined by the visualizationSubjectModule parameter. If the visualizer receives a link break signal, then it stores the broken link and starts the link break visualization.

See also: LinkBreakCanvasVisualizer, LinkBreakOsgVisualizer, ILinkBreakVisualizer, VisualizerBase

Inheritance diagram

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

Known subclasses

Name Type Description
LinkBreakCanvasVisualizer simple module

This module visualizes link breaks on a 2D canvas. It displays an icon for each link break in the network. See the documentation of the base module for what constitutes a link break. The icon is positioned at the middle point of the link.

LinkBreakOsgVisualizer simple module

This module visualizes link breaks on a 3D osg scene. It displays an icon for each link break in the network. See the documentation of the base module for what constitutes a link break. The icon is positioned at the middle point of the link.

Extends

Name Type Description
VisualizerBase simple module

This is a base module for visualizer simple modules. It simply provides the visualization target module for derived modules.

Parameters

Name Type Default value Description
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

displayLinkBreaks bool false

display icons for link breaks, disabled by default

nodeFilter string "*"

which network nodes are considered, matches all nodes by default

interfaceFilter string "*"

which interfaces are considered, matches all interfaces by default

packetFilter object "*"

which packets are considered, matches all packets by default

icon string "status/stop"
iconTintAmount double 0
iconTintColor string ""
fadeOutMode string "realTime"

specifies how inactive link breaks fade out

fadeOutTime double 1s

how quickly link breaks fade away, 1 second by default

fadeOutAnimationSpeed double 0

animation speed while there are link breaks, value must be in the range (0, +inf)

Properties

Name Value Description
class LinkBreakVisualizerBase
display i=block/app

Source code

//
// This is a base module for link break visualizer simple modules. It keeps
// track of link breaks in a network. Link breaks are not displayed by
// default, see module parameters for how to enable the visualization. The
// actual visualization of link breaks is done in derived modules.
//
// This module subscribes for linkBroken on the module determined by the
// visualizationSubjectModule parameter. If the visualizer receives a link break signal,
// then it stores the broken link and starts the link break visualization.
//
// @see ~LinkBreakCanvasVisualizer, ~LinkBreakOsgVisualizer, ~ILinkBreakVisualizer, ~VisualizerBase
//
simple LinkBreakVisualizerBase extends VisualizerBase
{
    parameters:
        bool displayLinkBreaks = default(false); // display icons for link breaks, disabled by default

        string nodeFilter @mutable = default("*"); // which network nodes are considered, matches all nodes by default
        string interfaceFilter @mutable = default("*"); // which interfaces are considered, matches all interfaces by default
        object packetFilter @mutable = default("*"); // which packets are considered, matches all packets by default

        string icon = default("status/stop");
        double iconTintAmount = default(0);
        string iconTintColor = default("");

        string fadeOutMode @enum("realTime","animationTime","simulationTime") = default("realTime"); // specifies how inactive link breaks fade out
        double fadeOutTime @unit(s) = default(1s); // how quickly link breaks fade away, 1 second by default
        double fadeOutAnimationSpeed = default(0); // animation speed while there are link breaks, value must be in the range (0, +inf)

        @class(LinkBreakVisualizerBase);
}

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