Package: inet.queueing.common
OrdinalBasedDuplicator
simple moduleThis module duplicates packets based on the ordinal number of the packet in the received stream of packets.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
duplicatesVector | string | "" |
the duplicatesVector format is "<packetNumber>;<packetNumber>;...;" packet numbers in ascending order e.g. "5;6;12;13;" |
Properties
Name | Value | Description |
---|---|---|
display | i=block/control |
Gates
Name | Direction | Size | Description |
---|---|---|---|
in | input | ||
out | output |
Source code
// // This module duplicates packets based on the ordinal number of the packet in // the received stream of packets. // simple OrdinalBasedDuplicator { 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"); gates: input in; output out; }File: src/inet/queueing/common/OrdinalBasedDuplicator.ned