Package: inet.physicallayer.wireless.common.base.packetlevel
NarrowbandTransmitterBase
compound moduleServes as a base module for narrowband transmitter models.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Known subclasses
| Name | Type | Description |
|---|---|---|
| ApskTransmitter | compound module |
This transmitter model produces transmissions that have scalar transmission power in their analog representation and the configured modulation. |
| DimensionalTransmitterBase | compound module |
This transmitter model produces transmissions that use dimensional transmission power (that changes over time and/or frequency) in their analog representation and the configured modulation. |
| Ieee80211Transmitter | compound module |
This transmitter model produces IEEE 802.11 transmissions. |
| Ieee802154NarrowbandTransmitter | compound module | (no description) |
Extends
| Name | Type | Description |
|---|---|---|
| TransmitterBase | compound module | (no description) |
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 |
| signalAnalogRepresentation | string | "scalar" |
Determines the analog domain signal representation of transmissions |
| preambleDuration | double |
Preamble duration |
|
| headerLength | int |
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 |
|
| power | double |
Transmission power |
|
| centerFrequency | double |
Center frequency of the band where the transmitter transmits on the medium |
|
| bandwidth | double |
Bandwidth of the band where the transmitter transmits on the medium |
|
| codeRate | double | 1 | |
| modulation | string |
"BPSK", "16-QAM", "256-QAM" |
Properties
| Name | Value | Description |
|---|---|---|
| class | Module | |
| display | i=block/wtx |
Source code
// // Serves as a base module for narrowband transmitter models. // module NarrowbandTransmitterBase extends TransmitterBase like ITransmitter { parameters: double preambleDuration @unit(s); // Preamble duration int headerLength @unit(b); // 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 power @unit(W); // Transmission power double centerFrequency @unit(Hz); // Center frequency of the band where the transmitter transmits on the medium double bandwidth @unit(Hz); // Bandwidth of the band where the transmitter transmits on the medium double codeRate = default(1); string modulation; // "BPSK", "16-QAM", "256-QAM" analogModel.power = default(this.power); analogModel.defaultCenterFrequency = default(this.centerFrequency); analogModel.defaultBandwidth = default(this.bandwidth); @display("i=block/wtx"); }File: src/inet/physicallayer/wireless/common/base/packetlevel/NarrowbandTransmitterBase.ned