MultiPacketMeter

Package: inet.queueing.meter

MultiPacketMeter

compound module

This module combines multiple packet meters into one.

meter[numMeters] : like IPacketMeter

IPacketMeter: This module interface is implemented by packet meter modules.

Source:
meter[numMeters]: <> like IPacketMeter {
    @display("p=150,150,row,150");
}

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
numMeters int

Properties

Name Value Description
display i=block/star

Gates

Name Direction Size Description
in input
out output

Source code

//
// This module combines multiple packet meters into one.
//
module MultiPacketMeter like IPacketMeter
{
    parameters:
        int numMeters;
        @display("i=block/star");
    gates:
        input in @labels(send,push,pull,pass,stream);
        output out @labels(send,push,pull,pass,stream);
    submodules:
        meter[numMeters]: <> like IPacketMeter {
            @display("p=150,150,row,150");
        }
    connections:
        in --> { @display("m=w"); } --> meter[0].in;
        for i=1..numMeters-1 {
            meter[i - 1].out --> meter[i].in;
        }
        meter[numMeters - 1].out --> { @display("m=e"); } --> out;
}
File: src/inet/queueing/meter/MultiPacketMeter.ned