PreemptableStreamer¶
Package: inet.protocolelement.fragmentation
simple module PreemptableStreamer
Takes packets passed to its input and streams them to its output.
Usage diagram¶
Inheritance diagram¶
Used in compound modules¶
Name |
Type |
Description |
|---|---|---|
compound module |
(no description) |
Extends¶
Name |
Type |
Description |
|---|---|---|
simple module |
Base module for various packet processing modules which maintains a few statistics. |
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 |
nan bps |
|
minPacketLength |
int |
||
roundingLength |
int |
1B |
Properties¶
Name |
Value |
Description |
|---|---|---|
class |
PreemptableStreamer |
|
display |
i=block/cogwheel |
Gates¶
Name |
Direction |
Size |
Description |
|---|---|---|---|
in |
input |
||
out |
output |
Source code¶
//
// Takes packets passed to its input and streams them to its output.
//
simple PreemptableStreamer extends PacketProcessorBase like IPacketFlow
{
parameters:
string clockModule = default(""); // Relative path of a module that implements IClock; optional
double datarate @unit(bps) = default(nan bps);
int minPacketLength @unit(b);
int roundingLength @unit(b) = default(1B);
@class(PreemptableStreamer);
@display("i=block/cogwheel");
gates:
input in @labels(send,push,pull,pass);
output out @labels(send,push,pull,stream);
}
File: src/inet/protocolelement/fragmentation/PreemptableStreamer.ned