Package: inet.queueing.sink
ActivePacketSink
simple moduleThis module is an active packet sink which pops packets from the connected packet provider. All popped packets are counted and deleted.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Extends
Name | Type | Description |
---|---|---|
PacketSinkBase | simple module |
This is a base module for various packet sink modules. |
Parameters
Name | Type | Default value | Description |
---|---|---|---|
displayStringTextFormat | string | "dropped %p pk (%l)" |
determines the text that is written on top of the submodule |
collectionInterval | double |
elapsed time between subsequent packets popped from the connected packet provider |
Properties
Name | Value | Description |
---|---|---|
display | i=block/sink | |
class | ActivePacketSink |
Gates
Name | Direction | Size | Description |
---|---|---|---|
in | input |
Signals
Name | Type | Unit |
---|---|---|
packetDropped | inet::Packet |
Statistics
Name | Title | Source | Record | Unit | Interpolation Mode |
---|---|---|---|---|---|
packetDropped | packets dropped | count, sum(packetBytes), vector(packetBytes) | none |
Source code
// // This module is an active packet sink which pops packets from the connected // packet provider. All popped packets are counted and deleted. // simple ActivePacketSink extends PacketSinkBase like IActivePacketSink { parameters: volatile double collectionInterval @unit(s); // elapsed time between subsequent packets popped from the connected packet provider @class(ActivePacketSink); gates: input in @labels(pop); }File: src/inet/queueing/sink/ActivePacketSink.ned