Compound Module IdealTransmitter

Package: inet.physicallayer.idealradio
File: src/inet/physicallayer/idealradio/IdealTransmitter.ned

This transmitter model produces transmissions that are parameterized with communication range, interference range, and detection range. It also supports an ideal communication channel with configuring the range parameters to infinity.

See also IdealReceiver, IdealRadio, IdealRadioMedium, and IdealAnalogModel.

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Parameters:

Name Type Default value Description
preambleDuration double 0s

preamble added before the header

headerBitLength double 0b

number of header bits added to the length of the MAC frame

bitrate double

the bitrate of the transmitter is used to compute the duration of the transmission

communicationRange double

the range where the reception of transmissions produced by this transmitter is possible

interferenceRange double communicationRange

the range where transmissions produced by this transmitter interferes with other transmissions

detectionRange double interferenceRange

the range where transmissions produced by this transmitter can be detected at all

Properties:

Name Value Description
class IdealTransmitter
display i=block/wtx

Source code:

//
// This transmitter model produces transmissions that are parameterized with
// communication range, interference range, and detection range. It also
// supports an ideal communication channel with configuring the range parameters
// to infinity.
//
// See also ~IdealReceiver, ~IdealRadio, ~IdealRadioMedium, and
// ~IdealAnalogModel.
//
module IdealTransmitter like ITransmitter
{
    parameters:
        double preambleDuration @unit(s) = default(0s);                  // preamble added before the header
        double headerBitLength @unit(b) = default(0b);                   // number of header bits added to the length of the MAC frame
        double bitrate @unit(bps);                                       // the bitrate of the transmitter is used to compute the duration of the transmission
        double communicationRange @unit(m);                              // the range where the reception of transmissions produced by this transmitter is possible
        double interferenceRange @unit(m) = default(communicationRange); // the range where transmissions produced by this transmitter interferes with other transmissions
        double detectionRange @unit(m) = default(interferenceRange);     // the range where transmissions produced by this transmitter can be detected at all
        @class(IdealTransmitter);
        @display("i=block/wtx");
}