UnitDiskTransmitter

Package: inet.physicallayer.wireless.unitdisk

UnitDiskTransmitter

compound module

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: UnitDiskReceiver, UnitDiskRadio, UnitDiskRadioMedium, UnitDiskAnalogModel.

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

headerLength int 96b

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 UnitDiskTransmitter
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 ~UnitDiskReceiver, ~UnitDiskRadio, ~UnitDiskRadioMedium,
// ~UnitDiskAnalogModel.
//
module UnitDiskTransmitter like ITransmitter
{
    parameters:
        double preambleDuration @unit(s) = default(0s);                  // preamble added before the header
        int headerLength @unit(b) = default(96b);                     // 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(UnitDiskTransmitter);
        @display("i=block/wtx");
}
File: src/inet/physicallayer/wireless/unitdisk/UnitDiskTransmitter.ned