StreamIdentifierLayer

Package: inet.protocolelement.redundancy

StreamIdentifierLayer

compound module

This module wraps a stream identifier into a protocol layer so that it can be used in a layered compound module.

identifier : like IPacketFlow

StreamIdentifier: This module identifies the stream of a packet using packet filter expressions.

IPacketFlow: This module interface is implemented by packet flows.

Source:
identifier: <default("StreamIdentifier")> like IPacketFlow if typename != "" {
    parameters:
        @display("p=200,150;i=block/blackboard");
}

Usage diagram

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Properties

Name Value Description
display i=block/layer

Gates

Name Direction Size Description
upperLayerIn input
upperLayerOut output
lowerLayerIn input
lowerLayerOut output

Source code

//
// This module wraps a stream identifier into a protocol layer so that it can
// be used in a layered compound module.
//
module StreamIdentifierLayer like IProtocolLayer
{
    parameters:
        @display("i=block/layer");
    gates:
        input upperLayerIn;
        output upperLayerOut;
        input lowerLayerIn;
        output lowerLayerOut;
    submodules:
        identifier: <default("StreamIdentifier")> like IPacketFlow if typename != "" {
            parameters:
                @display("p=200,150;i=block/blackboard");
        }
    connections:
        upperLayerIn --> { @display("m=n"); } --> identifier.in;
        identifier.out --> { @display("m=s"); } --> lowerLayerOut;

        lowerLayerIn --> upperLayerOut;
}
File: src/inet/protocolelement/redundancy/StreamIdentifierLayer.ned