SignalSource
Package: inet.common.misc
SignalSource
simple moduleEmits double-valued signals in the specified interval. May be used for testing indicator figures.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Extends
| Name | Type | Description |
|---|---|---|
| SimpleModule | simple module |
Base module for all INET 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 |
| startTime | double | 0s | |
| endTime | double | -1s | |
| interval | double | 1s | |
| signalName | string | "signalSourceOutput" | |
| value | double |
Properties
| Name | Value | Description |
|---|---|---|
| class | SignalSource | |
| display | i=block/cogwheel |
Signals
| Name | Type | Unit | Description |
|---|---|---|---|
| signalSourceOutput |
Source code
// // Emits double-valued signals in the specified interval. // May be used for testing indicator figures. // simple SignalSource extends SimpleModule { parameters: @class(SignalSource); @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