ConstantGainAntenna

Package: inet.physicallayer.wireless.common.antenna

ConstantGainAntenna

compound module

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

mobility : like IMobility

IMobility: The module interface for mobility models.

Source:
mobility: <default("")> like IMobility if typename != "" {
    parameters:
        @display("p=100,100;is=s");
}

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the 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