PacketMeterBase

Package: inet.queueing.base

PacketMeterBase

simple module

This is a base module for various packet meter modules. Derived modules must implement a single meterPacket() function which meters the flow of and attaches the required tags.

See also: IPacketMeter

PacketMeterBase

Inheritance diagram

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

Known subclasses

Name Type Description
RateMeter simple module

This module attaches a RateTag to each packet specifying the datarate and packetrate of the received stream of packets. The algorithm takes older packets into account with an exponentially decreasing weight.

Extends

Name Type Description
PacketProcessorBase simple module

This is a base module for various packet processing modules which maintains a few statistics.

Parameters

Name Type Default value Description
displayStringTextFormat string "metered %p pk (%l)"

determines the text that is written on top of the submodule

Source code

//
// This is a base module for various packet meter modules. Derived modules must
// implement a single meterPacket() function which meters the flow of and attaches
// the required tags.
//
// @see ~IPacketMeter
//
simple PacketMeterBase extends PacketProcessorBase
{
    parameters:
        displayStringTextFormat = default("metered %p pk (%l)");
}
File: src/inet/queueing/base/PacketMeterBase.ned