StreamPolicyLayer

Package: inet.linklayer.ieee8021q

StreamPolicyLayer

compound module

(no description)

streamIdentifier : like IProtocolLayer

StreamIdentifierLayer: Wraps a stream identifier into a protocol layer so that it can be used in a layered compound module.

IProtocolLayer: Interface for all protocol layer modules that connect to a higher and to a lower protocol layer,...

Source:
streamIdentifier: <default("StreamIdentifierLayer")> like IProtocolLayer {
    @display("p=300,150");
} streamRelay : like IProtocolLayer

StreamRelayLayer: Combines a stream merger and a stream splitter module into a stream relay layer.

IProtocolLayer: Interface for all protocol layer modules that connect to a higher and to a lower protocol layer,...

Source:
streamRelay: <default("StreamRelayLayer")> like IProtocolLayer {
    @display("p=300,300");
} streamCoder : like IProtocolLayer

StreamCoderLayer: Combines a stream decoder and a stream encoder into a layer.

IProtocolLayer: Interface for all protocol layer modules that connect to a higher and to a lower protocol layer,...

Source:
streamCoder: <default("StreamCoderLayer")> like IProtocolLayer {
    @display("p=300,450");
}

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.

Parameters

Name Type Default value Description
interfaceTableModule string

Properties

Name Value Description
display i=block/layer

Gates

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

Source code

module StreamPolicyLayer like IProtocolLayer
{
    parameters:
        string interfaceTableModule;
        *.interfaceTableModule = default(this.interfaceTableModule);
        @display("i=block/layer");
    gates:
        input upperLayerIn;
        output upperLayerOut;
        input lowerLayerIn;
        output lowerLayerOut;
    submodules:
        streamIdentifier: <default("StreamIdentifierLayer")> like IProtocolLayer {
            @display("p=300,150");
        }
        streamRelay: <default("StreamRelayLayer")> like IProtocolLayer {
            @display("p=300,300");
        }
        streamCoder: <default("StreamCoderLayer")> like IProtocolLayer {
            @display("p=300,450");
        }
    connections:
        upperLayerIn --> { @display("m=n"); } --> streamIdentifier.upperLayerIn;
        streamIdentifier.lowerLayerOut --> streamRelay.upperLayerIn;
        streamRelay.lowerLayerOut --> streamCoder.upperLayerIn;
        streamCoder.lowerLayerOut --> { @display("m=s"); } --> lowerLayerOut;

        lowerLayerIn --> { @display("m=s"); } --> streamCoder.lowerLayerIn;
        streamCoder.upperLayerOut --> streamRelay.lowerLayerIn;
        streamRelay.upperLayerOut --> streamIdentifier.lowerLayerIn;
        streamIdentifier.upperLayerOut --> { @display("m=n"); } --> upperLayerOut;
}
File: src/inet/linklayer/ieee8021q/StreamPolicyLayer.ned