Network InstrumentsExample2

Package: inet.examples.visualization.instruments
File: examples/visualization/instruments/InstrumentsExample.ned

(no description)

SignalSource

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

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

Extends:

Name Type Description
InstrumentsExample network (no description)

Properties:

Name Value Description
isNetwork
display bgb=800,450

Statistics:

Name Title Source Record Unit Interpolation Mode
gauge signalSourceOutput figure
image signalSourceOutput figure
lineargauge signalSourceOutput figure
plot signalSourceOutput figure
progress signalSourceOutput figure
text signalSourceOutput figure
label signalSourceOutput figure
counter signalSourceOutput figure
thermometer signalSourceOutput figure

Unassigned submodule parameters:

Name Type Default value Description
signalSource.startTime double 0s
signalSource.endTime double -1s
signalSource.interval double 1s
signalSource.value double

Source code:

network InstrumentsExample2 extends InstrumentsExample
{
    parameters:
        @figure[text](textFormat="Value=%g (An Indicator Text)"; initialValue=0);
        @figure[label](textFormat="Value=%g (An Indicator Label)"; initialValue=0);
        @figure[gauge](backgroundColor=lightBlue; needleColor=yellow; initialValue=0; minValue=-10; maxValue=10; tickSize=2; label="A Gauge"; labelFont="Arial,10pt,italic"; labelColor="grey"; colorStrip=green 0.6 yellow 0.9 red);
        @figure[lineargauge](backgroundColor=lightBlue; needleColor=magenta; initialValue=0; cornerRadius=5; minValue=-10; maxValue=10; tickSize=2; label="A Linear Gauge"; labelFont="Arial,10pt,italic"; labelColor="grey");
        @figure[progress](backgroundColor=white; initialValue=0; stripColor=darkorange; text="%g  (%.4g%%)"; textFont="Arial,14pt,bold"; textColor="blue4"; cornerRadius=5; borderWidth=4; minValue=-10; maxValue=10; label="A Progress Meter"; labelFont="Arial,10pt,italic"; labelColor="grey");
        @figure[counter](backgroundColor=white; initialValue=0; decimalPlaces=5; digitBackgroundColor=lightGreen; digitBorderColor=grey; digitFont="Arial,20pt,bold"; digitColor=grey; label="A Counter"; labelFont="Arial,10pt,italic"; labelColor="grey");
        @figure[thermometer](mercuryColor=firebrick; initialValue=0; minValue=-10; maxValue=10; tickSize=2; label="A Thermometer"; labelFont="Arial,10pt,italic"; labelColor="grey");
        @figure[image](images=trafficlight_off,trafficlight_red,trafficlight_yellow,trafficlight_green,trafficlight_redyellow; initialValue=9; size=-,-; opacity=0.8; tintColor=yellow; tintAmount=0.1; labelOffset=1,35; label="An Indexed Image"; labelFont="Arial,10pt,italic"; labelColor="grey");
        @figure[plot](backgroundColor=lightBlue; lineColor=red3; minValue=-10; maxValue=10; valueTickSize=5; timeWindow=100; timeTickSize=20; label="A Plot"; labelFont="Arial,10pt,italic"; labelColor="grey");

        signalSource.value = 12*sin(0.05 * dropUnit(simTime()));
}