StreamThroughTransmitter

Package: inet.protocolelement.transceiver

simple module StreamThroughTransmitter

Receives packets from the upper layer as a stream and also sends signals to the transmission medium as a stream. The stream start and stream end are sent separately allowing the preemption of signals.

inet.protocolelement.transceiver.StreamThroughTransmitterStreamThroughTransmittersimple

Usage diagram

Inheritance diagram

Used in compound modules

Name

Type

Description

EthernetPreemptingPhyLayer

compound module

(no description)

Extends

Name

Type

Description

StreamingTransmitterBase

simple module

(no description)

Parameters

Name

Type

Default value

Description

displayStringTextFormat

string

“processed {numProcessedPackets} pk ({processedTotalLength})”

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,:ref:2 <neddoc-msg-inet-iclock>); optional

datarate

double

Properties

Name

Value

Description

class

StreamThroughTransmitter

display

i=block/wtx

Gates

Name

Direction

Size

Description

in

input

out

output

Signals

Name

Type

Unit

Description

transmissionEnded

inet::physicallayer::Signal

transmissionStarted

inet::physicallayer::Signal

Statistics

Name

Title

Source

Record

Unit

Interpolation Mode

Description

flowTransmissionTime

flow transmission time

packetDuration(demuxFlow(transmissionEnded))

vector,histogram

s

none

propagationTime

propagation time

s

throughput

throughput

throughput(transmissionEnded)

vector,histogram

bps

linear

transmissionTime

transmission time

packetDuration(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

Source code

//
// Receives packets from the upper layer as a stream and also
// sends signals to the transmission medium as a stream. The stream start and
// stream end are sent separately allowing the preemption of signals.
//
simple StreamThroughTransmitter extends StreamingTransmitterBase like IPacketTransmitter
{
    parameters:
        @class(StreamThroughTransmitter);
}

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