PacketMeterBase

Package: inet.networklayer.diffserv

simple module PacketMeterBase

(no description)

inet.networklayer.diffserv.PacketMeterBasePacketMeterBasesimple

Inheritance diagram

Extends

Name

Type

Description

PacketProcessorBase

simple module

Base module for various packet processing modules which maintains a few statistics.

Parameters

Name

Type

Default value

Description

displayStringTextFormat

string

“processed {numProcessedPackets} pk ({processedTotalLength})”

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

Properties

Name

Value

Description

class

PacketProcessorBase

display

i=block/classifier

Gates

Name

Direction

Size

Description

in

input

Signals

Name

Type

Unit

Description

packetPulled

inet::Packet

packetPushed

inet::Packet

Statistics

Name

Title

Source

Record

Unit

Interpolation Mode

Description

packetPulled

packets pulled

count,sum(packetBytes),vector(packetBytes)

none

packetPushed

packets pushed

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