NED File src/inet/visualizer/canvas/physicallayer/MediumCanvasVisualizer.ned¶
Name |
Type |
Description |
|---|---|---|
simple module |
Visualizes a medium on a 2D canvas. It displays communication ranges and interference ranges as circles around network nodes. It displays an image at network nodes which are currently transmitting, and a different image at other network nodes which are currently receiving. It also displays radio signals as a 2D ring or a 3D sphere as they propagate through the medium. |
Source code¶
//
// Copyright (C) 2020 OpenSim Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//
package inet.visualizer.canvas.physicallayer;
import inet.visualizer.base.MediumVisualizerBase;
import inet.visualizer.contract.IMediumVisualizer;
//
// Visualizes a medium on a 2D canvas. It displays communication
// ranges and interference ranges as circles around network nodes. It displays
// an image at network nodes which are currently transmitting, and a different
// image at other network nodes which are currently receiving. It also displays
// radio signals as a 2D ring or a 3D sphere as they propagate through the
// medium.
//
// @see ~MediumCanvasVisualizer, ~MediumVisualizer, ~MediumVisualizerBase, ~IMediumVisualizer
//
simple MediumCanvasVisualizer extends MediumVisualizerBase like IMediumVisualizer
{
parameters:
double zIndex = default(0); // Determines the drawing order of figures relative to other visualizers
string signalShape @enum("ring", "sphere") = default("ring"); // Shape for displaying signals
double signalOpacity = default(0.5); // Signal opacity, value must be in the range [0, 1]
int signalRingCount = default(20); // Number of stationary rings around the transmitter, value must be in the range [0, +inf)
double signalRingSize @unit(m) = default(50m); // Width of stationary rings, value must be in the range (0, +inf)
double signalFadingDistance @unit(m) = default(50m); // Distance parameter for exponential opacity decreasing, value must be in the range (0, +inf)
double signalFadingFactor = default(1.2); // Factor parameter for exponential opacity decreasing, value must be in the range (1, +inf)
int signalWaveCount = default(20); // Number of moving circles representing waves around the transmitter, value must be in the range [0, +inf)
double signalWaveLength @unit(m) = default(50m); // Distance between moving circles representing waves, value must be in the range (0, +inf)
double signalWaveWidth @unit(m) = default(10m); // Width of moving circles representing waves, value must be in the range (0, +inf)
double signalWaveFadingAnimationSpeedFactor = default(1); // Value must be in the range [0, 1]
bool displayCommunicationHeat = default(false); // When enabled the radio medium displays recent successful receptions as a heat map overlay
@class(MediumCanvasVisualizer);
}