NED File src/inet/protocolelement/redundancy/StreamClassifier.ned¶
Name |
Type |
Description |
|---|---|---|
simple module |
Classifies packets based on the stream they are part of. The stream is determined by a |
Source code¶
//
// Copyright (C) 2020 OpenSim Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//
package inet.protocolelement.redundancy;
import inet.queueing.base.PacketClassifierBase;
import inet.queueing.contract.IPacketClassifier;
//
// Classifies packets based on the stream they are part of. The stream
// is determined by a `StreamReq` or a `StreamInd` or both.
//
simple StreamClassifier extends PacketClassifierBase like IPacketClassifier
{
parameters:
string mode @enum("req", "ind", "both") = default("both");
object mapping = default({}); // Maps stream name to gate index
int gateIndexOffset = default(0); // Specify the value to be added to the mapping output gate index
int defaultGateIndex = default(0); // Default gate index if no matching streams are found
@class(StreamClassifier);
}