SignalSource

Package: inet.common.misc

SignalSource

simple module

Emits double-valued signals in the specified interval. May be used for testing indicator figures.

Parameters

Name Type Default value Description
startTime double 0s
endTime double -1s
interval double 1s
signalName string "signalSourceOutput"
value double

Properties

Name Value Description
display i=block/cogwheel

Signals

Name Type Unit
signalSourceOutput

Source code

//
// Emits double-valued signals in the specified interval.
// May be used for testing indicator figures.
//
simple SignalSource
{
    parameters:
        @display("i=block/cogwheel");
        @signal[signalSourceOutput];
        double startTime @unit(s) = default(0s);
        double endTime @unit(s) = default(-1s);
        volatile double interval @unit(s) = default(1s);
        string signalName = "signalSourceOutput";
        volatile double value;
}

File: src/inet/common/misc/SignalSource.ned