OrdinalBasedDuplicator
Package: inet.queueing.common
OrdinalBasedDuplicator
simple moduleDuplicates packets based on the ordinal number of the packet in the received stream of packets.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Used in
| Name | Type | Description |
|---|---|---|
| OrdinalBasedDuplicatorTutorialStep | network | (no description) |
Extends
| Name | Type | Description |
|---|---|---|
| PacketDuplicatorBase | simple module |
Base type for packet duplicator implementations. Provides common functionality for creating and forwarding multiple copies of incoming packets. |
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 |
| duplicatesVector | string | "" |
The duplicatesVector format is "<packetNumber>;<packetNumber>;...;" Packet numbers in ascending order, e.g. "5;6;12;13;" |
Properties
| Name | Value | Description |
|---|---|---|
| class | OrdinalBasedDuplicator | |
| display | i=block/control |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| in | input | ||
| out | output |
Source code
// // Duplicates packets based on the ordinal number of the packet in // the received stream of packets. // simple OrdinalBasedDuplicator extends PacketDuplicatorBase { parameters: string duplicatesVector = default(""); // The duplicatesVector format is "<packetNumber>;<packetNumber>;...;" // Packet numbers in ascending order, e.g. "5;6;12;13;" @display("i=block/control"); @class(OrdinalBasedDuplicator); gates: input in; output out; }File: src/inet/queueing/common/OrdinalBasedDuplicator.ned