ConstantGainAntenna

Package: inet.physicallayer.wireless.common.antenna

ConstantGainAntenna

compound module

This antenna model describes an antenna that has an antenna gain indepent 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

This module servces as the base module for antenna models.

Parameters

Name Type Default value Description
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 indepent of transmission or reception direction

Properties

Name Value Description
display i=device/antennatower
class ConstantGainAntenna

Source code

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

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