ConstantGainAntenna

Package: inet.physicallayer.wireless.common.antenna

compound module ConstantGainAntenna

This antenna model describes an antenna that has an antenna gain independent of the transmission or reception direction.

Inheritance diagram

Extends

Name

Type

Description

AntennaBase

compound module

Serves as the base module for antenna models.

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

mobilityModule

string

The path to the mobility module relative to this module, only used if no mobility submodule is present

numAntennas

int

1

The number of antennas in the antenna array

gain

double

Antenna gain independent of transmission or reception direction

Properties

Name

Value

Description

class

ConstantGainAntenna

display

i=device/antennatower

Source code

//
// This antenna model describes an antenna that has an antenna gain independent of
// the transmission or reception direction.
//
module ConstantGainAntenna extends AntennaBase
{
    parameters:
        double gain @unit(dB); // Antenna gain independent of transmission or reception direction
        @class(ConstantGainAntenna);
}

File: src/inet/physicallayer/wireless/common/antenna/ConstantGainAntenna.ned