NED File src/inet/queueing/common/OrdinalBasedDuplicator.ned¶
Name |
Type |
Description |
|---|---|---|
simple module |
Duplicates packets based on the ordinal number of the packet in the received stream of packets. |
Source code¶
//
// Copyright (C) 2020 OpenSim Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//
package inet.queueing.common;
import inet.queueing.base.PacketDuplicatorBase;
//
// 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;
}