PhysicalLayerBase

Package: inet.physicallayer.wireless.common.base.packetlevel

simple module PhysicalLayerBase

Module base for different physical layers.

inet.physicallayer.wireless.common.base.packetlevel.PhysicalLayerBasePhysicalLayerBasesimple

Inheritance diagram

Known subclasses

Name

Type

Description

Radio

compound module

The radio model describes the physical device that is capable of transmitting and receiving signals on the medium. It contains an antenna model, a transmitter model, a receiver model, and an energy consumer model.

ShortcutRadio

simple module

Implements a simple shortcut to peer radio protocol that completely bypasses the physical medium. This radio module directly sends packets to the other radio module without any physical layer processing in the radio medium. Packets received from the upper layer protocols may be lost. Physical layer overhead is simply simulated by physical header bits, preamble transmission duration, and a propagation delay.

Extends

Name

Type

Description

LayeredProtocolBase

simple module

Module base for different layered protocols.

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

Properties

Name

Value

Description

class

LayeredProtocolBase

display

i=block/wrxtx

Gates

Name

Direction

Size

Description

upperLayerIn

input

upperLayerOut

output

radioIn

input

Signals

Name

Type

Unit

Description

packetDropped

cPacket

packetReceivedFromLower

cPacket

packetReceivedFromUpper

cPacket

packetSentToLower

cPacket

packetSentToUpper

cPacket

Source code

//
// Module base for different physical layers.
//
simple PhysicalLayerBase extends LayeredProtocolBase
{
    parameters:
        @display("i=block/wrxtx");
    gates:
        input upperLayerIn @labels(ILinkLayerFrame/down);
        output upperLayerOut @labels(ILinkLayerFrame/up);
        input radioIn @labels(IWirelessSignal);
}

File: src/inet/physicallayer/wireless/common/base/packetlevel/PhysicalLayerBase.ned