NoiseSource

Package: inet.physicallayer.wireless.noise

NoiseSource

compound module

(no description)

mobility : like IMobility

StationaryMobility: This mobility module does nothing; it can be used for stationary nodes.

IMobility: The module interface for mobility models.

Source:
mobility: <default("StationaryMobility")> like IMobility {
    parameters:
        @display("p=100,100");
} antenna : like IAntenna

IsotropicAntenna: This antenna model describes the theoretical point source which radiates the same intensity of...

IAntenna: The antenna model describes the physical device (a part of the radio) which converts electric...

Source:
antenna: <default("IsotropicAntenna")> like IAntenna {
    parameters:
        @display("p=100,200");
} transmitter : like ITransmitter

ITransmitter: The transmitter model describes the physical process which converts packets into electric signals.

Source:
transmitter: <default("NoiseScalarTransmitter")> like ITransmitter {
    parameters:
        @display("p=100,300");
}

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.

Parameters

Name Type Default value Description
radioMediumModule string "radioMedium"

module path of the medium module where this radio communicates

sleepInterval double

Properties

Name Value Description
networkNode
class NoiseSource
display i=block/wtx

Gates

Name Direction Size Description
upperLayerIn input
upperLayerOut output
radioIn input

Scheduled messages (observed)

msgkindctrltagsmsgnamecontext
omnetpp::cMessage0sleepTimer
omnetpp::cMessage0transmissionTimerfilled

Direct method calls (observed)

call tofunctioninfo
Ieee80211DimensionalRadioMediuminet::physicallayer::RadioMedium::addRadioaddRadio
Ieee80211DimensionalRadioMediuminet::physicallayer::RadioMedium::transmitPackettransmitPacket

Source code

module NoiseSource like IRadio
{
    parameters:
        string radioMediumModule = default("radioMedium"); // module path of the medium module where this radio communicates
        volatile double sleepInterval @unit(s);
        *.mobilityModule = default(absPath(".mobility"));
        @networkNode;
        @class(NoiseSource);
        @display("i=block/wtx");
    gates:
        input upperLayerIn @labels(ILinkLayerFrame/down) @loose;
        output upperLayerOut @labels(ILinkLayerFrame/up) @loose;
        input radioIn @labels(IWirelessSignal) @loose;
    submodules:
        mobility: <default("StationaryMobility")> like IMobility {
            parameters:
                @display("p=100,100");
        }
        antenna: <default("IsotropicAntenna")> like IAntenna {
            parameters:
                @display("p=100,200");
        }
        transmitter: <default("NoiseScalarTransmitter")> like ITransmitter {
            parameters:
                @display("p=100,300");
        }
}

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