Ieee80211Visualizer

Package: inet.visualizer.common

compound module Ieee80211Visualizer

Integrates canvas and osg IEEE 802.11 association visualizers into a single module.

See also: Ieee80211CanvasVisualizer, Ieee80211OsgVisualizer, Ieee80211VisualizerBase, IIeee80211Visualizer

Usage diagram

Inheritance diagram

Parameters

Name

Type

Default value

Description

visualizationTargetModule

string

“^”

visualizationSubjectModule

string

“^”

Properties

Name

Value

Description

display

i=block/app

Unassigned submodule parameters

Name

Type

Default value

Description

canvasVisualizer.displayStringTextFormat

string

“”

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

canvasVisualizer.visualizationTargetModule

string

“^”

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

canvasVisualizer.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

canvasVisualizer.tags

string

“”

Tag added to each visualization for disambiguation in the runtime environment

canvasVisualizer.networkNodeVisualizerModule

string

“^.networkNodeVisualizer”

Module path to the network node visualizer module, refers to a sibling submodule by default

canvasVisualizer.displayAssociations

bool

false

Display association icon and SSID, disabled by default

canvasVisualizer.nodeFilter

string

“*”

Which nodes are considered, matches all nodes by default

canvasVisualizer.interfaceFilter

string

“*”

Which interfaces are considered, matches all interfaces by default

canvasVisualizer.minPower

double

-85dBm

Minimum expected signal power

canvasVisualizer.maxPower

double

-50dBm

Maximum expected signal power

canvasVisualizer.icons

string

“misc/signal_power_0 misc/signal_power_1 misc/signal_power_2 misc/signal_power_3”

Wireless network visualization icon for different signal powers

canvasVisualizer.iconColor

string

“dark”

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

canvasVisualizer.labelFont

string

“<default>”

Label font, automatic by default

canvasVisualizer.labelColor

string

“black”

Label color, black by default

canvasVisualizer.placementHint

string

“top”

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

canvasVisualizer.placementPriority

double

0

Determines the order of annotation positioning

canvasVisualizer.zIndex

double

2

Determines the drawing order of figures relative to other visualizers

osgVisualizer.displayStringTextFormat

string

“”

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

osgVisualizer.visualizationTargetModule

string

“^”

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

osgVisualizer.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

osgVisualizer.tags

string

“”

Tag added to each visualization for disambiguation in the runtime environment

osgVisualizer.networkNodeVisualizerModule

string

“^.networkNodeVisualizer”

Module path to the network node visualizer module, refers to a sibling submodule by default

osgVisualizer.displayAssociations

bool

false

Display association icon and SSID, disabled by default

osgVisualizer.nodeFilter

string

“*”

Which nodes are considered, matches all nodes by default

osgVisualizer.interfaceFilter

string

“*”

Which interfaces are considered, matches all interfaces by default

osgVisualizer.minPower

double

-85dBm

Minimum expected signal power

osgVisualizer.maxPower

double

-50dBm

Maximum expected signal power

osgVisualizer.icons

string

“misc/signal_power_0 misc/signal_power_1 misc/signal_power_2 misc/signal_power_3”

Wireless network visualization icon for different signal powers

osgVisualizer.iconColor

string

“dark”

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

osgVisualizer.labelFont

string

“<default>”

Label font, automatic by default

osgVisualizer.labelColor

string

“black”

Label color, black by default

osgVisualizer.placementHint

string

“top”

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

osgVisualizer.placementPriority

double

0

Determines the order of annotation positioning

Source code

//
// Integrates canvas and osg IEEE 802.11 association visualizers into a single module.
//
// @see ~Ieee80211CanvasVisualizer, ~Ieee80211OsgVisualizer, ~Ieee80211VisualizerBase, ~IIeee80211Visualizer
//
module Ieee80211Visualizer like IIeee80211Visualizer
{
    parameters:
        @display("i=block/app");
        string visualizationTargetModule = default("^");
        string visualizationSubjectModule = default("^");
        *.visualizationTargetModule = default(absPath(this.visualizationTargetModule));
        *.visualizationSubjectModule = default(absPath(this.visualizationSubjectModule));
    submodules:
        canvasVisualizer: <default(firstAvailableOrEmpty("Ieee80211CanvasVisualizer"))> like IIeee80211Visualizer if typename != "" {
            parameters:
                @display("p=100,100");
        }
        osgVisualizer: <default(firstAvailableOrEmpty("Ieee80211OsgVisualizer"))> like IIeee80211Visualizer if typename != "" {
            parameters:
                @display("p=100,200");
        }
}

File: src/inet/visualizer/common/Ieee80211Visualizer.ned