RadioMedium

Package: inet.physicallayer.wireless.common.medium

RadioMedium

compound module

The medium model describes the shared physical medium where communication takes place. It keeps track of radios, noise sources, ongoing transmissions, background noise, and other ongoing noises. The medium computes when, where and how transmissions and noises arrive at receivers. It also efficiently provides the set of interfering transmissions and noises for the receivers.

propagation : like IPropagation

ConstantSpeedPropagation: This propagation model computes the propagation time to be proportional to the traveled distance,...

IPropagation: The propagation model describes how a radio signal propagates through space over time.

Source:
propagation: <default("ConstantSpeedPropagation")> like IPropagation {
    parameters:
        @display("p=100,100");
} analogModel : like IAnalogModel

IAnalogModel: The analog model describes how the analog representation of the transmissions is turned into the...

Source:
analogModel: <default(signalAnalogRepresentation == "unitDisk" ? "UnitDiskAnalogModel" : signalAnalogRepresentation == "scalar" ? "ScalarAnalogModel" : signalAnalogRepresentation == "dimensional" ? "DimensionalAnalogModel" : "")> like IAnalogModel {
    parameters:
        @display("p=100,200");
} backgroundNoise : like IBackgroundNoise

IBackgroundNoise: The background noise model describes the thermal noise, the cosmic background noise, and other...

Source:
backgroundNoise: <default(signalAnalogRepresentation == "scalar" ? "IsotropicScalarBackgroundNoise" : signalAnalogRepresentation == "dimensional" ? "IsotropicDimensionalBackgroundNoise" : "")> like IBackgroundNoise if typename != "" {
    parameters:
        @display("p=100,300");
} pathLoss : like IPathLoss

IPathLoss: The path loss model describes the reduction of power as the signal propagates through space.

Source:
pathLoss: <default("FreeSpacePathLoss")> like IPathLoss {
    parameters:
        @display("p=300,100");
} obstacleLoss : like IObstacleLoss

IObstacleLoss: The obstacle loss model describes the reduction of power as the signal passes through physical...

Source:
obstacleLoss: <default("")> like IObstacleLoss if typename != "" {
    parameters:
        @display("p=300,200");
} mediumLimitCache : like IMediumLimitCache

Source:
mediumLimitCache: <default("MediumLimitCache")> like IMediumLimitCache {
    parameters:
        @display("p=500,100");
} communicationCache : like ICommunicationCache

VectorCommunicationCache: This communication cache model stores radio, transmission and reception related intermediate...

Source:
communicationCache: <default("VectorCommunicationCache")> like ICommunicationCache {
    parameters:
        @display("p=500,300");
} neighborCache : like INeighborCache

INeighborCache: The neighbor cache model computes the affected set of receivers on the medium for a given...

Source:
neighborCache: <default("")> like INeighborCache if typename != "" {
    parameters:
        @display("p=500,200");
}

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.

Known subclasses

Name Type Description
ApskDimensionalRadioMedium compound module

This radio medium model provides a hypothetical radio that simply uses one of the well-known modulations without utilizing other techiques such as forward error correction, interleaving, spreading, etc. It must be used in conjunction with the ApskDimensionalRadio model.

ApskLayeredDimensionalRadioMedium compound module

This medium model is used by a simple hypothetical layered radio.

ApskLayeredScalarRadioMedium compound module

This medium model is used by a simple hypothetical layered radio.

ApskScalarRadioMedium compound module

This radio medium model provides a hypothetical radio that simply uses one of the well-known modulations without utilizing other techiques such as forward error correction, interleaving, spreading, etc. It must be used in conjunction with the ApskScalarRadio model.

Ieee80211LayeredDimensionalRadioMedium compound module (no description)
Ieee80211LayeredScalarRadioMedium compound module (no description)
Ieee80211RadioMedium compound module

This radio medium model is part of thee IEEE 802.11 physical layer model. It must be used in conjunction with the Ieee80211Radio model or other derived models.

Ieee802154NarrowbandDimensionalRadioMedium compound module (no description)
Ieee802154NarrowbandScalarRadioMedium compound module (no description)
UnitDiskRadioMedium compound module

This radio medium model provides a very simple but fast and predictable physical layer behavior. It must be used in conjunction with the UnitDiskRadio model.

Parameters

Name Type Default value Description
physicalEnvironmentModule string "physicalEnvironment"

module path of the physical environment model

signalAnalogRepresentation string "scalar"
rangeFilter string ""

filter parameters that control when signals are sent to receiver radios

radioModeFilter bool false

when enabled the radio medium doesn't send signals to a radio if it's neither in receiver nor in transceiver mode

listeningFilter bool false

when enabled the radio medium doesn't send signals to a radio if it listens on the channel in incompatible mode (e.g. different carrier frequency and bandwidth, different modulation)

macAddressFilter bool false

when enabled the radio medium doesn't send signals to a radio if it the destination mac address differs

recordTransmissionLog bool false

logging parameters

recordReceptionLog bool false

when enabled the medium writes one line per reception into the communication log file

Properties

Name Value Description
class RadioMedium
display i=misc/sun

Signals

Name Type Unit
radioRemoved
signalDepartureStarted
radioAdded
signalArrivalStarted
signalAdded
signalDepartureEnded
signalRemoved
signalArrivalEnded

Scheduled messages (observed)

msgkindctrltagsmsgnamecontext
omnetpp::cMessage0removeNonInterferingTransmissions

Direct method calls (observed)

