PacketMeterBase

Package: inet.networklayer.diffserv

PacketMeterBase

simple module

(no description)

Inheritance diagram

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

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 "processed %p pk (%l)"

determines the text that is written on top of the submodule

Properties

Name Value Description
display i=block/classifier

Gates

Name Direction Size Description
in input

Signals

Name Type Unit
packetPushed inet::Packet
packetPulled inet::Packet

Statistics

Name Title Source Record Unit Interpolation Mode
packetPushed packets pushed count, sum(packetBytes), vector(packetBytes) none
packetPulled packets pulled count, sum(packetBytes), vector(packetBytes) none

Source code

simple PacketMeterBase extends PacketProcessorBase
{
    parameters:
        @display("i=block/classifier");
        @signal[packetPushed](type=inet::Packet);
        @signal[packetPulled](type=inet::Packet);
        @statistic[packetPushed](title="packets pushed"; record=count,sum(packetBytes),vector(packetBytes); interpolationmode=none);
        @statistic[packetPulled](title="packets pulled"; record=count,sum(packetBytes),vector(packetBytes); interpolationmode=none);
    gates:
        input in;
}
File: src/inet/networklayer/diffserv/PacketMeterBase.ned