NoiseTransmitter

Package: inet.physicallayer.wireless.noise

compound module NoiseTransmitter

Transmitter module that generates noise signals with configurable parameters. Creates noise transmissions with specified duration, center frequency, bandwidth, and power. Used by NoiseSource to produce interference in wireless networks for testing protocol robustness and simulating realistic channel conditions.

Usage diagram

Inheritance diagram

Used in compound modules

Name

Type

Description

NoiseSource

compound module

A network node that generates periodic noise transmissions that can interfere with wireless communications. Alternates between sleep and transmission states based on configurable intervals. Uses a NoiseTransmitter to create noise signals with specified duration, frequency, bandwidth, and power parameters. Useful for testing protocol robustness against interference in wireless networks.

Extends

Name

Type

Description

TransmitterBase

compound module

(no description)

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

signalAnalogRepresentation

string

“scalar”

Determines the analog domain signal representation of transmissions

duration

double

centerFrequency

double

nan Hz

bandwidth

double

0Hz

power

double

gainFunctionCacheLimit

int

0

Limits the number of gain functions cached for a given duration, centerFrequency, and bandwidth

Properties

Name

Value

Description

class

NoiseTransmitter

display

i=block/wtx

Source code

//
// Transmitter module that generates noise signals with configurable parameters.
// Creates noise transmissions with specified duration, center frequency,
// bandwidth, and power. Used by ~NoiseSource to produce interference in wireless
// networks for testing protocol robustness and simulating realistic channel
// conditions.
//
module NoiseTransmitter extends TransmitterBase like ITransmitter
{
    parameters:
        volatile double duration @unit(s);
        volatile double centerFrequency @unit(Hz) = default(nan Hz);
        volatile double bandwidth @unit(Hz) = default(0Hz);
        volatile double power @unit(W);
        int gainFunctionCacheLimit = default(0); // Limits the number of gain functions cached for a given duration, centerFrequency, and bandwidth
        @class(NoiseTransmitter);
        @display("i=block/wtx");
}

File: src/inet/physicallayer/wireless/noise/NoiseTransmitter.ned