StreamingTransmitter

Package: inet.protocolelement.transceiver

StreamingTransmitter

simple module

C++ definition

Receives packets from the upper layer as a whole. It sends signals to the transmission medium (wire) as a stream, it sends the signal start and signal end separately.

Inheritance diagram

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

Extends

Name Type Description
StreamingTransmitterBase simple module (no description)

Parameters

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

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

clockModule string ""

Relative path of a module that implements IClock(1,2); optional

datarate double

Properties

Name Value Description
class StreamingTransmitter
display i=block/wtx

Gates

Name Direction Size Description
in input
out output

Signals

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

Statistics

Name Title Source Record Unit Interpolation Mode Description
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

//
// Receives packets from the upper layer as a whole. It sends signals
// to the transmission medium (wire) as a stream, it sends the signal start and
// signal end separately.
//
simple StreamingTransmitter extends StreamingTransmitterBase like IPacketTransmitter
{
    parameters:
        @class(StreamingTransmitter);
}

File: src/inet/protocolelement/transceiver/StreamingTransmitter.ned