call tofunctioninfo
ApskErrorModelinet::physicallayer::ApskErrorModel::computeBitErrorRatecomputeBitErrorRate
ApskErrorModelinet::physicallayer::ApskErrorModel::computePacketErrorRatecomputePacketErrorRate
ApskErrorModelinet::physicallayer::ApskErrorModel::computeSymbolErrorRatecomputeSymbolErrorRate
RadioMediuminet::physicallayer::RadioMedium::addTransmissionaddTransmission
Ieee80211NistErrorModelinet::physicallayer::Ieee80211NistErrorModel::computeBitErrorRatecomputeBitErrorRate
Ieee80211NistErrorModelinet::physicallayer::Ieee80211NistErrorModel::computePacketErrorRatecomputePacketErrorRate
Ieee80211NistErrorModelinet::physicallayer::Ieee80211NistErrorModel::computeSymbolErrorRatecomputeSymbolErrorRate

Called methods (observed)

functioninfocall from
inet::physicallayer::RadioMedium::addRadioaddRadioApskRadio, Ieee80211DimensionalRadio, Ieee802154NarrowbandDimensionalRadio
inet::physicallayer::RadioMedium::addTransmissionaddTransmissionRadioMedium
inet::physicallayer::RadioMedium::listenOnMediumlistenOnMediumApskRadio, Ieee80211DimensionalRadio, Ieee802154NarrowbandDimensionalRadio
inet::physicallayer::RadioMedium::receivePacketreceivePacketApskRadio, Ieee80211DimensionalRadio, Ieee802154NarrowbandDimensionalRadio
inet::physicallayer::RadioMedium::transmitPackettransmitPacketApskRadio, Ieee80211DimensionalRadio, Ieee802154NarrowbandDimensionalRadio

Packet operations (observed)

chunkTypepacketAction
ApskPhyHeaderpeekAtFront
Ieee80211OfdmPhyHeaderpeekAtFront

Shared Tagging operations (observed)

tagTypetagAction
clearTags
ErrorRateIndaddTagIfAbsent
PacketProtocolTagaddTag, getTag
SignalBandReqfindTag
SignalBitrateReqfindTag
SignalPowerIndaddTagIfAbsent
SignalPowerReqfindTag
SignalTimeIndaddTagIfAbsent
SnirIndaddTagIfAbsent
Ieee80211ChannelIndaddTagIfAbsent
Ieee80211ChannelReqfindTag
Ieee80211ModeIndaddTagIfAbsent
Ieee80211ModeReqfindTag

Unassigned submodule parameters

Name Type Default value Description
neighborCache.refillPeriod double

Source code

//
// The medium model describes the shared physical medium where communication
// takes place. It keeps track of radios, noise sources, ongoing transmissions,
// background noise, and other ongoing noises. The medium computes when, where
// and how transmissions and noises arrive at receivers. It also efficiently
// provides the set of interfering transmissions and noises for the receivers.
//
module RadioMedium like IRadioMedium
{
    parameters:
        string physicalEnvironmentModule = default("physicalEnvironment"); // module path of the physical environment model
        string signalAnalogRepresentation @enum("unitDisk","scalar","dimensional") = default("scalar");

        // filter parameters that control when signals are sent to receiver radios
        string rangeFilter = default("");       // when either set to 'interferenceRange' or 'communicationRange' the radio medium doesn't send signals to a radio if it's outside the provided range
        bool radioModeFilter = default(false);  // when enabled the radio medium doesn't send signals to a radio if it's neither in receiver nor in transceiver mode
        bool listeningFilter = default(false);  // when enabled the radio medium doesn't send signals to a radio if it listens on the channel in incompatible mode (e.g. different carrier frequency and bandwidth, different modulation)
        bool macAddressFilter = default(false); // when enabled the radio medium doesn't send signals to a radio if it the destination mac address differs

        // logging parameters
        bool recordTransmissionLog = default(false); // when enabled the medium writes one line per transmission into the communication log file
        bool recordReceptionLog = default(false);    // when enabled the medium writes one line per reception into the communication log file

        @class(RadioMedium);
        @display("i=misc/sun");

        @signal[radioAdded];
        @signal[radioRemoved];
        @signal[signalAdded];
        @signal[signalRemoved];
        @signal[signalDepartureStarted];
        @signal[signalDepartureEnded];
        @signal[signalArrivalStarted];
        @signal[signalArrivalEnded];

    submodules:
        propagation: <default("ConstantSpeedPropagation")> like IPropagation {
            parameters:
                @display("p=100,100");
        }
        analogModel: <default(signalAnalogRepresentation == "unitDisk" ? "UnitDiskAnalogModel" : signalAnalogRepresentation == "scalar" ? "ScalarAnalogModel" : signalAnalogRepresentation == "dimensional" ? "DimensionalAnalogModel" : "")> like IAnalogModel {
            parameters:
                @display("p=100,200");
        }
        backgroundNoise: <default(signalAnalogRepresentation == "scalar" ? "IsotropicScalarBackgroundNoise" : signalAnalogRepresentation == "dimensional" ? "IsotropicDimensionalBackgroundNoise" : "")> like IBackgroundNoise if typename != "" {
            parameters:
                @display("p=100,300");
        }
        pathLoss: <default("FreeSpacePathLoss")> like IPathLoss {
            parameters:
                @display("p=300,100");
        }
        obstacleLoss: <default("")> like IObstacleLoss if typename != "" {
            parameters:
                @display("p=300,200");
        }
        mediumLimitCache: <default("MediumLimitCache")> like IMediumLimitCache {
            parameters:
                @display("p=500,100");
        }
        communicationCache: <default("VectorCommunicationCache")> like ICommunicationCache {
            parameters:
                @display("p=500,300");
        }
        neighborCache: <default("")> like INeighborCache if typename != "" {
            parameters:
                @display("p=500,200");
        }
}

File: src/inet/physicallayer/wireless/common/medium/RadioMedium.ned