MultiMeasurementLayer

Package: inet.protocolelement.measurement

MultiMeasurementLayer

compound module

(no description)

measurementStarter[numMeasurementModules] : like IPacketFlow

IPacketFlow: This module interface is implemented by packet flows.

Source:
measurementStarter[numMeasurementModules]: <default("FlowMeasurementStarter")> like IPacketFlow {
    parameters:
        @display("p=150,100,column,100");
} measurementMaker[numMeasurementModules] : like IPacketFlow

FlowMeasurementRecorder: This module is part of the flow measurement infrastructure.

IPacketFlow: This module interface is implemented by packet flows.

Source:
measurementMaker[numMeasurementModules]: <default("FlowMeasurementRecorder")> like IPacketFlow {
    parameters:
        @display("p=350,100,column,100");
}

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
numMeasurementModules int 1

Properties

Name Value Description
display i=block/layer

Gates

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

Source code

module MultiMeasurementLayer like IMeasurementLayer
{
    parameters:
        @display("i=block/layer");
        int numMeasurementModules = default(1);
    gates:
        input upperLayerIn;
        output upperLayerOut;
        input lowerLayerIn;
        output lowerLayerOut;
    submodules:
        measurementStarter[numMeasurementModules]: <default("FlowMeasurementStarter")> like IPacketFlow {
            parameters:
                @display("p=150,100,column,100");
        }
        measurementMaker[numMeasurementModules]: <default("FlowMeasurementRecorder")> like IPacketFlow {
            parameters:
                @display("p=350,100,column,100");
        }
    connections:
        upperLayerIn --> { @display("m=n"); } --> measurementStarter[0].in;
        for i=0..numMeasurementModules-2 {
            measurementStarter[i].out --> { @display("m=n"); } --> measurementStarter[i+1].in;
        }
        measurementStarter[numMeasurementModules-1].out --> { @display("m=s"); } --> lowerLayerOut;

        lowerLayerIn --> { @display("m=s"); } --> measurementMaker[numMeasurementModules-1].in;
        for i=0..numMeasurementModules-2 {
            measurementMaker[i+1].out --> { @display("m=n"); } --> measurementMaker[i].in;
        }
        measurementMaker[0].out --> { @display("m=n"); } --> upperLayerOut;
}

File: src/inet/protocolelement/measurement/MultiMeasurementLayer.ned