InterpolatingAntenna

Package: inet.physicallayer.wireless.common.antenna

InterpolatingAntenna

compound module

This antenna model computes the antenna gain from the direction of the signal using linear interpolation for all 3 euler angles independently of each other. The gain parameters contain a sequence of angle [degree] and gain [dB] pairs. The first pair must be at 0 [degree].

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

headingGains string "0 0"

sequence of angle [degree] and gain [dB] pairs

elevationGains string "0 0"

sequence of angle [degree] and gain [dB] pairs

bankGains string "0 0"

sequence of angle [degree] and gain [dB] pairs

Properties

Name Value Description
display i=device/antennatower
class InterpolatingAntenna

Source code

//
// This antenna model computes the antenna gain from the direction of the signal
// using linear interpolation for all 3 euler angles independently of each other.
// The gain parameters contain a sequence of angle [degree] and gain [dB] pairs.
// The first pair must be at 0 [degree].
//
//# TODO refactor to use Delaunay triangulation on unit sphere, i.e. triangulate
//# result from enclosing spherical triangle as seen from the center
//
module InterpolatingAntenna extends AntennaBase
{
    parameters:
        string headingGains = default("0 0");   // sequence of angle [degree] and gain [dB] pairs
        string elevationGains = default("0 0"); // sequence of angle [degree] and gain [dB] pairs
        string bankGains = default("0 0");      // sequence of angle [degree] and gain [dB] pairs
        @class(InterpolatingAntenna);
}

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