PacketTransmitterBase

Package: inet.protocolelement.transceiver.base

PacketTransmitterBase

simple module

(no description)

Inheritance diagram

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

Known subclasses

Name Type Description
PacketTransmitter simple module

This module receives packets from the upper layer as a whole. It also sends signals to the transmission medium (wire) as a whole.

StreamingTransmitterBase simple module (no description)

Extends

Name Type Description
PacketProcessorBase simple module

This is a base module for various packet processing modules which maintains a few statistics.

Parameters

Name Type Default value Description
displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

clockModule string ""

relative path of a module that implements IClock; optional

datarate double

Properties

Name Value Description
display i=block/wtx
class PacketTransmitterBase

Gates

Name Direction Size Description
in input
out output

Signals

Name Type Unit
transmissionStarted inet::physicallayer::Signal
transmissionEnded inet::physicallayer::Signal

Statistics

Name Title Source Record Unit Interpolation Mode
transmissionTime transmission time packetDuration(transmissionEnded) vector, histogram s none
flowTransmissionTime flow transmission time packetDuration(demuxFlow(transmissionEnded)) vector, histogram s none
transmitting transmitting state count(transmissionStarted) - count(transmissionEnded) vector sample-hold
utilization utilization 100 * utilization(count(transmissionStarted) - count(transmissionEnded)) vector, histogram % linear
propagationTime propagation time s
throughput throughput throughput(transmissionEnded) vector, histogram bps linear

Source code

simple PacketTransmitterBase extends PacketProcessorBase
{
    parameters:
        string clockModule = default(""); // relative path of a module that implements IClock; optional
        volatile double datarate @unit(bps);
        @class(PacketTransmitterBase);
        @display("i=block/wtx");
        @signal[transmissionStarted](type=inet::physicallayer::Signal);
        @signal[transmissionEnded](type=inet::physicallayer::Signal);
        @statistic[transmitting](title="transmitting state"; type=int; source=count(transmissionStarted) - count(transmissionEnded); record=vector; interpolationmode=sample-hold);
        @statistic[throughput](title="throughput"; unit=bps; source=throughput(transmissionEnded); record=vector,histogram; interpolationmode=linear);
        @statistic[utilization](title="utilization"; unit=%; source=100 * utilization(count(transmissionStarted) - count(transmissionEnded)); record=vector,histogram; interpolationmode=linear);
        @statistic[propagationTime](title="propagation time"; unit=s);
        @statistic[transmissionTime](title="transmission time"; unit=s; source=packetDuration(transmissionEnded); record=vector,histogram; interpolationmode=none);
        @statistic[flowTransmissionTime](title="flow transmission time"; unit=s; source=packetDuration(demuxFlow(transmissionEnded)); record=vector,histogram; interpolationmode=none);
    gates:
        input in;
        output out;
}
File: src/inet/protocolelement/transceiver/base/PacketTransmitterBase.ned