GateScheduleCanvasVisualizer

Package: inet.visualizer.canvas.common

simple module GateScheduleCanvasVisualizer

Visualizes gates on a 2D canvas.

See also: GateScheduleOsgVisualizer, GateScheduleVisualizer, GateScheduleVisualizerBase, IGateScheduleVisualizer

inet.visualizer.canvas.common.GateScheduleCanvasVisualizerGateScheduleCanvasVisualizersimple

Usage diagram

Inheritance diagram

Used in compound modules

Name

Type

Description

IntegratedCanvasVisualizer

compound module

Integrates all canvas visualizers into a single module. It supports disabling any submodule visualizer by providing an empty string as its type.

IntegratedMultiCanvasVisualizer

compound module

Integrates all canvas visualizers into a single module. It supports disabling any submodule visualizer by providing an empty string as its type.

GateScheduleVisualizer

compound module

Integrates canvas and osg gate visualizers into a single module.

Extends

Name

Type

Description

GateScheduleVisualizerBase

simple module

Base module for gate visualizer simple 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”

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

displayGateSchedules

bool

false

labelFormat

string

“%i %D”

gateFilter

string

“**”

Which gates are considered, matches all gates by default

width

double

100

height

double

8

spacing

double

2

placementHint

string

“right”

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

displayDuration

double

0s

Gate operation time duration visualized in the amount of space available, use gate period by default

currentTimePosition

double

width / 2

Position of the current simulation time in the visualization, horizontally centered by default

zIndex

double

10

Determines the drawing order of figures relative to other visualizers

Properties

Name

Value

Description

class

GateScheduleCanvasVisualizer

display

i=block/app

Source code

//
// Visualizes gates on a 2D canvas.
//
// @see ~GateScheduleOsgVisualizer, ~GateScheduleVisualizer, ~GateScheduleVisualizerBase, ~IGateScheduleVisualizer
//
simple GateScheduleCanvasVisualizer extends GateScheduleVisualizerBase like IGateScheduleVisualizer
{
    parameters:
        double zIndex = default(10); // Determines the drawing order of figures relative to other visualizers
        @class(GateScheduleCanvasVisualizer);
}

File: src/inet/visualizer/canvas/common/GateScheduleCanvasVisualizer.ned