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 |
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, 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 |
|---|---|---|---|
| packetPushed | inet::Packet | ||
| packetPulled | inet::Packet |
Statistics
| Name | Title | Source | Record | Unit | Interpolation Mode | Description |
|---|---|---|---|---|---|---|
| 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