NED File src/inet/protocolelement/redundancy/StreamIdentifier.ned¶
Name |
Type |
Description |
|---|---|---|
simple module |
Identifies the stream of a packet using packet filter expressions. It can check for arbitrary packet data and assign an if a match was found then the stream is attached to the packet in the StreamReq tag. |
Source code¶
//
// Copyright (C) 2020 OpenSim Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//
package inet.protocolelement.redundancy;
import inet.queueing.base.PacketFlowBase;
import inet.queueing.contract.IPacketFlow;
//
// Identifies the stream of a packet using packet filter expressions.
// It can check for arbitrary packet data and assign an if a match was found then
// the stream is attached to the packet in the ~StreamReq tag.
//
simple StreamIdentifier extends PacketFlowBase like IPacketFlow
{
parameters:
bool hasSequenceNumbering = default(true);
object mapping @mutable = default([]); // Array of objects, where each object specifies a stream name and a packetFilter, for example [{stream: "s0", packetFilter: "*"}, ...]
@class(StreamIdentifier);
@display("i=block/blackboard");
}